PDFMergerUtility#setDestinationDocumentInformation(org.apache.pdfbox.pdmodel.PDDocumentInformation) and PDFMergerUtility#setDestinationMetadata(org.apache.pdfbox.pdmodel.common.PDMetadata) that were added in April 2016. These allow to control the meta data in a merge without having
to reopen the result file.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private PDDocumentInformation | |
| private PDFMergerUtility | |
| private PDMetadata | |
| public InputStream | Returns: compound PDF document as a readable input stream.list of source PDF documents as RandomAccessRead. sources)Creates a compound PDF document from a list of input documents. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| PDFMergerExample | back to summary |
|---|---|
| public PDFMergerExample() | |
| createPDFDocumentInfo | back to summary |
|---|---|
| private PDDocumentInformation createPDFDocumentInfo(String title, String creator, String subject) | |
| createPDFMergerUtility | back to summary |
|---|---|
| private PDFMergerUtility createPDFMergerUtility(List<RandomAccessRead> sources, ByteArrayOutputStream mergedPDFOutputStream) | |
| createXMPMetadata | back to summary |
|---|---|
| private PDMetadata createXMPMetadata(COSStream cosStream, String title, String creator, String subject) throws BadFieldValueException, TransformerException, IOException | |
| merge | back to summary |
|---|---|
| public InputStream merge(final List<RandomAccessRead> sources) throws IOException Creates a compound PDF document from a list of input documents. The merged document is PDF/A-1b compliant, provided the source documents are as well. It contains document properties title, creator and subject, currently hard-coded.
| |