Facade

Inheritance: java.lang.Object, com.aspose.pdf.facades.IVentureLicenseTarget

All Implemented Interfaces: com.aspose.pdf.facades.IFacade, com.aspose.ms.System.IDisposable

public abstract class Facade extends IVentureLicenseTarget implements IFacade, System.IDisposable

Base facade class.

Methods

MethodDescription
getDocument()Gets the document facade is working on.
bindPdf(String srcFile)Initializes the facade.
bindPdf(InputStream srcStream)Initializes the facade.
bindPdf(IDocument srcDoc)Initializes the facade.
bindPdf(String srcFile, String password)Initializes the facade.
bindPdf(InputStream srcStream, String password)Initializes the facade.
close()Disposes Document bound with a facade.
dispose()Disposes the facade.

getDocument()

public IDocument getDocument()

Gets the document facade is working on.

Returns: IDocument - IDocument element

bindPdf(String srcFile)

public void bindPdf(String srcFile)

Initializes the facade.

Parameters:

ParameterTypeDescription
srcFilejava.lang.StringThe PDF file.

bindPdf(InputStream srcStream)

public void bindPdf(InputStream srcStream)

Initializes the facade.

Parameters:

ParameterTypeDescription
srcStreamjava.io.InputStreamThe stream of PDF file.

bindPdf(IDocument srcDoc)

public void bindPdf(IDocument srcDoc)

Initializes the facade.

Parameters:

ParameterTypeDescription
srcDocIDocumentThe Document object.

bindPdf(String srcFile, String password)

public void bindPdf(String srcFile, String password)

Initializes the facade.

Parameters:

ParameterTypeDescription
srcFilejava.lang.StringThe PDF file
passwordjava.lang.StringThe password of the PDF document.

bindPdf(InputStream srcStream, String password)

public void bindPdf(InputStream srcStream, String password)

Initializes the facade.

Parameters:

ParameterTypeDescription
srcStreamjava.io.InputStreamThe stream of PDF file.
passwordjava.lang.StringThe password of the PDF document.

close()

public void close()

Disposes Document bound with a facade.

dispose()

public void dispose()

Disposes the facade.

This method is obsolete, use close() instead.