public class

BlackBoxContext

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.BlackBoxContext

Class Overview

The class BlackBoxContext. Encapsulates the PDF document for use in the black box server backend

Summary

Constants
int e_failure
int e_incomplete
int e_success
Public Constructors
BlackBoxContext(long impl_ptr)
Public Methods
long __GetHandle()
synchronized void destroy()
Frees the native memory of the object.
void destroyImpl()
String doOperation(String instructions)
perform an arbitrary operation on the document.
PDFDoc getDoc()
Gets the PDFDoc from the context.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int e_failure

Constant Value: 2 (0x00000002)

public static final int e_incomplete

Constant Value: 1 (0x00000001)

public static final int e_success

Constant Value: 0 (0x00000000)

Public Constructors

public BlackBoxContext (long impl_ptr)

Public Methods

public long __GetHandle ()

public synchronized void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public void destroyImpl ()

public String doOperation (String instructions)

perform an arbitrary operation on the document.

Parameters
instructions -- the operation to perform, and the accompanying arguments.
Returns
  • The results, in json form.

public PDFDoc getDoc ()

Gets the PDFDoc from the context. .

Returns
  • The PDFDoc.