| Access | Constructor and Description |
|---|---|
| public | PDMetadata(PDDocument
The document that the stream will be part of. document)This will create a new PDMetadata object with the /Type and /Subtype entries for a document level metadata object. |
| public | PDMetadata(PDDocument
The document that will hold the stream. doc, InputStream The stream parameter. str)Constructor. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | |
| public void |
| PDMetadata | back to summary |
|---|---|
| public PDMetadata(PDDocument document) This will create a new PDMetadata object with the /Type and /Subtype entries for a document level metadata object.
| |
| PDMetadata | back to summary |
|---|---|
| public PDMetadata(PDDocument doc, InputStream str) throws IOException Constructor. Reads all data from the input stream and embeds it into the document, this will close the InputStream. The /Type and /Subtype entries for a document level metadata object will be created.
| |
| PDMetadata | back to summary |
|---|---|
| public PDMetadata(COSStream str) Constructor. This will not set up the /Type and /Subtype entries.
| |
| exportXMPMetadata | back to summary |
|---|---|
| public InputStream exportXMPMetadata() throws IOException Extract the XMP metadata. To persist changes back to the PDF you must call importXMPMetadata.
| |
| importXMPMetadata | back to summary |
|---|---|
| public void importXMPMetadata(byte[] xmp) throws IOException Import an XMP stream into the PDF document.
| |