Class PDFProcessor
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.pdf.PDFProcessor
-
- All Implemented Interfaces:
Processor
public class PDFProcessor extends java.lang.Object implements Processor
Processorimplementation that translatesCommandSequences to aDocumentin the Portable Document Format (PDF).
-
-
Field Summary
Fields Modifier and Type Field Description private booleancompressed
-
Constructor Summary
Constructors Constructor Description PDFProcessor()Initializes aPDFProcessorfor compressed PDF documents.PDFProcessor(boolean compressed)Initializes aPDFProcessorwith the specified compression settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentgetDocument(CommandSequence commands, PageSize pageSize)Constructs aDocumentfrom the specified commands.booleanisCompressed()Returns whether the current PDF document is compressed.
-
-
-
Constructor Detail
-
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 Detail
-
isCompressed
public boolean isCompressed()
Returns whether the current PDF document is compressed.- Returns:
trueif the document is compressed,falseotherwise.
-
getDocument
public Document getDocument(CommandSequence commands, PageSize pageSize)
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.
-
-