[ 
https://issues.apache.org/jira/browse/PDFBOX-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13828027#comment-13828027
 ] 

Thomas Chojecki commented on PDFBOX-1745:
-----------------------------------------

I think this issue is solved by PDFBOX-1780

Can you please test it with the latest pdfbox?

I've used the latest 1.8.3-SNAPSHOT and the follow code:

    PDFMergerUtility merger = new PDFMergerUtility();
    merger.addSources(Arrays.asList(new InputStream[] { 
        PDFMerge.class.getResourceAsStream("/pdfbox_1745/pdf_1.pdf"),
        PDFMerge.class.getResourceAsStream("/pdfbox_1745/pdf_2.pdf") }));
    merger.setDestinationStream(new FileOutputStream("tmp/merged.pdf"));
    merger.mergeDocuments();


If you are using maven, you can grab the latest snapshot from the snapshot 
repository

http://repository.apache.org/snapshots/

> PDF generated with PDFMergerUtility error out when opening.
> -----------------------------------------------------------
>
>                 Key: PDFBOX-1745
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1745
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.8.2
>            Reporter: Ken Liu
>            Priority: Blocker
>         Attachments: merged_bad.pdf, pdf_1.pdf, pdf_2.pdf
>
>
> Two pdf files - pdf_1 and pdf_2, after merged by PDFMergerUtility,
> pdf_1 + pdf_2: error out when opening the merged pdf, when browsing down to 
> the pdf_2 part.
> pdf_2 + pdf_1: works.
> This issue is different than PDFBOX-515. for this problem, pdf is gernerated 
> in both way, but when opening, get errors.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to