Class PDFProcessor

java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.PDFProcessor
All Implemented Interfaces:
Processor

public class PDFProcessor extends Object implements Processor
Processor implementation that translates CommandSequences to a Document in the Portable Document Format (PDF).
  • Field Details

    • compressed

      private final boolean compressed
  • Constructor Details

    • PDFProcessor

      public PDFProcessor()
      Initializes a PDFProcessor for compressed PDF documents.
    • PDFProcessor

      public PDFProcessor(boolean compressed)
      Initializes a PDFProcessor with the specified compression settings.
      Parameters:
      compressed - true if compression is enabled, false otherwise.
  • Method Details

    • isCompressed

      public boolean isCompressed()
      Returns whether the current PDF document is compressed.
      Returns:
      true if the document is compressed, false otherwise.
    • getDocument

      public Document getDocument(CommandSequence commands, PageSize pageSize)
      Description copied from interface: Processor
      Constructs a Document from the specified commands.
      Specified by:
      getDocument in interface Processor
      Parameters:
      commands - Commands used to create the Document.
      pageSize - Size of the resulting Document.
      Returns:
      Document representation of the commands.