Class PDFProcessor
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.pdf.PDFProcessor
-
- All Implemented Interfaces:
Processor
public class PDFProcessor extends java.lang.Object implements Processor
Processor
implementation that translatesCommandSequence
s to aDocument
in the Portable Document Format (PDF).
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
compressed
-
Constructor Summary
Constructors Constructor Description PDFProcessor()
Initializes aPDFProcessor
for compressed PDF documents.PDFProcessor(boolean compressed)
Initializes aPDFProcessor
with the specified compression settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
getDocument(CommandSequence commands, PageSize pageSize)
Constructs aDocument
from the specified commands.boolean
isCompressed()
Returns whether the current PDF document is compressed.
-
-
-
Constructor Detail
-
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 Detail
-
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 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.
-
-