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

Maruan Sahyoun commented on PDFBOX-1510:
----------------------------------------

Hi Andriy,

I'm closing the issue as PDDocument.load won't be changed to handle the issue 
you have. Instead PDDocument.loadNonSeq was created for that. In addition 
PDFBOX-1581 tracks handling an InputStream as a parameter for 
PDDocument.loadNonSeq.

BR
Maruan
                
> PDF gets corrupted when extracting it from the embedded files
> -------------------------------------------------------------
>
>                 Key: PDFBOX-1510
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1510
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Andriy
>            Priority: Critical
>         Attachments: doesnt_work.pdf, PDFEmbeddedFiles.java, works2.pdf
>
>
> When a PDF is attached to another PDF it gets corrupted when retrieved 
> through PDEmbeddedFile.getByteArray() method call. For some reason the 
> returned array has less data than the original file that has been attached to 
> the PDF.
> This affects some of the documents and not another (see attachments for 
> working/non-working files), source code reproducing the issue has been 
> attached as well.
> Please note: the issue is not occurring when using PDDocument.loadNonSeq, 
> it's on when using PDDocument.load

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to