Create two different PDF output files at the same time. The ODS PDF statement opens the PDF destination and creates PDF output.
The file Grain-1.pdf is created by the first ODS PDF statement. Because no style definition is specified, the default style, Styles.Printer, is used. The PDFTOC=2 option specifies that the table of contents is expanded two levels.
The file Grain-2.pdf is created by the second ODS PDF statement with the ID= option specified. The STYLE= option specifies that ODS use the style definition Brick. The ID= option gives this instance of the PDF destination the name BrickStyle. The PDFTOC=3 option specifies that the table of contents is expanded three levels. Note: If you do not specify the ID= option, this ODS PDF statement will close the instance of the PDF destination that was opened by the previous ODS PDF statement and open a new instance of the PDF destination. The file Grain-1.pdf will contain no output.
ods pdf file='grain-1.pdf' pdftoc=2; ods pdf (id=brickstyle) style=brick file='grain-2.pdf' pdftoc=3;