Bug 39354 - pdftops with -preload option is creating an invalid PostScript file when OCG errors are present
Summary: pdftops with -preload option is creating an invalid PostScript file when OCG ...
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-18 13:36 UTC by Joseph Karolchik
Modified: 2018-08-21 10:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
PDF file that creates invalid PostScript output with pdftops (691.44 KB, application/pdf)
2011-07-18 13:46 UTC, Joseph Karolchik
Details

Description Joseph Karolchik 2011-07-18 13:36:08 UTC
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.
Comment 1 Albert Astals Cid 2011-07-18 13:41:51 UTC
Can you attach a file that is giving you this problem?
Comment 2 Joseph Karolchik 2011-07-18 13:46:42 UTC
Created attachment 49273 [details]
PDF file that creates invalid PostScript output with pdftops
Comment 3 Joseph Karolchik 2011-07-18 13:50:27 UTC
(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).
Comment 4 GitLab Migration User 2018-08-21 10:42:09 UTC
-- 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.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.