Java org.apache.pdfbox.pdmodel PDDocument fields, constructors, methods, implement or subclass

Example usage for Java org.apache.pdfbox.pdmodel PDDocument fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.pdfbox.pdmodel PDDocument.

The text is from its open source code.

Subclass

org.apache.pdfbox.pdmodel.PDDocument has subclasses.
Click this link to see all its subclasses.

Constructor

PDDocument()
Creates an empty PDF document.
PDDocument(MemoryUsageSetting memUsageSetting)
Creates an empty PDF document.
PDDocument(COSDocument doc)
Constructor that uses an existing document.

Method

voidaddPage(PDPage page)
This will add a page to the document.
voidaddSignature(PDSignature sigObject, SignatureOptions options)
Add parameters of signature to be created externally.
voidaddSignature(PDSignature sigObject, SignatureInterface signatureInterface)
Add a signature to be created using the instance of given interface.
voidaddSignature(PDSignature sigObject, SignatureInterface signatureInterface, SignatureOptions options)
This will add a signature to the document.
voidaddSignature(PDSignature sigObject)
Add parameters of signature to be created externally using default signature options.
voidclose()
This will close the underlying COSDocument object.
AccessPermissiongetCurrentAccessPermission()
Returns the access permissions granted when the document was decrypted.
COSDocumentgetDocument()
This will get the low level document.
PDDocumentCataloggetDocumentCatalog()
This will get the document CATALOG.
LonggetDocumentId()
Provides the document ID.
PDDocumentInformationgetDocumentInformation()
This will get the document info dictionary.
intgetNumberOfPages()
This will return the total page count of the PDF document.
PDPagegetPage(int pageIndex)
Returns the page at the given 0-based index.
PDPageTreegetPages()
Returns the page tree.
ListgetSignatureDictionaries()
Retrieve all signature dictionaries from the document.
ListgetSignatureFields()
Retrieve all signature fields from the document.
floatgetVersion()
Returns the PDF specification version this document conforms to.
PDPageimportPage(PDPage page)
This will import and copy the contents from another location.
booleanisAllSecurityToBeRemoved()
Indicates if all security is removed or not when writing the pdf.
booleanisEncrypted()
This will tell if this document is encrypted or not.
PDDocumentload(File file)
Parses a PDF.
PDDocumentload(InputStream input)
Parses a PDF.
PDDocumentload(byte[] input)
Parses a PDF.
PDDocumentload(File file, MemoryUsageSetting memUsageSetting)
Parses a PDF.
PDDocumentload(File file, String password)
Parses a PDF.
PDDocumentload(InputStream input, MemoryUsageSetting memUsageSetting)
Parses a PDF.
PDDocumentload(InputStream input, String password)
Parses a PDF.
PDDocumentload(byte[] input, String password)
Parses a PDF.
PDDocumentload(File file, String password, InputStream keyStore, String alias)
Parses a PDF.
PDDocumentload(InputStream input, String password, InputStream keyStore, String alias)
Parses a PDF.
PDDocumentload(byte[] input, String password, InputStream keyStore, String alias)
Parses a PDF.
PDDocumentload(File file, String password, MemoryUsageSetting memUsageSetting)
Parses a PDF.
PDDocumentload(InputStream input, String password, MemoryUsageSetting memUsageSetting)
Parses a PDF.
voidprotect(ProtectionPolicy policy)
Protects the document with a protection policy.
voidremovePage(PDPage page)
Remove the page from the document.
voidremovePage(int pageNumber)
Remove the page from the document.
voidsave(String fileName)
Save the document to a file.
voidsave(File file)
Save the document to a file.
voidsave(OutputStream output)
This will save the document to an output stream.
voidsaveIncremental(OutputStream output)
Save the PDF as an incremental update.
ExternalSigningSupportsaveIncrementalForExternalSigning(OutputStream output)
Save PDF incrementally without closing for external signature creation scenario.
voidsetAllSecurityToBeRemoved(boolean removeAllSecurity)
Activates/Deactivates the removal of all security when writing the pdf.
voidsetDocumentId(Long docId)
Sets the document ID to the given value.
voidsetDocumentInformation(PDDocumentInformation info)
This will set the document information for this document.
voidsetResourceCache(ResourceCache resourceCache)
Sets the resource cache associated with this document.