Class DecompressObjectstreams

java.lang.Object
org.apache.pdfbox.tools.DecompressObjectstreams
All Implemented Interfaces:
Callable<Integer>

public final class DecompressObjectstreams extends Object implements Callable<Integer>
This program will just save the loaded pdf without any changes. As PDFBox doesn't support writing compressed object streams those streams are stripped and will be gone in the resulting file. This is very helpful when trying to debug problems as it'll make it possible to easily look through a PDF using a text editor. It also exposes problems which stem from objects inside object streams overwriting other objects.
  • Field Details

    • SYSERR

      private final PrintStream SYSERR
    • usageHelpRequested

      boolean usageHelpRequested
    • infile

      private File infile
    • outfile

      private File outfile
  • Constructor Details

    • DecompressObjectstreams

      public DecompressObjectstreams()
      Constructor.
  • Method Details

    • main

      public static void main(String[] args)
      This is the entry point for the application.
      Parameters:
      args - The command-line arguments.
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>