|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.merger.PdfDocument
public class PdfDocument
This class should be used when you will be referencing an existing PDF document more than once.Using a PDFDocument is more efficient than specifying a file path because the document will not need to be parsed again on each subsequent reference. This class is safe for multithreaded operations.
Licensing:
This class is a DynamicPDF Merger Standard Edition feature.
One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
|---|---|
PdfDocument(byte[] bytData)
Initializes a new instance of the PdfDocument class. |
|
PdfDocument(byte[] bytData,
java.lang.String password)
Initializes a new instance of the PdfDocument class. |
|
PdfDocument(java.io.ByteArrayInputStream bais)
Initializes a new instance of the PdfDocument class. |
|
PdfDocument(java.io.ByteArrayInputStream bais,
java.lang.String password)
Initializes a new instance of the PdfDocument class. |
|
PdfDocument(java.io.FileInputStream stream)
Initializes a new instance of the PdfDocument class. |
|
PdfDocument(java.io.FileInputStream stream,
java.lang.String password)
Initializes a new instance of the PdfDocument class. |
|
PdfDocument(java.lang.String filePath)
Initializes a new instance of the PdfDocument class. |
|
PdfDocument(java.lang.String filePath,
java.lang.String password)
Initializes a new instance of the PdfDocument class. |
|
| Method Summary | |
|---|---|
Attachment[] |
getAttachments()
Retrieves the attachment files in the PDFDocument. |
java.lang.String |
getAuthor()
Gets the author property of the PDF document. |
CollectionType |
getCollectionType()
Gets a boolen whether PDF document contains any collection entries. |
java.lang.String |
getCreator()
Gets the creator property of the PDF document. |
PdfForm |
getForm()
Gets the AcroForm for the document. |
java.lang.String |
getKeywords()
Gets the keywords property of the PDF document. |
PdfOutlineList |
getOutlines()
Gets the outlines of the PDF document. |
PdfPage |
getPage(int pageNumber)
Gets a page by page number. |
PdfPageList |
getPages()
Gets a collection of PDF pages for the document. |
java.lang.String |
getProducer()
Gets the producer property of the PDF document. |
SecurityInfo |
getSecurityInfo()
Gets the security type of the PDF document. |
java.lang.String |
getSubject()
Gets the subject property of the PDF document. |
boolean |
getTagged()
|
java.lang.String |
getText()
Gets a text from the document. |
java.lang.String |
getTitle()
Gets the title property of the PDF document. |
java.lang.String |
getXmpMetadata()
Gets the xml metadata string. |
void |
setCollectionType(CollectionType value)
|
void |
setDocumentInfo(Document document)
Sets the document info on the supplied Document
to match this document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdfDocument(java.io.FileInputStream stream)
PdfDocument class.
stream - FileInputStream object containing the
PDF document data.FileInputStreampublic PdfDocument(java.lang.String filePath)
PdfDocument class.
filePath - Physical file path of the PDF document.public PdfDocument(byte[] bytData)
PdfDocument class.
bytData - Byte array containing the PDF document data.public PdfDocument(java.io.ByteArrayInputStream bais)
PdfDocument class.
bais - ByteArrayInputStream object containing the
PDF document data.ByteArrayInputStream
public PdfDocument(java.io.FileInputStream stream,
java.lang.String password)
PdfDocument class.
stream - FileInputStream object containing the
PDF document data.password - Owner password of the encrypted PDF document.FileInputStream
public PdfDocument(java.lang.String filePath,
java.lang.String password)
PdfDocument class.
filePath - Physical file path of the PDF document.password - Owner password of the encrypted PDF document.
public PdfDocument(byte[] bytData,
java.lang.String password)
PdfDocument class.
bytData - Byte array containing the PDF document data.password - Owner password of the encrypted pdf document.
public PdfDocument(java.io.ByteArrayInputStream bais,
java.lang.String password)
PdfDocument class.
bais - ByteArrayInputStream object containing the
PDF document data.password - Owner password of the encrypted pdf document.ByteArrayInputStream| Method Detail |
|---|
public PdfPage getPage(int pageNumber)
pageNumber - The page number to retrieve.
PdfPage object.PdfPagepublic java.lang.String getTitle()
public java.lang.String getAuthor()
public java.lang.String getSubject()
public java.lang.String getKeywords()
public java.lang.String getCreator()
public boolean getTagged()
public SecurityInfo getSecurityInfo()
public java.lang.String getProducer()
public Attachment[] getAttachments()
public java.lang.String getXmpMetadata()
public PdfOutlineList getOutlines()
PdfOutline at the given index.
Licensing:
This class is a DynamicPDF Merger Standard Edition feature.
One of the following licenses is required for non-evaluation usage:
public PdfForm getForm()
PdfFormpublic void setDocumentInfo(Document document)
Document
to match this document.
document - A document to set.Documentpublic CollectionType getCollectionType()
public void setCollectionType(CollectionType value)
public PdfPageList getPages()
PdfPageListpublic java.lang.String getText()
Licensing:
This class is a DynamicPDF Merger Standard Edition feature.
One of the following licenses is required for non-evaluation usage:
|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||