Summary: | pdfopt crashes when linearizing file | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Pablo Rodríguez <ghostscript> |
Component: | General | Assignee: | Alex Cherepanov <alex> |
Status: | RESOLVED WONTFIX | ||
Severity: | major | ||
Priority: | P4 | ||
Version: | 8.64 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | samples.tar.bz2 - local copy of the sample files. |
Description
Pablo Rodríguez
2009-05-02 05:02:59 UTC
It crashes with http://www.archive.org/download/LawrenceLessigRemix/Remix-o.pdf: Error: /undefined in --get-- Operand stack: --nostringval-- FirstPageXrefLength 4628770 --dict:915/1080(L)-- 916 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- 917 1 916 --nostringval-- %for_pos_int_continue --nostringval-- Dictionary stack: --dict:1148/1684(ro)(G)-- --dict:1/20(G)-- --dict:108/200(L)-- --dict:76/200(G)-- --dict:278/300(ro)(G)-- --dict:18/25(L)-- --dict:46/80(L)-- Current allocation mode is local Last OS error: 2 Current file position is 36516 GPL Ghostscript 8.64: Unrecoverable error, exit code 1 Again, I used the -compat option with Multivalent compress to generate that file. BTW, it doesn't happen with the original file (http://www.bloomsburyacademic.com/pdf%20files/Remix.pdf). Just in case it might help, Pablo Created attachment 5075 [details]
samples.tar.bz2 - local copy of the sample files.
pdfopt is implemented in PostScript and is rather difficult to maintain.
Currently it doesn't support object streams or directory streams that have been
introduced in PDF 1.6. You can convert your files to PDF 1.4 using ps2pdf
script before using pdfopt at the cost of significant increase of the file
size.
Probably, pdfopt will be replaced with a similar utility based on muPDF library
or linearization option in pdfwrite device.
Commit f2a40a3a7edd6d27caeaa19f7f644adf31ee972c adds a new 'FastWebView' switch to pdfwrite which enables the production of 'Linearised' or 'optimised for fast web view' PDF files. pdfopt.ps is now deprecated and no longer supported. |