Package org.apache.fop.render.pdf

Examples of org.apache.fop.render.pdf.PDFRenderer$DrawingInstruction


        TTFReader.main(args);
        assertTrue(metricsFile.isFile());
       
        FopFactory fopFactory = FopFactory.newInstance();
        FOUserAgent ua = fopFactory.newFOUserAgent();
        PDFRenderer renderer = new PDFRenderer();
        renderer.setUserAgent(ua);
        List fontList = new java.util.ArrayList();
        List triplets = new java.util.ArrayList();
        triplets.add(new FontTriplet(fontFamily, "normal", Font.WEIGHT_NORMAL));
        EmbedFontInfo font = new EmbedFontInfo(
                metricsFile.toURI().toASCIIString(),
                true, triplets,
                ttfFile.toURI().toASCIIString());
        fontList.add(font);
        renderer.addFontList(fontList);
       
        ua.setRendererOverride(renderer);
        OutputStream out = new NullOutputStream();
       
        Fop fop = fopFactory.newFop(null, ua, out);
View Full Code Here


        renderer = factory.createRenderer(ua, MimeConstants.MIME_FOP_IF);
        assertTrue(renderer instanceof IFRenderer);

        factory.setRendererPreferred(false);
        ua = fopFactory.newFOUserAgent();
        overrideRenderer = new PDFRenderer();
        overrideRenderer.setUserAgent(ua);
        ua.setRendererOverride(overrideRenderer);
        renderer = factory.createRenderer(ua, null);
        assertTrue(renderer == overrideRenderer);
View Full Code Here

        TTFReader.main(args);
        assertTrue(metricsFile.isFile());

        FopFactory fopFactory = FopFactory.newInstance();
        FOUserAgent ua = fopFactory.newFOUserAgent();
        PDFRenderer renderer = new PDFRenderer();
        renderer.setUserAgent(ua);
        List fontList = new java.util.ArrayList();
        List triplets = new java.util.ArrayList();
        triplets.add(new FontTriplet(fontFamily, "normal", Font.WEIGHT_NORMAL));
        EmbedFontInfo font = new EmbedFontInfo(
                metricsFile.toURI().toASCIIString(),
                true, triplets,
                ttfFile.toURI().toASCIIString(), null);
        fontList.add(font);
        renderer.addFontList(fontList);

        ua.setRendererOverride(renderer);
        OutputStream out = new NullOutputStream();

        Fop fop = fopFactory.newFop(null, ua, out);
View Full Code Here

TOP

Related Classes of org.apache.fop.render.pdf.PDFRenderer$DrawingInstruction

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.