PDF Reports

Official Content
This documentation is valid for:

GeneXus developers can easily create a PDF report by defining a Procedure object with visual output.

The following properties and rule must be set in the procedure, in order to run it in PDF format:

Properties

Rule


Requirements

Acrobat Reader (or any other PDF viewer) must be installed on the client.

In Java Reports, the itext .jar and  itextasian .jar must be included in the classpath (in the WEB-INF\lib directory of the web-app).

Page sizes

All the page sizes that can be used in GeneXus are supported:

Type Measures
Letter 8 1/2 x 11 inches
Office 8 1/2 x 14 inches
Executive 7 1/4 x 10 1/2 inches
A4 210 x 297 mm
A5 148 x 210 mm
B5 182 x 257 mm
Envelope #9 3 7/8 x 8 7/8 inches
Envelope #10 10 4 1/8 x 9 ½ inches
Envelope DL 110 x 220mm
Envelope C5 162 x 229 mm
Envelope B5 176 x 250 mm
Envelope Monarch 3.875 x 7.5 inches
User Size  

Fonts

They are not automatically embedded in the generated PDF, so if you need to embed a specific font please read: How to embed a font in the pdf.

Check the following link for supported fonts.

Settings

PDF report settings should be configured in the PDFReport.ini file.

PDF files are generated using the 1.4 version.

Set the following PDFReport.ini properties to generate a PDF file with a fixed page size such as A3, A4, Letter.

  • LeftMargin = 0
  • TopMargin = 0

See Also

How to create a Pdf Report on Server Hard Disk
PDF Report printing - Client-side printing in web applications




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.