On line guide/help
Help contents index
Found 44 pages
Getting started
- Introduction - How the PDFReport library works
- Installation - Install the library
- Test installation - Quick check
- Version history - Current version : 1.0.12 - 05 Oct. 2026
Template structure
- Template basic - Introduction to the XML template format
- Comments - Comments in the XML template
- Page settings - Defining default page settings
- New page - Creating a new page
- Content - Content section
- Print content - Print content section
- Section - Report flow, data loops and master / detail reports
- Generate output - Create output PDF file
- Conditional printing - Print an element only when a condition is true
Data
- Data placeholder - Using data through variables or database fields
- Variables - Set variables in the PHP code and in the template
- System variables - Automatic placeholders
- Value formatting - Format numbers, percentages and currency values
- Data providers - Read the report data from a database, a file or a PHP array
Drawing elements
- Line - Draw a line
- Box - Draw a text
- Rectangle - Draw a rectangle
- Circle - Draw a circle
- Barcode - Print a barcode
- Image - Print an image
Styles
- Line style - Set the line style
- Fillstyle - Set the fill style
- Font - Set the font style
- Opacity - Set the default transparency factor
- Text fit - Fit long texts into the box area
Charts
- Piechart - Draw a pie / ring chart
- Singlebarchart - Draw a single bar chart
- Gaugechart - Draw a gauge chart
- Kpichart - Draw a KPI chart
- Bar chart - Draw a bar chart
- Line chart - Draw a line or area chart
- Legend - Draw a chart legend
- Segmentlist - Define the chart sections
- Datalist - Data list for charts
- Measures - Chart measures
Reference
- PHP API reference - Public methods of the PDFReport class
- Debugging - Log file and common errors
Samples
- Basic test report - Build a basic report with a single php file
- Master-Details report in Laravel - Build a master-details report using the Laravel framework
- Master-Details report in Symfony - Build a master-details report using the Symfony framework