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

Tilman Hausherr commented on PDFBOX-3795:
-----------------------------------------

The destination file has non compressed metadata content, but has Flate filter 
assigned.

The source files have compressed metadata. This is unusual but not forbidden. 
This line
{code}
newStream.getCOSObject().mergeInto(srcMetadata);
{code}
transfers all attributes, including the filter. That is bad.

> PDFMergeUtility error invalid stored block lengths
> --------------------------------------------------
>
>                 Key: PDFBOX-3795
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3795
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.6
>            Reporter: Julian Cowan
>              Labels: metadata, xmp
>         Attachments: pdf-01.pdf, pdf-02.pdf, pdf-03.pdf
>
>
> PDFMergeUtility fails with a DataFormatException when trying to merge PDF 
> documents.
> Caused by: java.util.zip.DataFormatException: invalid stored block lengths
> I have attached 3 PDF documents
> * pdf-01.pdf
> * pdf-02.pdf
> * pdf-03.pdf
> The first two PDF documents are good. They can be merged. In fact they were 
> used to create the third document (pdf-03.pdf).
> When trying to merge another PDF with the third document, the PDF merge 
> utility throws the error.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to