public class PDFProcessor extends java.lang.Object implements Processor
Processor implementation that translates CommandSequences to
a Document in the Portable Document Format (PDF).| Constructor and Description |
|---|
PDFProcessor()
Initializes a
PDFProcessor for compressed PDF documents. |
PDFProcessor(boolean compressed)
Initializes a
PDFProcessor with the specified compression settings. |
| Modifier and Type | Method and Description |
|---|---|
Document |
getDocument(CommandSequence commands,
PageSize pageSize)
Constructs a
Document from the specified commands. |
boolean |
isCompressed()
Returns whether the current PDF document is compressed.
|
public PDFProcessor()
PDFProcessor for compressed PDF documents.public PDFProcessor(boolean compressed)
PDFProcessor with the specified compression settings.compressed - true if compression is enabled, false otherwise.public boolean isCompressed()
true if the document is compressed, false otherwise.public Document getDocument(CommandSequence commands, PageSize pageSize)
ProcessorDocument from the specified commands.getDocument in interface Processorcommands - Commands used to create the Document.pageSize - Size of the resulting Document.Document representation of the commands.