Package net.sf.jasperreports.engine.export

Examples of net.sf.jasperreports.engine.export.PdfFont


     * @throws JRException
     */
    public byte[] getPdf() throws JRException {
       
        Map fontMap = new HashMap();
        fontMap.put(new FontKey("Arial", true, false), new PdfFont("Helvetica-Bold", "Cp1252", false));
        fontMap.put(new FontKey("Arial", false, true), new PdfFont("Helvetica-Oblique", "Cp1252", false));
        fontMap.put(new FontKey("Arial", true, true), new PdfFont("Helvetica-BoldOblique", "Cp1252", false));
        fontMap.put(new FontKey("Comic Sans MS", false, false), new PdfFont("COMICBD.TTF", "Cp1252", true));
       
        ByteArrayOutputStream out = new ByteArrayOutputStream();
       
        JRPdfExporter exporter = new JRPdfExporter();
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, this.getJasperPrint());
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.export.PdfFont

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.