simon steiner commented on PDFBOX-3530:

I guess WriteDecodedDoc is reading images inside a pdf to bufferedimage then 
writing them out. why cant you copy the image as it was so its faster. this 
means i dont need to use qpdf which isnt portable.

> WriteDecodedDoc slow due to decoding images
> -------------------------------------------
>                 Key: PDFBOX-3530
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3530
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.3
>            Reporter: simon steiner
> PDF from PDFBOX-323
> time qpdf --stream-data=uncompress About\ Stacks.pdf /tmp/out.pdf
> real  0m0.200s
> user  0m0.020s
> sys   0m0.180s
> time java -jar pdf-box-svn/app/target/pdfbox-app-2.1.0-SNAPSHOT.jar 
> WriteDecodedDoc About\ Stacks.pdf /tmp/out.pdf
> real  0m1.536s
> user  0m1.497s
> sys   0m0.798s

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to