Class CreatePortableCollection
java.lang.Object
org.apache.pdfbox.examples.pdmodel.CreatePortableCollection
This is an example on how to create a portable collection PDF, as described in the PDF 1.7
specification in chapter 12.3.5. It uses the COS methods because there are not any PD classes
yet. If you want to help, we'd need PDCollection, PDCollectionField, PDCollectionSort and
PDCollectionItem.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CreatePortableCollection
private CreatePortableCollection()Constructor.
-
-
Method Details
-
doIt
Create a portable collection PDF with two files.- Parameters:
file- The file to write the PDF to.- Throws:
IOException- If there is an error writing the data.
-
main
This will create a portable collection PDF.
see usage() for commandline- Parameters:
args- Command line arguments.- Throws:
IOException
-
usage
private void usage()This will print out a message telling how to use this example.
-