Class CreatePortableCollection

java.lang.Object
org.apache.pdfbox.examples.pdmodel.CreatePortableCollection

public class CreatePortableCollection extends Object
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 Details

    • CreatePortableCollection

      private CreatePortableCollection()
      Constructor.
  • Method Details

    • doIt

      public void doIt(String file) throws IOException
      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

      public static void main(String[] args) throws IOException
      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.