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

Mike Cantrell edited comment on PDFBOX-3816 at 6/1/17 4:01 PM:
---------------------------------------------------------------

Are images re-encoded? I'm playing around with itext rups to inspect the 
content of the pages. I'm comparing a result from the first page compared 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}


was (Author: mcantrell):
Are images re-encoded? I'm playing around with itext rups 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to