public class PDMetadata extends PDStream
| Constructor and Description |
|---|
PDMetadata(COSStream str)
Constructor.
|
PDMetadata(PDDocument document)
This will create a new PDMetadata object.
|
PDMetadata(PDDocument doc,
InputStream str,
boolean filtered)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.jempbox.xmp.XMPMetadata |
exportXMPMetadata()
Deprecated.
will return an InputStream in the future.
|
void |
importXMPMetadata(byte[] xmp)
Import an XMP stream into the PDF document.
|
void |
importXMPMetadata(org.apache.jempbox.xmp.XMPMetadata xmp)
Deprecated.
|
addCompression, createFromCOS, createInputStream, createOutputStream, getByteArray, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getInputStreamAsString, getLength, getMetadata, getPartiallyFilteredStream, getStream, setDecodedStreamLength, setDecodeParms, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadatapublic PDMetadata(PDDocument document)
document - The document that the stream will be part of.public PDMetadata(PDDocument doc, InputStream str, boolean filtered) throws IOException
doc - The document that will hold the stream.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.@Deprecated public org.apache.jempbox.xmp.XMPMetadata 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.@Deprecated public void importXMPMetadata(org.apache.jempbox.xmp.XMPMetadata xmp) throws IOException, TransformerException
xmp - The XMP data.IOException - If there is an error generating the XML document.TransformerException - If there is an error generating the XML document.Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.