To PDF

To export the results of a report to PDF file, follow the steps below:

  1. In JReport Designer, open the web report or the report tab in a page report that you want to export.
  2. Click File > Export To > PDF.
  3. In the Export to PDF dialog, specify the settings as required. See the dialog.
  4. When done, click OK to generate the file.

See also Export to PDF dialog for detailed explanation about options in this dialog.

The following example shows how to export the results of a report to PDF format and view the exported result file, taking the sample report CustomerAnalysis.cls in SampleReports.cat as an example:

  1. Click File > Open on the menu bar.
  2. In the Open Report dialog, click the Browse button to open the catalog file SampleReports.cat in <install_root>\Demo\Reports\SampleReports, then open CustomerAnalysis.cls in the catalog.
  3. Click File > Export To > PDF to open the Export to PDF dialog.
  4. Specify the path where the files will be exported and the file name as required. Here we use the default path C:\JReport\Designer\Demo\Reports\SampleReports\ and default name CustomerAnalysis_CustomerAnalysis.pdf.
  5. Make sure that TOC, Drilldown and Generate charts and barcodes using vector graphics are checked.
  6. Check the Encrypt option to set the document open password and permissions password in the Encrypt dialog. See the dialog.
  7. Check the Sign option to set a digital ID for the PDF file in the Sign Digital ID dialog. See the dialog.
  8. Check Run Linked Report if you want to include the linked reports in the exported PDF result.
  9. When done, click OK to generate the files.
  10. Open the directory C:\JReport\Designer\Demo\Reports\SampleReports\ and fine the exported files.
  11. Open the file CustomerAnalysis_CustomerAnalysis.pdf with the inputted document open password or permissions password using the Adobe Acrobat software.
  12. The Table of Contents (TOC) is displayed in the left Bookmarks panel, and includes the names of both groups and subgroups. If you click a group, the contents will be shown in the right pane.
  13. The signature is displayed in the left Security Settings panel, and all information you set can be found there.
  14. Place the mouse pointer over a summary field. When it becomes a hand, click to view the details of the summary.

    Note that summaries should be inserted into the report in advance. They cannot be hidden or suppressed; otherwise you will not be able to get the drill-down files.

    Also, since the option Generate charts and barcodes using vector graphics is checked when exporting the report, when zooming in the chart, you will find that the chart is a vector graphic which never distorts.

Notes: