Package net.sf.jasperreports.engine.export

Examples of net.sf.jasperreports.engine.export.JRPdfExporter$LocalFontMapper


    {
      if (exportType == ExportType.PDF)
      {
        engineOutput.setContentType(ReportEngineOutput.CONTENT_TYPE_PDF);
       
        exporter = new JRPdfExporter();       
      }
      else if (exportType == ExportType.XLS
          || exportType == ExportType.EXCEL)
      {
        engineOutput.setContentType(ReportEngineOutput.CONTENT_TYPE_XLS);
View Full Code Here


        if (jasperPrint == null) {
            throw new ReportingException("jasperPrint null, can't convert to  PDF report");
        }
        try {

            JRPdfExporter jrPdfExporter = new JRPdfExporter();
            jrPdfExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
            jrPdfExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, pdfOutputStream);
            jrPdfExporter.exportReport();

        } catch (JRException e) {
            throw new JRException("Error occurred exporting PDF report ", e);
        }
        return pdfOutputStream;
View Full Code Here

   */
  public static void renderAsPdf(JasperReport report, Map<String, Object> parameters, Object reportData,
      OutputStream stream) throws JRException {

    JasperPrint print = JasperFillManager.fillReport(report, parameters, convertReportData(reportData));
    render(new JRPdfExporter(), print, stream);
  }
View Full Code Here

   */
  public static void renderAsPdf(JasperReport report, Map<String, Object> parameters, Object reportData,
      OutputStream stream, Map<JRExporterParameter, Object> exporterParameters) throws JRException {

    JasperPrint print = JasperFillManager.fillReport(report, parameters, convertReportData(reportData));
    JRPdfExporter exporter = new JRPdfExporter();
    exporter.setParameters(exporterParameters);
    render(exporter, print, stream);
  }
View Full Code Here

    protected byte[] exportReportToBytes(JasperPrint jasperPrint, String type ) throws JRException {   
      JRExporter exporter = null;
       
    if( FORMAT_PDF.equalsIgnoreCase( type ) ){ 
      contentType = "application/pdf";
      exporter = new JRPdfExporter( );
    }else if( FORMAT_XML.equalsIgnoreCase( type ) ){
      contentType = "text/xml";
      exporter = new JRXmlExporter();
    }else if( FORMAT_HTML.equalsIgnoreCase( type ) ){
      contentType = "text/html";
View Full Code Here

   */
  public static void renderAsPdf(JasperReport report, Map parameters, Object reportData, OutputStream stream)
      throws JRException {

    JasperPrint print = JasperFillManager.fillReport(report, parameters, convertReportData(reportData));
    render(new JRPdfExporter(), print, stream);
  }
View Full Code Here

   */
  public static void renderAsPdf(JasperReport report, Map parameters, Object reportData, OutputStream stream,
      Map exporterParameters) throws JRException {

    JasperPrint print = JasperFillManager.fillReport(report, parameters, convertReportData(reportData));
    JRPdfExporter exporter = new JRPdfExporter();
    exporter.setParameters(exporterParameters);
    render(exporter, print, stream);
  }
View Full Code Here

  public JasperReportsPdfView() {
    setContentType("application/pdf");
  }

  protected JRExporter createExporter() {
    return new JRPdfExporter();
  }
View Full Code Here

   */
  public static void renderAsPdf(JasperReport report, Map parameters, Object reportData, OutputStream stream)
      throws JRException {

    JasperPrint print = JasperFillManager.fillReport(report, parameters, convertReportData(reportData));
    render(new JRPdfExporter(), print, stream);
  }
View Full Code Here

   * @see #convertReportData
   */
  public static void renderAsPdf(JasperReport report, Map parameters, Object reportData, OutputStream stream,
                   Map exporterParameters) throws JRException {
    JasperPrint print = JasperFillManager.fillReport(report, parameters, convertReportData(reportData));
    JRPdfExporter exporter = new JRPdfExporter();
    exporter.setParameters(exporterParameters);
    render(exporter, print, stream);
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.export.JRPdfExporter$LocalFontMapper

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.