Using compound documents, you can make a single PrizmDoc® for Java document composed of multiple files of different formats. For example, if you provide a PDF and an image file in that order, PrizmDoc® for Java will treat it as one document with the image file as the last page. Document modifications, such as rotating or inserting/deleting pages, cannot be done to a compound document without converting it to a single-file document (either a PDF or a TIF, depending on if the first content element was a text or image file).

Loading and displaying Compound Documents

To pass a number of documents to the viewer, the value of a documentId should start with a CompoundDocument, followed by a string of a comma-separated list of file names relative to “sample-documents” directory of the viewer. The list is issued to create the compound document. File names are listed in the order in which the documents are to be compiled for viewing. The following example shows how to load and display Compound document consisting of 1.pdf, 2.pdf and 3.pdf files that are located in virtualviewer/sample-documents/ directory:

http://localhost:8080/virtualviewer/index.html?documentId=CompoundDocument:1.pdf,2.pdf,3.pdf

Printing Compound Documents

To print a compound document, select the Print button.