You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/05/18 19:49:04 UTC

[jira] [Commented] (PDFBOX-3795) PDFMergeUtility error invalid stored block lengths

    [ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org