org.pdfbox.pdmodel.common
Class PDMetadata
- COSObjectable
This class represents metadata for various objects in a PDF document.
addCompression , createFromCOS , createInputStream , createOutputStream , getByteArray , getCOSObject , getDecodeParams , getFile , getFileDecodeParams , getFileFilters , getFilters , getInputStreamAsString , getLength , getMetadata , getPartiallyFilteredStream , getStream , setDecodeParams , setFile , setFileDecodeParams , setFileFilters , setFilters , setMetadata |
PDMetadata
public PDMetadata(COSStream str)
Constructor.
str
- The stream parameter.
PDMetadata
public PDMetadata(PDDocument document)
This will create a new PDMetadata object.
document
- The document that the stream will be part of.
PDMetadata
public PDMetadata(PDDocument doc,
InputStream str,
boolean filtered)
throws IOException
Constructor. Reads all data from the input stream and embeds it into the
document, this will close the InputStream.
doc
- The document that will hold the stream.str
- The stream parameter.filtered
- True if the stream already has a filter applied.