pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilad Denneboom (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PDFBOX-1106) PDFMergerUtility corrupts file attachments
Date Wed, 24 Aug 2011 11:39:29 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gilad Denneboom updated PDFBOX-1106:
------------------------------------

    Attachment: merged.pdf
                2.pdf
                1.pdf

Attached the file used in the above code, including the result.
File 2 contains the original attachments.

> PDFMergerUtility corrupts file attachments
> ------------------------------------------
>
>                 Key: PDFBOX-1106
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1106
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.6.0
>         Environment: Windows 7, Acrobat Pro 9.4.4, Eclipse Helios SR2 
>            Reporter: Gilad Denneboom
>            Priority: Minor
>              Labels: PDFMergerUtility, attachments
>         Attachments: 1.pdf, 2.pdf, merged.pdf
>
>
> When combining files that contain (PDF) file attachments, the attachments carry over,
but are corrupted in the merged file.
> Code used:
> 		PDFMergerUtility merger = new PDFMergerUtility();
> 		merger.addSource("c:/gilad/testing/in/1.pdf");
> 		merger.addSource("c:/gilad/testing/in/2.pdf");
> 		merger.setDestinationFileName("c:/gilad/testing/in/merged.pdf");
> 		try {
> 			merger.mergeDocuments();
> 		} catch (Exception e) {
> 			e.printStackTrace();
> 		}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message