public class PSDocument extends AbstractDocument
content, READ_BUFFER_SIZETYPE_PDF, TYPE_POSTSCRIPT| Constructor and Description |
|---|
PSDocument() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Document document)
This methods appends pages the DSC way (only by relying on the
structure).
|
Document |
extract(int begin,
int end)
Return a new document containing pages of a given range.
|
int |
getPageCount()
Return document page count
|
String |
getType()
Return the type of the document.
|
void |
load(InputStream inputStream)
Load document from an InputStream.
|
assertValidPageIndex, assertValidPageRange, explode, getContent, getSize, load, write, writepublic void load(InputStream inputStream) throws IOException
Documentload in interface Documentload in class AbstractDocumentIOExceptionpublic int getPageCount()
throws DocumentException
DocumentDocumentExceptionpublic Document extract(int begin, int end) throws DocumentException
Documentbegin - Index of the first page to extractend - Index of the last page to extractDocumentExceptionpublic void append(Document document) throws DocumentException
append in interface Documentappend in class AbstractDocumentdocument - Document ot appendDocumentExceptionSafeAppenderModifierCopyright © 2016. All Rights Reserved.