Class PDFProcessor
java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.PDFProcessor
- All Implemented Interfaces:
Processor
Processor
implementation that translates CommandSequence
s to
a Document
in the Portable Document Format (PDF).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInitializes aPDFProcessor
for compressed PDF documents.PDFProcessor
(boolean compressed) Initializes aPDFProcessor
with the specified compression settings. -
Method Summary
Modifier and TypeMethodDescriptiongetDocument
(CommandSequence commands, PageSize pageSize) Constructs aDocument
from the specified commands.boolean
Returns whether the current PDF document is compressed.
-
Field Details
-
compressed
private final boolean compressed
-
-
Constructor Details
-
PDFProcessor
public PDFProcessor()Initializes aPDFProcessor
for compressed PDF documents. -
PDFProcessor
public PDFProcessor(boolean compressed) Initializes aPDFProcessor
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
Description copied from interface:Processor
Constructs aDocument
from the specified commands.- Specified by:
getDocument
in interfaceProcessor
- Parameters:
commands
- Commands used to create theDocument
.pageSize
- Size of the resultingDocument
.- Returns:
Document
representation of the commands.
-