public class PdfDocument extends PdfDocumentBase
pdf
Constructor and Description |
---|
PdfDocument(byte[] bytes,
String password) |
PdfDocument(InputStream stream,
String password) |
PdfDocument(com.pd4ml.pdf.parser.PdfDoc writer) |
PdfDocument(URL url,
String password) |
Modifier and Type | Method and Description |
---|---|
static void |
mergePDFs(InputStream pdf1,
InputStream pdf2,
OutputStream result)
basic PDF merging method.
|
append, computeScope, deletePage, dumpOutlines, getAuthor, getCreationDate, getCreator, getKeywords, getMetadata, getModDate, getNumberOfPages, getPageContent, getPdfFormatVersion, getPermissions, getProducer, getSubject, getTitle, overlay, overlay, read, setAuthor, setCreator, setKeywords, setModDate, setSubject, setTitle, underlay, underlay, write, write
public PdfDocument(byte[] bytes, String password) throws InvokeException
bytes
- PDF document as an array of bytespassword
- if any. "null" for not protected PDF documentsInvokeException
- by invalid call parameterspublic PdfDocument(InputStream stream, String password) throws InvokeException
stream
- PDF document input streampassword
- if any. "null" for not protected PDF documentsInvokeException
- by invalid call parameterspublic PdfDocument(URL url, String password) throws InvokeException
url
- PDF document URLpassword
- if any. "null" for not protected PDF documentsInvokeException
- by invalid call parameterspublic PdfDocument(com.pd4ml.pdf.parser.PdfDoc writer) throws InvokeException
writer
- PDF document PdfWriter objectInvokeException
- by invalid call parameterspublic static void mergePDFs(InputStream pdf1, InputStream pdf2, OutputStream result) throws IOException
pdf1
- main PDF document bytes streampdf2
- PDF document bytes to appendresult
- output stream to write resulting PDFIOException
- reflects a variety of PDF read/parse/write errorsRevision 4.0.6 / 20190903-0454