|
Errors generating pdf from ps using a joboptions file
Message-ID:<i44cl.67014$JA5.65545@newsfe08.iad>
Subject:Errors generating pdf from ps using a joboptions file
Date:Fri, 16 Jan 2009 19:09:37 +0100
Hello
I am aware that a joboptions file (in my case, specified by a journal)
is a simple postscript file.
Accordingly, I am using the following command line (on Mac Leopard using
MacTeX 2008) sequences to generate an appropriate PDF file from TeX source :
latex --shell-escape --synctex=1 "$filename.tex"
bibtex "$filename"
latex --shell-escape --synctex=1 "$filename.tex"
latex --shell-escape --synctex=1 "$filename.tex"
/usr/texbin/dvips "$filename.dvi"
/usr/local/bin/gs -dSAFER -dNOPAUSE -dNODISPLAY -sDEVICE=pdfwrite
-f$joboptionsfile -f$filename.ps $filename.pdf
I get the following error :
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in /setdistillerparams
Operand stack:
--dict:69/69(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1905 1 3
%oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop
1771 1 3 %oparray_pop --nostringval-- %errorexec_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 1909 1 3 %oparray_pop
--nostringval--
Dictionary stack:
--dict:1147/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Current file position is 2186
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
The postscript file looks fine using gs.
The joboptions file :
http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/ElectronicFiles/Templates/joboptions.asp
Its fairly long, and I did not want to lengthen this post needlessly.
The /undefined error above suggests that there is a subset of Adobe
specification that GhostScript does not implement. Is that true, or is
it (hopefully) something that I am missing ?
Message-ID:<gksvvg$qr8$03$1@news.t-online.com>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Sat, 17 Jan 2009 17:11:28 +0100
The joboptions file is for Acrobat Distiller, not GhostScript.
Message-ID:<MPG.23dd1cfc84fcfa8d989720@usenet.plus.net>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Sun, 18 Jan 2009 12:04:11 +0100
In article <gksvvg$qr8$03$1@news.t-online.com>, be_9002@yahoo.de says...
> The joboptions file is for Acrobat Distiller, not GhostScript.
Nevertheless, as the original poster stated, the content is simply
PostScript and should work on any PostScript interpreter which
understands setdistillerparams.
Ghosctscript does implement setdistillerparams, and so the original
command line should work.
I grabbed the joboptions file and used this (under Windows):
gswin32 -sDEVICE=pdfwrite -sOutputFile=\temp\out.pdf \temp
\RSC.joboptions \gs\examples\golfer.eps
The file completed succesfully.
The error message says 'undefined in setdistillerparams' and there is a
dictionary on the stack. It looks like the particular build of
Ghosctscript in use does not implement setdistillerparams.
This is defined in /gs/lib/gs_pdfwr.ps, which is supposed to be executed
when you select the pdfwrite device. Note tht by default on Linux
installations (not sure about Mac) this is compiled into the ROM file
system. You can override this by specifying -I<directory>.
The implementation of ssetdistillerparams is documented in
/gs/doc/ps2pdf.htm, where it says:
"ps2pdf recognizes all of the Acrobat Distiller 5 parameters defined in
the DistillerParameters document included in the Acrobat SDK."
This is followed by a table showing the default values and
implementation notes.
I woud ltry the test above and see if ti works, if it does then its
something about the output from dvips causing the problem.
Ken
Message-ID:<tk5el.4313$k57.2078@newsfe09.iad>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Thu, 22 Jan 2009 22:14:01 +0100
ken wrote:
> In article <gksvvg$qr8$03$1@news.t-online.com>, be_9002@yahoo.de says...
>> The joboptions file is for Acrobat Distiller, not GhostScript.
>
> Nevertheless, as the original poster stated, the content is simply
> PostScript and should work on any PostScript interpreter which
> understands setdistillerparams.
>
Quite so.
> Ghosctscript does implement setdistillerparams, and so the original
> command line should work.
>
> I grabbed the joboptions file and used this (under Windows):
>
> gswin32 -sDEVICE=pdfwrite -sOutputFile=\temp\out.pdf \temp
> \RSC.joboptions \gs\examples\golfer.eps
>
> The file completed succesfully.
>
> The error message says 'undefined in setdistillerparams' and there is a
> dictionary on the stack. It looks like the particular build of
> Ghosctscript in use does not implement setdistillerparams.
>
> This is defined in /gs/lib/gs_pdfwr.ps, which is supposed to be executed
> when you select the pdfwrite device. Note tht by default on Linux
> installations (not sure about Mac) this is compiled into the ROM file
> system. You can override this by specifying -I<directory>.
>
> The implementation of ssetdistillerparams is documented in
> /gs/doc/ps2pdf.htm, where it says:
>
> "ps2pdf recognizes all of the Acrobat Distiller 5 parameters defined in
> the DistillerParameters document included in the Acrobat SDK."
>
> This is followed by a table showing the default values and
> implementation notes.
>
>
> I woud ltry the test above and see if ti works, if it does then its
> something about the output from dvips causing the problem.
>
> Ken
I tried the same command on Linux (Ubuntu Hardy), and I have the same
problem :
GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in /setdistillerparams
Operand stack:
--dict:69/69(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval--
false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1
3 %oparray_pop 1888 1 3 %oparray_pop 1771 1
3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- 1909 1
3 %oparray_pop --nostringval--
Dictionary stack:
--dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:92/200(L)--
Message-ID:<6tu7c1FccdpdU1@mid.individual.net>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Fri, 23 Jan 2009 16:48:56 +0100
Geico Caveman wrote:
> Hello
>
> I am aware that a joboptions file (in my case, specified by a journal)
> is a simple postscript file.
>
> Accordingly, I am using the following command line (on Mac Leopard using
> MacTeX 2008) sequences to generate an appropriate PDF file from TeX
> source :
>
> latex --shell-escape --synctex=1 "$filename.tex"
> bibtex "$filename"
> latex --shell-escape --synctex=1 "$filename.tex"
> latex --shell-escape --synctex=1 "$filename.tex"
> /usr/texbin/dvips "$filename.dvi"
> /usr/local/bin/gs -dSAFER -dNOPAUSE -dNODISPLAY -sDEVICE=pdfwrite
> -f$joboptionsfile -f$filename.ps $filename.pdf
>
> I get the following error :
>
> GPL Ghostscript 8.63 (2008-08-01)
> Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Error: /undefined in /setdistillerparams
> Operand stack:
> --dict:69/69(L)--
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
> --nostringval-- false 1 %stopped_push 1905 1 3
> %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop
> 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop
> .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
> %stopped_push --nostringval-- 1909 1 3 %oparray_pop
> --nostringval--
> Dictionary stack:
> --dict:1147/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
> Current allocation mode is local
> Current file position is 2186
> GPL Ghostscript 8.63: Unrecoverable error, exit code 1
>
>
> The postscript file looks fine using gs.
>
> The joboptions file :
>
> http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/ElectronicFiles/Templates/joboptions.asp
>
>
> Its fairly long, and I did not want to lengthen this post needlessly.
>
> The /undefined error above suggests that there is a subset of Adobe
> specification that GhostScript does not implement. Is that true, or is
> it (hopefully) something that I am missing ?
I haven't tried yet on of the more recent 8.x versions of Ghostscript, but as for my experience,
joboptions as used for Acrobat distiller work perfectly with Ghostscript.
Perhaps you should modify your command line to e.g.
/usr/local/bin/gs -dSAFER -dNOPAUSE -sDEVICE=pdfwrite \
-sOutputFile=$filename.pdf -f$joboptionsfile $filename.ps
I suspect that the -dNODISPLAY internally switches to a device
other than pdfwrite and thus undefines the setdistillerparams and
currentdistillerparams operators.
And, for Ghostscript's file devices, the output file is always
specified by "-sOutputFile=pathname", and the "-f" option needs only
specified once (I do not know what happens if you repeat it).
Helge
--
Helge Blischke
Softwareentwicklung
H.Blischke@acm.org
Message-ID:<LYKfl.161891$H12.131966@newsfe12.iad>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Tue, 27 Jan 2009 22:24:54 +0100
Helge Blischke wrote:
>> The /undefined error above suggests that there is a subset of Adobe
>> specification that GhostScript does not implement. Is that true, or is
>> it (hopefully) something that I am missing ?
>
> I haven't tried yet on of the more recent 8.x versions of Ghostscript, but
> as for my experience, joboptions as used for Acrobat distiller work
> perfectly with Ghostscript.
>
> Perhaps you should modify your command line to e.g.
>
> /usr/local/bin/gs -dSAFER -dNOPAUSE -sDEVICE=pdfwrite \
> -sOutputFile=$filename.pdf -f$joboptionsfile $filename.ps
>
> I suspect that the -dNODISPLAY internally switches to a device
> other than pdfwrite and thus undefines the setdistillerparams and
> currentdistillerparams operators.
>
> And, for Ghostscript's file devices, the output file is always
> specified by "-sOutputFile=pathname", and the "-f" option needs only
> specified once (I do not know what happens if you repeat it).
>
> Helge
>
>
And right you are !
I just tried this command line on Linux and it works. I will check on Mac
later.
Message-ID:<i44cl.67014$JA5.65545@newsfe08.iad>
Subject:Errors generating pdf from ps using a joboptions file
Date:Fri, 16 Jan 2009 19:09:37 +0100
Hello
I am aware that a joboptions file (in my case, specified by a journal)
is a simple postscript file.
Accordingly, I am using the following command line (on Mac Leopard using
MacTeX 2008) sequences to generate an appropriate PDF file from TeX source :
latex --shell-escape --synctex=1 "$filename.tex"
bibtex "$filename"
latex --shell-escape --synctex=1 "$filename.tex"
latex --shell-escape --synctex=1 "$filename.tex"
/usr/texbin/dvips "$filename.dvi"
/usr/local/bin/gs -dSAFER -dNOPAUSE -dNODISPLAY -sDEVICE=pdfwrite
-f$joboptionsfile -f$filename.ps $filename.pdf
I get the following error :
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in /setdistillerparams
Operand stack:
--dict:69/69(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1905 1 3
%oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop
1771 1 3 %oparray_pop --nostringval-- %errorexec_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 1909 1 3 %oparray_pop
--nostringval--
Dictionary stack:
--dict:1147/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Current file position is 2186
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
The postscript file looks fine using gs.
The joboptions file :
http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/ElectronicFiles/Templates/joboptions.asp
Its fairly long, and I did not want to lengthen this post needlessly.
The /undefined error above suggests that there is a subset of Adobe
specification that GhostScript does not implement. Is that true, or is
it (hopefully) something that I am missing ?
Message-ID:<gksvvg$qr8$03$1@news.t-online.com>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Sat, 17 Jan 2009 17:11:28 +0100
The joboptions file is for Acrobat Distiller, not GhostScript.
Message-ID:<MPG.23dd1cfc84fcfa8d989720@usenet.plus.net>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Sun, 18 Jan 2009 12:04:11 +0100
In article <gksvvg$qr8$03$1@news.t-online.com>, be_9002@yahoo.de says...
> The joboptions file is for Acrobat Distiller, not GhostScript.
Nevertheless, as the original poster stated, the content is simply
PostScript and should work on any PostScript interpreter which
understands setdistillerparams.
Ghosctscript does implement setdistillerparams, and so the original
command line should work.
I grabbed the joboptions file and used this (under Windows):
gswin32 -sDEVICE=pdfwrite -sOutputFile=\temp\out.pdf \temp
\RSC.joboptions \gs\examples\golfer.eps
The file completed succesfully.
The error message says 'undefined in setdistillerparams' and there is a
dictionary on the stack. It looks like the particular build of
Ghosctscript in use does not implement setdistillerparams.
This is defined in /gs/lib/gs_pdfwr.ps, which is supposed to be executed
when you select the pdfwrite device. Note tht by default on Linux
installations (not sure about Mac) this is compiled into the ROM file
system. You can override this by specifying -I<directory>.
The implementation of ssetdistillerparams is documented in
/gs/doc/ps2pdf.htm, where it says:
"ps2pdf recognizes all of the Acrobat Distiller 5 parameters defined in
the DistillerParameters document included in the Acrobat SDK."
This is followed by a table showing the default values and
implementation notes.
I woud ltry the test above and see if ti works, if it does then its
something about the output from dvips causing the problem.
Ken
Message-ID:<tk5el.4313$k57.2078@newsfe09.iad>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Thu, 22 Jan 2009 22:14:01 +0100
ken wrote:
> In article <gksvvg$qr8$03$1@news.t-online.com>, be_9002@yahoo.de says...
>> The joboptions file is for Acrobat Distiller, not GhostScript.
>
> Nevertheless, as the original poster stated, the content is simply
> PostScript and should work on any PostScript interpreter which
> understands setdistillerparams.
>
Quite so.
> Ghosctscript does implement setdistillerparams, and so the original
> command line should work.
>
> I grabbed the joboptions file and used this (under Windows):
>
> gswin32 -sDEVICE=pdfwrite -sOutputFile=\temp\out.pdf \temp
> \RSC.joboptions \gs\examples\golfer.eps
>
> The file completed succesfully.
>
> The error message says 'undefined in setdistillerparams' and there is a
> dictionary on the stack. It looks like the particular build of
> Ghosctscript in use does not implement setdistillerparams.
>
> This is defined in /gs/lib/gs_pdfwr.ps, which is supposed to be executed
> when you select the pdfwrite device. Note tht by default on Linux
> installations (not sure about Mac) this is compiled into the ROM file
> system. You can override this by specifying -I<directory>.
>
> The implementation of ssetdistillerparams is documented in
> /gs/doc/ps2pdf.htm, where it says:
>
> "ps2pdf recognizes all of the Acrobat Distiller 5 parameters defined in
> the DistillerParameters document included in the Acrobat SDK."
>
> This is followed by a table showing the default values and
> implementation notes.
>
>
> I woud ltry the test above and see if ti works, if it does then its
> something about the output from dvips causing the problem.
>
> Ken
I tried the same command on Linux (Ubuntu Hardy), and I have the same
problem :
GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in /setdistillerparams
Operand stack:
--dict:69/69(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval--
false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1
3 %oparray_pop 1888 1 3 %oparray_pop 1771 1
3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- 1909 1
3 %oparray_pop --nostringval--
Dictionary stack:
--dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:92/200(L)--
Message-ID:<6tu7c1FccdpdU1@mid.individual.net>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Fri, 23 Jan 2009 16:48:56 +0100
Geico Caveman wrote:
> Hello
>
> I am aware that a joboptions file (in my case, specified by a journal)
> is a simple postscript file.
>
> Accordingly, I am using the following command line (on Mac Leopard using
> MacTeX 2008) sequences to generate an appropriate PDF file from TeX
> source :
>
> latex --shell-escape --synctex=1 "$filename.tex"
> bibtex "$filename"
> latex --shell-escape --synctex=1 "$filename.tex"
> latex --shell-escape --synctex=1 "$filename.tex"
> /usr/texbin/dvips "$filename.dvi"
> /usr/local/bin/gs -dSAFER -dNOPAUSE -dNODISPLAY -sDEVICE=pdfwrite
> -f$joboptionsfile -f$filename.ps $filename.pdf
>
> I get the following error :
>
> GPL Ghostscript 8.63 (2008-08-01)
> Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Error: /undefined in /setdistillerparams
> Operand stack:
> --dict:69/69(L)--
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
> --nostringval-- false 1 %stopped_push 1905 1 3
> %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop
> 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop
> .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
> %stopped_push --nostringval-- 1909 1 3 %oparray_pop
> --nostringval--
> Dictionary stack:
> --dict:1147/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
> Current allocation mode is local
> Current file position is 2186
> GPL Ghostscript 8.63: Unrecoverable error, exit code 1
>
>
> The postscript file looks fine using gs.
>
> The joboptions file :
>
> http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/ElectronicFiles/Templates/joboptions.asp
>
>
> Its fairly long, and I did not want to lengthen this post needlessly.
>
> The /undefined error above suggests that there is a subset of Adobe
> specification that GhostScript does not implement. Is that true, or is
> it (hopefully) something that I am missing ?
I haven't tried yet on of the more recent 8.x versions of Ghostscript, but as for my experience,
joboptions as used for Acrobat distiller work perfectly with Ghostscript.
Perhaps you should modify your command line to e.g.
/usr/local/bin/gs -dSAFER -dNOPAUSE -sDEVICE=pdfwrite \
-sOutputFile=$filename.pdf -f$joboptionsfile $filename.ps
I suspect that the -dNODISPLAY internally switches to a device
other than pdfwrite and thus undefines the setdistillerparams and
currentdistillerparams operators.
And, for Ghostscript's file devices, the output file is always
specified by "-sOutputFile=pathname", and the "-f" option needs only
specified once (I do not know what happens if you repeat it).
Helge
--
Helge Blischke
Softwareentwicklung
H.Blischke@acm.org
Message-ID:<LYKfl.161891$H12.131966@newsfe12.iad>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Tue, 27 Jan 2009 22:24:54 +0100
Helge Blischke wrote:
>> The /undefined error above suggests that there is a subset of Adobe
>> specification that GhostScript does not implement. Is that true, or is
>> it (hopefully) something that I am missing ?
>
> I haven't tried yet on of the more recent 8.x versions of Ghostscript, but
> as for my experience, joboptions as used for Acrobat distiller work
> perfectly with Ghostscript.
>
> Perhaps you should modify your command line to e.g.
>
> /usr/local/bin/gs -dSAFER -dNOPAUSE -sDEVICE=pdfwrite \
> -sOutputFile=$filename.pdf -f$joboptionsfile $filename.ps
>
> I suspect that the -dNODISPLAY internally switches to a device
> other than pdfwrite and thus undefines the setdistillerparams and
> currentdistillerparams operators.
>
> And, for Ghostscript's file devices, the output file is always
> specified by "-sOutputFile=pathname", and the "-f" option needs only
> specified once (I do not know what happens if you repeat it).
>
> Helge
>
>
And right you are !
I just tried this command line on Linux and it works. I will check on Mac
later.
Message-ID:<i44cl.67014$JA5.65545@newsfe08.iad>
Subject:Errors generating pdf from ps using a joboptions file
Date:Fri, 16 Jan 2009 19:09:37 +0100
Hello
I am aware that a joboptions file (in my case, specified by a journal)
is a simple postscript file.
Accordingly, I am using the following command line (on Mac Leopard using
MacTeX 2008) sequences to generate an appropriate PDF file from TeX source :
latex --shell-escape --synctex=1 "$filename.tex"
bibtex "$filename"
latex --shell-escape --synctex=1 "$filename.tex"
latex --shell-escape --synctex=1 "$filename.tex"
/usr/texbin/dvips "$filename.dvi"
/usr/local/bin/gs -dSAFER -dNOPAUSE -dNODISPLAY -sDEVICE=pdfwrite
-f$joboptionsfile -f$filename.ps $filename.pdf
I get the following error :
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in /setdistillerparams
Operand stack:
--dict:69/69(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1905 1 3
%oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop
1771 1 3 %oparray_pop --nostringval-- %errorexec_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 1909 1 3 %oparray_pop
--nostringval--
Dictionary stack:
--dict:1147/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Current file position is 2186
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
The postscript file looks fine using gs.
The joboptions file :
http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/ElectronicFiles/Templates/joboptions.asp
Its fairly long, and I did not want to lengthen this post needlessly.
The /undefined error above suggests that there is a subset of Adobe
specification that GhostScript does not implement. Is that true, or is
it (hopefully) something that I am missing ?
Message-ID:<gksvvg$qr8$03$1@news.t-online.com>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Sat, 17 Jan 2009 17:11:28 +0100
The joboptions file is for Acrobat Distiller, not GhostScript.
Message-ID:<MPG.23dd1cfc84fcfa8d989720@usenet.plus.net>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Sun, 18 Jan 2009 12:04:11 +0100
In article <gksvvg$qr8$03$1@news.t-online.com>, be_9002@yahoo.de says...
> The joboptions file is for Acrobat Distiller, not GhostScript.
Nevertheless, as the original poster stated, the content is simply
PostScript and should work on any PostScript interpreter which
understands setdistillerparams.
Ghosctscript does implement setdistillerparams, and so the original
command line should work.
I grabbed the joboptions file and used this (under Windows):
gswin32 -sDEVICE=pdfwrite -sOutputFile=\temp\out.pdf \temp
\RSC.joboptions \gs\examples\golfer.eps
The file completed succesfully.
The error message says 'undefined in setdistillerparams' and there is a
dictionary on the stack. It looks like the particular build of
Ghosctscript in use does not implement setdistillerparams.
This is defined in /gs/lib/gs_pdfwr.ps, which is supposed to be executed
when you select the pdfwrite device. Note tht by default on Linux
installations (not sure about Mac) this is compiled into the ROM file
system. You can override this by specifying -I<directory>.
The implementation of ssetdistillerparams is documented in
/gs/doc/ps2pdf.htm, where it says:
"ps2pdf recognizes all of the Acrobat Distiller 5 parameters defined in
the DistillerParameters document included in the Acrobat SDK."
This is followed by a table showing the default values and
implementation notes.
I woud ltry the test above and see if ti works, if it does then its
something about the output from dvips causing the problem.
Ken
Message-ID:<tk5el.4313$k57.2078@newsfe09.iad>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Thu, 22 Jan 2009 22:14:01 +0100
ken wrote:
> In article <gksvvg$qr8$03$1@news.t-online.com>, be_9002@yahoo.de says...
>> The joboptions file is for Acrobat Distiller, not GhostScript.
>
> Nevertheless, as the original poster stated, the content is simply
> PostScript and should work on any PostScript interpreter which
> understands setdistillerparams.
>
Quite so.
> Ghosctscript does implement setdistillerparams, and so the original
> command line should work.
>
> I grabbed the joboptions file and used this (under Windows):
>
> gswin32 -sDEVICE=pdfwrite -sOutputFile=\temp\out.pdf \temp
> \RSC.joboptions \gs\examples\golfer.eps
>
> The file completed succesfully.
>
> The error message says 'undefined in setdistillerparams' and there is a
> dictionary on the stack. It looks like the particular build of
> Ghosctscript in use does not implement setdistillerparams.
>
> This is defined in /gs/lib/gs_pdfwr.ps, which is supposed to be executed
> when you select the pdfwrite device. Note tht by default on Linux
> installations (not sure about Mac) this is compiled into the ROM file
> system. You can override this by specifying -I<directory>.
>
> The implementation of ssetdistillerparams is documented in
> /gs/doc/ps2pdf.htm, where it says:
>
> "ps2pdf recognizes all of the Acrobat Distiller 5 parameters defined in
> the DistillerParameters document included in the Acrobat SDK."
>
> This is followed by a table showing the default values and
> implementation notes.
>
>
> I woud ltry the test above and see if ti works, if it does then its
> something about the output from dvips causing the problem.
>
> Ken
I tried the same command on Linux (Ubuntu Hardy), and I have the same
problem :
GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in /setdistillerparams
Operand stack:
--dict:69/69(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval--
false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1
3 %oparray_pop 1888 1 3 %oparray_pop 1771 1
3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- 1909 1
3 %oparray_pop --nostringval--
Dictionary stack:
--dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:92/200(L)--
Message-ID:<6tu7c1FccdpdU1@mid.individual.net>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Fri, 23 Jan 2009 16:48:56 +0100
Geico Caveman wrote:
> Hello
>
> I am aware that a joboptions file (in my case, specified by a journal)
> is a simple postscript file.
>
> Accordingly, I am using the following command line (on Mac Leopard using
> MacTeX 2008) sequences to generate an appropriate PDF file from TeX
> source :
>
> latex --shell-escape --synctex=1 "$filename.tex"
> bibtex "$filename"
> latex --shell-escape --synctex=1 "$filename.tex"
> latex --shell-escape --synctex=1 "$filename.tex"
> /usr/texbin/dvips "$filename.dvi"
> /usr/local/bin/gs -dSAFER -dNOPAUSE -dNODISPLAY -sDEVICE=pdfwrite
> -f$joboptionsfile -f$filename.ps $filename.pdf
>
> I get the following error :
>
> GPL Ghostscript 8.63 (2008-08-01)
> Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Error: /undefined in /setdistillerparams
> Operand stack:
> --dict:69/69(L)--
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
> --nostringval-- false 1 %stopped_push 1905 1 3
> %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop
> 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop
> .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
> %stopped_push --nostringval-- 1909 1 3 %oparray_pop
> --nostringval--
> Dictionary stack:
> --dict:1147/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
> Current allocation mode is local
> Current file position is 2186
> GPL Ghostscript 8.63: Unrecoverable error, exit code 1
>
>
> The postscript file looks fine using gs.
>
> The joboptions file :
>
> http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/ElectronicFiles/Templates/joboptions.asp
>
>
> Its fairly long, and I did not want to lengthen this post needlessly.
>
> The /undefined error above suggests that there is a subset of Adobe
> specification that GhostScript does not implement. Is that true, or is
> it (hopefully) something that I am missing ?
I haven't tried yet on of the more recent 8.x versions of Ghostscript, but as for my experience,
joboptions as used for Acrobat distiller work perfectly with Ghostscript.
Perhaps you should modify your command line to e.g.
/usr/local/bin/gs -dSAFER -dNOPAUSE -sDEVICE=pdfwrite \
-sOutputFile=$filename.pdf -f$joboptionsfile $filename.ps
I suspect that the -dNODISPLAY internally switches to a device
other than pdfwrite and thus undefines the setdistillerparams and
currentdistillerparams operators.
And, for Ghostscript's file devices, the output file is always
specified by "-sOutputFile=pathname", and the "-f" option needs only
specified once (I do not know what happens if you repeat it).
Helge
--
Helge Blischke
Softwareentwicklung
H.Blischke@acm.org
Message-ID:<LYKfl.161891$H12.131966@newsfe12.iad>
Subject:Re: Errors generating pdf from ps using a joboptions file
Date:Tue, 27 Jan 2009 22:24:54 +0100
Helge Blischke wrote:
>> The /undefined error above suggests that there is a subset of Adobe
>> specification that GhostScript does not implement. Is that true, or is
>> it (hopefully) something that I am missing ?
>
> I haven't tried yet on of the more recent 8.x versions of Ghostscript, but
> as for my experience, joboptions as used for Acrobat distiller work
> perfectly with Ghostscript.
>
> Perhaps you should modify your command line to e.g.
>
> /usr/local/bin/gs -dSAFER -dNOPAUSE -sDEVICE=pdfwrite \
> -sOutputFile=$filename.pdf -f$joboptionsfile $filename.ps
>
> I suspect that the -dNODISPLAY internally switches to a device
> other than pdfwrite and thus undefines the setdistillerparams and
> currentdistillerparams operators.
>
> And, for Ghostscript's file devices, the output file is always
> specified by "-sOutputFile=pathname", and the "-f" option needs only
> specified once (I do not know what happens if you repeat it).
>
> Helge
>
>
And right you are !
I just tried this command line on Linux and it works. I will check on Mac
later.
|