Customizing the appearance of the PDF
You can use options in both the originating batch application and sysout2pdf to output an appropriate number of records on each page. You can also use a filter to add bookmarks to the generated PDF.
You might need to experiment to make the pages of your batch report fit neatly onto the pages of a PDF. There are several ways you can achieve this.
A typical 133-column-wide report fits neatly onto the default PDF style (landscape letter-size pages, half-inch margins, 9-point text). However, reports can be paginated with more lines per page than will fit using this style. Ideally, batch applications provide a parameter that allows you to adjust this value. For example, CICS Performance Analyzer provides the LINECNT parameter. LINECNT(45) works well with the default sysout2pdf style. Otherwise, you can specify a different page size (using the -style or -param command-line options) and a different font size (using -param).
For further customization, edit a copy of styles/default.xsl, and use it via the -style command-line option. Note that styles/default.xsl specifies encoding="IBM-1047" (that is, EBCDIC encoding) in the XML declaration.
Adding bookmarks
<bookmark id="id">title</bookmark>
where id is
a unique identifier for the bookmark (not visible to users) and title
is the title of the bookmark. To nest a bookmark under another bookmark,
add a parent-id="id" attribute to the child bookmark,
where id is the id attribute value of the parent
bookmark. For example:<bookmark id="secta">Section A</bookmark>
<bookmark id="subsecta1" parent-id="secta">Section A.1</bookmark>
See
the supplied filters (in the filters directory) for examples.