public class PD4Document extends PD4DocumentBase
bytes, debug, newDocument, overlay, overlayDestScope, overlayOpacity, overlaySrcScope, password, pdf, reassignedToAnotherDocument, stream, toMerge, underlayFlag, url| Constructor and Description |
|---|
PD4Document(byte[] bytes,
java.lang.String password) |
PD4Document(java.io.InputStream stream,
java.lang.String password) |
PD4Document(java.net.URL url,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
static void |
mergePDFs(java.io.InputStream pdf1,
java.io.InputStream pdf2,
java.io.OutputStream result)
basic PDF merging method.
|
protected void |
read(int objectCounter)
reads and parses given PDF document stream
|
append, computeScope, deletePage, dumpOutlines, getAuthor, getCreationDate, getCreator, getKeywords, getModDate, getNumberOfPages, getObjectCounter, getPageContent, getPdfFormatVersion, getPermissions, getProducer, getSubject, getTitle, overlay, overlay, read, readIfNeeded, setAuthor, setCreator, setKeywords, setModDate, setSubject, setTitle, underlay, underlay, write, writepublic PD4Document(byte[] bytes,
java.lang.String password)
throws PD4InvokeException
bytes - PDF document as an array of bytespassword - if any. "null" for not protected PDF documentsPD4InvokeException - by invalid call parameterspublic PD4Document(java.io.InputStream stream,
java.lang.String password)
throws PD4InvokeException
stream - PDF document input streampassword - if any. "null" for not protected PDF documentsPD4InvokeException - by invalid call parameterspublic PD4Document(java.net.URL url,
java.lang.String password)
throws PD4InvokeException
url - PDF document URLpassword - if any. "null" for not protected PDF documentsPD4InvokeException - by invalid call parameterspublic static void mergePDFs(java.io.InputStream pdf1,
java.io.InputStream pdf2,
java.io.OutputStream result)
throws java.io.IOException
pdf1 - main PDF document bytes streampdf2 - PDF document bytes to appendresult - output stream to write resulting PDFjava.io.IOException - reflects a variety of PDF read/parse/write errorsprotected void read(int objectCounter)
throws java.io.IOException,
PD4InvalidPasswordException
read in class PD4DocumentBaseobjectCounter - initial object number to re-index PDF objects. Used by PDF merge scenariosjava.io.IOException - read/parsing errorsPD4InvalidPasswordExceptionCopyright © 2004-15 zefer.org. All Rights Reserved.