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)
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.
|
addCompression, createInputStream, createInputStream, createInputStream, createOutputStream, createOutputStream, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getLength, getMetadata, getStream, setDecodedStreamLength, setDecodeParms, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadata, toByteArraypublic PDMetadata(PDDocument document)
document - The document that the stream will be part of.public PDMetadata(PDDocument doc, InputStream str) throws IOException
doc - The document that will hold the stream.str - The stream parameter.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 © 2002–2018 The Apache Software Foundation. All rights reserved.