You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Mike Cantrell (JIRA)" <ji...@apache.org> on 2017/06/01 15:59:04 UTC

[jira] [Commented] (PDFBOX-3816) PDF split produces inflated file sizes

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

Mike Cantrell commented on PDFBOX-3816:
---------------------------------------

Are images re-encoded? I'm playing around with itext rup to inspect the content of the pages. I'm comparing a result from the first page compared with a smaller file produced by ghostscript and I noticed that the length of the image stream is very long:

pdfbox:
{code}
<<
/BitsPerComponent 8
/ColorSpace /DeviceGray
/Filter /DCTDecode
/Height 1803
/Length 261723
/Subtype /Image
/Type /XObject
/Width 1100
>>
stream
{code}

gs:
{code}
<</Subtype/Image
/ColorSpace/DeviceGray
/Width 1100
/Height 1803
/BitsPerComponent 8
/Filter/DCTDecode/Length 168521>>
stream
{code}

> PDF split produces inflated file sizes
> --------------------------------------
>
>                 Key: PDFBOX-3816
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3816
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.6
>            Reporter: Mike Cantrell
>            Priority: Minor
>
> It seems that there are still issues surrounding inflated PDF page sizes when performing split operations. See PDFBOX-1618 for background.
> My test PDF is 97MB and the resulting pages are 851MB. The following demonstrates the issue with the command line tool:
> {code}
> curl https://storage.googleapis.com/pids-share/high-rez-color.pdf -o test.pdf
> java -jar $PDFBOXTOOLS/pdfbox-app-2.0.6.jar PDFSplit test.pdf
> {code}



--
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