|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.AbstractPDFStream
org.apache.fop.pdf.PDFStream
org.apache.fop.pdf.PDFMetadata
public class 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 |
---|
log |
Constructor Summary | |
---|---|
PDFMetadata(org.apache.xmlgraphics.xmp.Metadata xmp,
boolean readOnly)
|
Method Summary | |
---|---|
static org.apache.xmlgraphics.xmp.Metadata |
createXMPFromPDFDocument(PDFDocument pdfDoc)
Creates an XMP document based on the settings on the PDF Document. |
protected java.lang.String |
getDefaultFilterName()
Returns the name of a suitable filter for this PDF object. |
org.apache.xmlgraphics.xmp.Metadata |
getMetadata()
|
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. |
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, add, getBufferOutputStream, getBufferWriter, getDataLength, getSizeHint, setData |
Methods inherited from class org.apache.fop.pdf.AbstractPDFStream |
---|
encodeAndWriteStream, encodeStream, get, getChildren, getDictionary, getFilterList, multipleFiltersAllowed, outputStreamData, prepareImplicitFilters, put, registerChildren, setDocument, setupFilterList |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setObjectNumber, setObjectNumber, setObjectNumber, setParent, 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)
xmp
- xmp metadatareadOnly
- true if read onlyPDFObject.PDFObject()
Method Detail |
---|
protected java.lang.String getDefaultFilterName()
getDefaultFilterName
in class AbstractPDFStream
PDFFilterList
public org.apache.xmlgraphics.xmp.Metadata getMetadata()
public int output(java.io.OutputStream stream) throws java.io.IOException
output
in class PDFStream
stream
- the stream to write the PDF to
java.io.IOException
- if there is an error writing to the streamprotected void outputRawStreamData(java.io.OutputStream out) throws java.io.IOException
outputRawStreamData
in class PDFStream
out
- OutputStream to write to
java.io.IOException
- In case of an I/O problemprotected void populateStreamDict(java.lang.Object lengthEntry)
populateStreamDict
in class AbstractPDFStream
lengthEntry
- value for the /Length entrypublic static org.apache.xmlgraphics.xmp.Metadata createXMPFromPDFDocument(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 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |