public class PDMetadata extends PDStream
| Constructor and Description |
|---|
PDMetadata()
This will create a new PDMetadata object.
|
PDMetadata(COSStream str)
Constructor.
|
PDMetadata(InputStream str)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
exportXMPMetadata()
Extract the XMP metadata.
|
void |
importXMPMetadata(byte[] xmp)
Import an XMP stream into the PDF document.
|
createInputStream, createOutputStream, createOutputStream, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getLength, getMetadata, setDecodedStreamLength, setDecodeParms, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadata, toByteArraypublic PDMetadata()
public PDMetadata(InputStream str) throws IOException
str - The stream parameter.filtered - True if the stream already has a filter applied.IOException - If there is an error creating the stream in the document.public PDMetadata(COSStream str)
str - The stream parameter.public InputStream exportXMPMetadata() throws IOException
IOException - If there is an error parsing the XMP data.public void importXMPMetadata(byte[] xmp)
throws IOException
xmp - The XMP data.IOException - If there is an error generating the XML document.Copyright © 2020 sejda. All rights reserved.