org.apache.fop.pdf
Class PDFMetadata
- PDFWritable
Special PDFStream for Metadata.
encode , encodeString , encodeText , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , hasObjectNumber , makeReference , output , referencePDF , setDocument , setObjectNumber , toInlinePDFString , toPDF , toPDFString |
PDFMetadata
public PDFMetadata(Metadata xmp,
boolean readOnly)
org.apache.fop.pdf.PDFObject.PDFObject()
createXMPFromUserAgent
public static Metadata createXMPFromUserAgent(PDFDocument pdfDoc)
Creates an XMP document based on the settings on the PDF Document.
pdfDoc
- the PDF Document
- the requested XMP metadata
getMetadata
public Metadata getMetadata()
output
protected int output(OutputStream stream)
throws IOException
overload the base object method so we don't have to copy
byte arrays around so much
- output in interface PDFStream
outputRawStreamData
protected void outputRawStreamData(OutputStream out)
throws IOException
- outputRawStreamData in interface PDFStream
org.apache.fop.pdf.AbstractPDFStream.outputRawStreamData(java.io.OutputStream)
updateInfoFromMetadata
public static void updateInfoFromMetadata(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)
meta
- the metadatainfo
- the Info object
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.