You can easily create a PDF report by defining a Procedure object with visual output.
You have to set the following properties and rule in the procedure, in order to run it in PDF format:
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).
All the page sizes that can be used in GeneXus are supported:
||8 1/2 x 11 inches
||8 1/2 x 14 inches
||7 1/4 x 10 1/2 inches
||210 x 297 mm
||148 x 210 mm
||182 x 257 mm
||3 7/8 x 8 7/8 inches
||10 4 1/8 x 9 ½ inches
||110 x 220mm
||162 x 229 mm
||176 x 250 mm
||3.875 x 7.5 inches
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.
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
How to create a Pdf Report on Server Hard Disk
PDF Report printing - Client-side printing in web applications
SAC # 34500