org.apache.fop.pdf
public class PDFMetadata extends PDFStream
entries, orderDATE_FORMAT, log| Constructor and Description |
|---|
PDFMetadata(org.apache.xmlgraphics.xmp.Metadata xmp,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.xmlgraphics.xmp.Metadata |
createXMPFromPDFDocument(PDFDocument pdfDoc)
Creates an XMP document based on the settings on the PDF Document.
|
org.apache.xmlgraphics.xmp.Metadata |
getMetadata() |
protected int |
output(java.io.OutputStream stream)
overload the base object method so we don't have to copy
byte arrays around so much
Overload the base object method so we don't have to copy
byte arrays around so much
Write the PDF represention of this object
|
protected void |
outputRawStreamData(java.io.OutputStream out)
Sends the raw stream data to the target OutputStream.
|
protected void |
populateStreamDict(java.lang.Object lengthEntry)
Populates the dictionary with all necessary entries for the stream.
|
protected void |
setupFilterList()
Sets up the default filters for this stream if they haven't been set
from outside.
|
static void |
updateInfoFromMetadata(org.apache.xmlgraphics.xmp.Metadata meta,
PDFInfo info)
Updates the values in the Info object from the XMP metadata according to the rules defined
in PDF/A-1 (ISO 19005-1:2005)
|
add, getBufferOutputStream, getDataLength, getSizeHint, setDataencodeAndWriteStream, encodeStream, getFilterList, outputStreamData, prepareImplicitFiltersget, put, put, writeDictionaryencode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFStringpublic PDFMetadata(org.apache.xmlgraphics.xmp.Metadata xmp,
boolean readOnly)
PDFObject.PDFObject()protected void setupFilterList()
setupFilterList in class AbstractPDFStreampublic org.apache.xmlgraphics.xmp.Metadata getMetadata()
protected int output(java.io.OutputStream stream)
throws java.io.IOException
protected void outputRawStreamData(java.io.OutputStream out)
throws java.io.IOException
outputRawStreamData in class PDFStreamout - OutputStream to write tojava.io.IOException - In case of an I/O problemprotected void populateStreamDict(java.lang.Object lengthEntry)
populateStreamDict in class AbstractPDFStreamlengthEntry - value for the /Length entrypublic static org.apache.xmlgraphics.xmp.Metadata createXMPFromPDFDocument(PDFDocument pdfDoc)
pdfDoc - the PDF Documentpublic static void updateInfoFromMetadata(org.apache.xmlgraphics.xmp.Metadata meta,
PDFInfo info)
meta - the metadatainfo - the Info objectCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.