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 dispose()
Frees the native memory of the object.
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 dispose ()

Frees the native memory of the object. Do not rely on the garbage collector.

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.