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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
srcFile | java.lang.String | The PDF file. |
bindPdf(InputStream srcStream)
public void bindPdf(InputStream srcStream)
Initializes the facade.
Parameters:
Parameter | Type | Description |
---|---|---|
srcStream | java.io.InputStream | The stream of PDF file. |
bindPdf(IDocument srcDoc)
public void bindPdf(IDocument srcDoc)
Initializes the facade.
Parameters:
Parameter | Type | Description |
---|---|---|
srcDoc | IDocument | The Document object. |
bindPdf(String srcFile, String password)
public void bindPdf(String srcFile, String password)
Initializes the facade.
Parameters:
Parameter | Type | Description |
---|---|---|
srcFile | java.lang.String | The PDF file |
password | java.lang.String | The password of the PDF document. |
bindPdf(InputStream srcStream, String password)
public void bindPdf(InputStream srcStream, String password)
Initializes the facade.
Parameters:
Parameter | Type | Description |
---|---|---|
srcStream | java.io.InputStream | The stream of PDF file. |
password | java.lang.String | The 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.