Are you using iText to do the conversion from HTML to PDF?
Can you share any examples of your method?
We create an HTML template for each report which may include multiple
layouts (header, detail, summary totals, footers, etc.). Templates
generally reference a common style sheet.
We use RPG to perform "field" substitutions and generate HTML stream files.
Report programs use procedures from a common service program to streamline
The common service program includes a procedure which transforms the HTML
stream file to a PDF version.
Reports are defined in DB tables, including parameters which may be used to
filter SQL result sets. Most of our reports reference data from SQL Views.
Most report procedures are called from a generic utility which provides
prompting for record selection criteria prior to calling report procedures.
Here's a link to an example of an RPG service program, which assists with
parameter prompting, and generates a school course catalog.