Please consider implementing the use case you are looking for using a LivePage.
Limitations
Currently doesn't work with multi-instance installations.
Usage scenarios
- Export multiple Documents and Wiki pages using a shell script.
- Workflow actions that export Documents and store them in the repository.
- Job that exports multiple Documents and stores them in the repository.
Usage
Run java -jar loadpdf.jar with following parameters:
-a3 Use page size 'A3'
-a4 Use page size 'A4' (default)
-adjustWidth Specify to resize exported page to fit width.
-bookmarks Generate bookmarks for headings.
-header Include header and footer.
-host <arg> Host-URL (e.g.: http://localhost)
-landscape Use landscape page orientation
-legal Use page size 'Legal'
-letter Use page size 'Letter'
-location <arg> Module/Document/Wiki-Page Location (e.g.:
Specification/PB_ELibrary, _modules/ModuleName for
modules)
-password <arg> Password
-pdf <arg> Name of the destination pdf-file (e.g.: export.pdf)
-portrait Use portrait page orientation (default)
-project <arg> The source project's Id (e.g.: elibrary)
-tabloid Use page size 'Tabloid'
-user <arg> Username
-wiki Specifiy to export wiki pages or module home.
If you want to integrate the tool in your own Java extension take a look at the source code that are included in the download