COSObjectablepublic class PDMetadata extends PDStream
| Constructor | Description |
|---|---|
PDMetadata(COSStream str) |
Constructor.
|
PDMetadata(PDDocument document) |
This will create a new PDMetadata object.
|
PDMetadata(PDDocument doc,
java.io.InputStream str) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.io.InputStream |
exportXMPMetadata() |
Extract the XMP metadata.
|
void |
importXMPMetadata(byte[] xmp) |
Import an XMP stream into the PDF document.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCompression, 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, java.io.InputStream str) throws java.io.IOException
doc - The document that will hold the stream.str - The stream parameter.java.io.IOException - If there is an error creating the stream in the document.public PDMetadata(COSStream str)
str - The stream parameter.public java.io.InputStream exportXMPMetadata()
throws java.io.IOException
java.io.IOException - If there is an error parsing the XMP data.public void importXMPMetadata(byte[] xmp)
throws java.io.IOException
xmp - The XMP data.java.io.IOException - If there is an error generating the XML document.Copyright © 2002–2018. All rights reserved.