|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.common.PDStream
org.apache.pdfbox.pdmodel.common.PDMetadata
public class PDMetadata
This class represents metadata for various objects in a PDF document.
Constructor Summary | |
---|---|
PDMetadata(COSStream str)
Constructor. |
|
PDMetadata(PDDocument document)
This will create a new PDMetadata object. |
|
PDMetadata(PDDocument doc,
InputStream str,
boolean filtered)
Constructor. |
Method Summary | |
---|---|
XMPMetadata |
exportXMPMetadata()
Extract the XMP metadata and create and build an in memory object. |
void |
importXMPMetadata(XMPMetadata xmp)
Import an XMP stream into the PDF document. |
Methods inherited from class org.apache.pdfbox.pdmodel.common.PDStream |
---|
addCompression, createFromCOS, createInputStream, createOutputStream, getByteArray, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getInputStreamAsString, getLength, getMetadata, getPartiallyFilteredStream, getStream, setDecodedStreamLength, setDecodeParms, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public XMPMetadata exportXMPMetadata() throws IOException
IOException
- If there is an error parsing the XMP data.public void importXMPMetadata(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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |