Package org.apache.fop.pdf

Examples of org.apache.fop.pdf.PDFMetadata


            renderBookmarkItem(bookmarkItem.getSubData(i), pdfOutline);
        }
    }
   
    private void renderXMPMetadata(XMPMetadata metadata) {
        PDFMetadata pdfMetadata = pdfDoc.getFactory().makeMetadata(
                metadata.getDocument(), metadata.isReadOnly());
        pdfDoc.getRoot().setMetadata(pdfMetadata);
    }
View Full Code Here


        }
        if (pdfDoc.getRoot().getMetadata() == null) {
            //If at this time no XMP metadata for the overall document has been set, create it
            //from the PDFInfo object.
            Document xmp = PDFMetadata.createXMPFromUserAgent(pdfDoc);
            PDFMetadata pdfMetadata = pdfDoc.getFactory().makeMetadata(
                    xmp, true);
            pdfDoc.getRoot().setMetadata(pdfMetadata);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.fop.pdf.PDFMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.