|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.fop.pdf.PDFObject org.apache.fop.pdf.AbstractPDFStream org.apache.fop.pdf.PDFStream org.apache.fop.pdf.PDFMetadata
Special PDFStream for Metadata.
Field Summary |
Fields inherited from class org.apache.fop.pdf.PDFStream |
data |
Fields inherited from class org.apache.fop.pdf.PDFObject |
DATE_FORMAT, log |
Constructor Summary | |
PDFMetadata(org.apache.xmlgraphics.xmp.Metadata xmp,
boolean readOnly)
|
Method Summary | |
protected java.lang.String |
buildStreamDict(java.lang.String lengthEntry)
Constructs the dictionary for the stream. |
static org.apache.xmlgraphics.xmp.Metadata |
createXMPFromUserAgent(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 |
protected void |
outputRawStreamData(java.io.OutputStream out)
Sends the raw stream data to the target OutputStream. |
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) |
Methods inherited from class org.apache.fop.pdf.PDFStream |
add, getDataLength, getSizeHint, setData |
Methods inherited from class org.apache.fop.pdf.AbstractPDFStream |
encodeAndWriteStream, encodeStream, getFilterList, outputStreamData, prepareImplicitFilters |
Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeString, encodeText, formatDateTime, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, referencePDF, setDocument, setObjectNumber, toPDF, toPDFString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PDFMetadata(org.apache.xmlgraphics.xmp.Metadata xmp, boolean readOnly)
PDFObject.PDFObject()
Method Detail |
protected void setupFilterList()
AbstractPDFStream
setupFilterList
in class AbstractPDFStream
AbstractPDFStream.setupFilterList()
public org.apache.xmlgraphics.xmp.Metadata getMetadata()
protected int output(java.io.OutputStream stream) throws java.io.IOException
output
in class PDFStream
java.io.IOException
PDFObject.output(OutputStream)
protected void outputRawStreamData(java.io.OutputStream out) throws java.io.IOException
AbstractPDFStream
outputRawStreamData
in class PDFStream
java.io.IOException
AbstractPDFStream.outputRawStreamData(java.io.OutputStream)
protected java.lang.String buildStreamDict(java.lang.String lengthEntry)
AbstractPDFStream
buildStreamDict
in class AbstractPDFStream
lengthEntry
- value for the /Length entry
AbstractPDFStream.buildStreamDict(String)
public static org.apache.xmlgraphics.xmp.Metadata createXMPFromUserAgent(PDFDocument pdfDoc)
pdfDoc
- the PDF Document
public static void updateInfoFromMetadata(org.apache.xmlgraphics.xmp.Metadata meta, PDFInfo info)
meta
- the metadatainfo
- the Info object
|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |