[pdftex] pdfopt
Bob Howlett
bobh at maths.usyd.edu.au
Mon Apr 9 20:37:50 CEST 2001
Alan Shutko wrote:
>
> Hans Hagen <pragma at wxs.nl> writes:
>
> > Optimizing is always a good idea and as far as i know rather robust too
> > (nowadays).
>
> I've been having troubles getting pdfopt to work on pdflatex'd files.
> With both GS 6.50 and 6.61:
>
> [08:33:55] wesley:~/gs6.61/lib $ ../bin/gs -q -dNODISPLAY -- pdfopt.ps resume.pdf opt.pdf
> ERROR: file position incorrect by -1
> Error: /rangecheck in padto
> Operand stack:
> --nostringval--
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
> Dictionary stack:
> --dict:958/1123(ro)(G)-- --dict:0/20(G)-- --dict:97/200(L)-- --dict:73/200(G)-- --dict:197/230(ro)(G)-- --dict:16/24(L)-- --dict:23/40(L)-- --dict:35/36(L)--
> Current allocation mode is local
> Current file position is 30124
> AFPL Ghostscript DEVELOPMENT RELEASE 6.61: Unrecoverable error, exit code 1
>
> That file was 13d... I've also tried 14f and files from 12o. I only
> see this problem with pdflatex'd files... anyone else see this?
>
> --
I can't get pdfopt to work either, but
gs -q -dNODISPLAY --pdfopt.ps resume.pdf opt.pdf
seems to go much closer to working than
gs -q -dNODISPLAY -- pdfopt.ps resume.pdf opt.pdf
In fact, it looks as though it's working, but I don't get any output
file.
This is under windows98, and also the same with Digital Alpha running
Compaq Tru64 Unix.
No doubt some trivial change can get it to write the output file,
but I don't understand postscript, so it's beyond me.
Bob Howlett
More information about the pdftex
mailing list