Class PDFProcessor
java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.PDFProcessor
- All Implemented Interfaces:
Processor
Processor implementation that translates CommandSequences to
a Document in the Portable Document Format (PDF).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInitializes aPDFProcessorfor compressed PDF documents.PDFProcessor(boolean compressed) Initializes aPDFProcessorwith the specified compression settings. -
Method Summary
Modifier and TypeMethodDescriptiongetDocument(CommandSequence commands, PageSize pageSize) Constructs aDocumentfrom the specified commands.booleanReturns whether the current PDF document is compressed.
-
Field Details
-
compressed
private final boolean compressed
-
-
Constructor Details
-
PDFProcessor
public PDFProcessor()Initializes aPDFProcessorfor compressed PDF documents. -
PDFProcessor
public PDFProcessor(boolean compressed) Initializes aPDFProcessorwith the specified compression settings.- Parameters:
compressed-trueif compression is enabled,falseotherwise.
-
-
Method Details
-
isCompressed
public boolean isCompressed()Returns whether the current PDF document is compressed.- Returns:
trueif the document is compressed,falseotherwise.
-
getDocument
Description copied from interface:ProcessorConstructs aDocumentfrom the specified commands.- Specified by:
getDocumentin interfaceProcessor- Parameters:
commands- Commands used to create theDocument.pageSize- Size of the resultingDocument.- Returns:
Documentrepresentation of the commands.
-