[Poppler-bugs] [Bug 39354] New: pdftops with -preload option is creating an invalid PostScript file when OCG errors are present

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 18 13:36:08 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39354

           Summary: pdftops with -preload option is creating an invalid
                    PostScript file when OCG errors are present
           Product: poppler
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: utils
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: joseph.karolchik at nteligen.com


I am working with several large GeoPDF files from the US Geological Survey that
are causing a problem when converted to a PostScript output file using pdftops.
For this example, I used the latest stable release, but the problem exists in
earlier releases as well.

> pdftops -v
pdftops version 0.16.7
Copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2004 Glyph & Cog, LLC


I generate the output PostScript file using the following command:

> pdftops -preload geoFile.pdf geoFile.ps

The file contains layered data defined in Optional Content Groups, and some of
the OCGs cause an error message to be output, as follows:

Error: Could not find a OCG with Ref (65:0)
Error: Could not find a OCG with Ref (70:0)
Error: Could not find a OCG with Ref (75:0)
Error: Could not find a OCG with Ref (78:0)
Error: Could not find a OCG with Ref (89:0)
Error: Could not find a OCG with Ref (92:0)
Error: Could not find a OCG with Ref (93:0)
<etc>

Also, this error sometimes is output:

Error: XObject 'Tile_0000_0000' is unknown
Error: XObject 'Tile_0000_0001' is unknown
Error: XObject 'Tile_0000_0002' is unknown
Error: XObject 'Tile_0000_0003' is unknown
Error: XObject 'Tile_0001_0000' is unknown
Error: XObject 'Tile_0001_0001' is unknown
Error: XObject 'Tile_0001_0002' is unknown
Error: XObject 'Tile_0001_0003' is unknown
<etc>


If I try to open the file in a graphics viewer, it hangs when I try to open it
(or creates a blank screen).  If I use ghostScript to interpret the file using
ps2pdf, it will generate either a rangecheck or stack overflow error.


Note that if I don't use the "-preload" option that the PostScript output file
is usable, but missing some of the layers.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list