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

Eduard von Feek commented on PDFBOX-4223:
-----------------------------------------

Tested with
{code:java}
pdfbox-app-2.0.10-20180517.225820-119.jar{code}
... Awesome, also works like a charm. Thank you very much for the quick 
resolution!

> PDFMergerUtility: java.io.IOException: Error: can't convert to Destination 
> COSArray{[COSName{XYZ}]}
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4223
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4223
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 14.04 and Windows 7
>            Reporter: Eduard von Feek
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.10, 3.0.0 PDFBox
>
>
> Given a problematic PDF, there can be an IOException when merging two PDFs, 
> causing the merge to fail.
> Problematic example PDF: 
> [http://www.ecpol.econ.uni-muenchen.de/downloads/wipo2/wise09_10/uebung/dusonmevenroeller.pdf]
>  
> Provoking command line:
> {code:java}
> java -jar pdfbox-app-2.0.9.jar PDFMerger dusonmevenroeller.pdf 
> dusonmevenroeller.pdf out.pdf{code}
>  
> Stacktrace:
> {code:java}
> Exception in thread "main" java.io.IOException: Error: can't convert to 
> Destination COSArray{[COSName{XYZ}]}
>  at 
> org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination.create(PDDestination.java:98)
>  at 
> org.apache.pdfbox.pdmodel.PDDocumentCatalog.getOpenAction(PDDocumentCatalog.java:275)
>  at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:348)
>  at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:263)
>  at org.apache.pdfbox.tools.PDFMerger.merge(PDFMerger.java:70)
>  at org.apache.pdfbox.tools.PDFMerger.main(PDFMerger.java:49)
>  at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:81){code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to