[gs-bugs] [Bug 691454] MaxInlineImageSize values gt 8100 cause Adobe Reader error

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue Jul 13 08:40:00 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691454

Ken Sharp <ken.sharp at artifex.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Ken Sharp <ken.sharp at artifex.com> 2010-07-13 08:39:59 UTC ---
(In reply to comment #0)
> Created an attachment (id=6465)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=6465) [details]
> PS file with embedded graphics
> 
> Distill with the command: 
> C:\PROGRA~1\gs\gs8.71\bin\gswin32 -dMaxInlineImageSize=8100 -sDEVICE=pdfwrite
> -sOutputFile=MAX8100.pdf -c .setpdfwrite -f MAX.ps
> 
> Any value of MaxInlineImageSize greater than 8100 causes Adobe Reader 9 error
> when reading PDF file.  Error message is:
> "An error exists on this page. Acrobat may not display the page correctly.
> Please contact the person who created the PDF document to correct the problem."
> Display stops at first graphic.

There is no defined limit for an inline image in the PDF specification. There
is a recommendation that images should not exceed 4k but no defined limit. In
addition there is no limit mentioned in Appendix H 'Compatibility and
Implementation Notes'

Ghostscript defaults to a maximum of 4000 bytes, so is well within the
empirically discovered limit.

The fact that Acrobat doesn't like inline images greater than 8100 bytes does
not mean that other applications are not happy with this. Hobbling everyone
with Acrobat's limits does not seem sensible.

Because Ghostscript defaults to an acceptable size the user must take specific
action to create a file which Acrobat won't process, so I'm closing this as
'wontix' as to do so would limit the flexibility of other users.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list