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)
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
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.
Can you attach a file that is giving you this problem?
Created attachment 49273 [details]
PDF file that creates invalid PostScript output with pdftops
(In reply to comment #1)
> Can you attach a file that is giving you this problem?
I attached a sample file. I needed to down convert it because it was originally too big for Bugzilla, and I wanted to verify that the smaller size file still generated the error (it does).
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/333.