[19016] in s-news-athena
[S] printing PDF graphics, linux, Acrobat, FAQ?
daemon@ATHENA.MIT.EDU (Simon Jackman)
Mon Aug 23 20:03:06 1999
Date: Mon, 23 Aug 1999 16:55:44 -0700 (PDT)
From: Simon Jackman <jackman@stanford.edu>
To: ben@guzman.com, S-news@wubios.wustl.edu
In-Reply-To: <v04210100b3e495d204cf@[164.138.182.38]>
Message-Id: <Pine.LNX.4.10.9908231514290.13123-100000@tamarama.stanford.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi,
A few weeks ago Ben Chen <ben@guzman.com> posted re a problem printing PDF
files created using pdf.graph (attached below). Has there been any
follow-up on this?
The end goal for me is get Splus output into PDF files (via pdftex). I
know some frequent contributors to this list are doing just that. How are
you getting graphics into these files (PS->PDF, PS->PNG?), given what
seems to be a problem with pdf.graph()?
I can report the same problem as Ben Chen using Splus5.1 for linux:
S-PLUS : Copyright (c) 1988, 1999 MathSoft, Inc.
S : Copyright Lucent Technologies, Inc.
Version 5.1 Release 1 for Linux 2.0.31 : 1999
Working data will be in .Data
> pdf.graph(file="blah.pdf")
> usa()
> dev.off()
null device
1
> q()
I can view the file ok, but it fails to print. Printing-to-file from
withing Acrobat produces a PostScript file that can't be parsed by
ghostscript. Note however that ghostscript/gv *can* deal with the PDF
file. So it looks like Acrobat produces bad PostScript when handed
Splus pdf output.
Note also:
(1) I can view on screen ok from inside Acrobat.
(2) Windows Acrobat prints just fine, both the standalone graphics file,
and the pdf produced by pdftex.
(3) I run Acrobat 4.0 x86 linux stout0518
Cheers -- Simon Jackman
Simon Jackman, Asst Professor, ph: +1 (650) 723-4760
Dept of Political Science, fax: +1 (650) 723-1808
455 Serra Mall, Bldg 160, jackman@stanford.edu
Stanford University, http://tamarama.stanford.edu/simon
Stanford CA, 94305-2044, USA.
-------------------------------------------------------------------------
here is the error message I get from pssing the print-to-file postscript
back to ghostscript.
Error: /nocurrentpoint in --currentpoint--
Operand stack:
--dict:17/18--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval--
--nostringval-- 5 7 %oparray_pop
Dictionary stack:
--dict:770/809-- --dict:0/20-- --dict:46/200-- --dict:82/86--
--dict:115/150-- --dict:74/75-- --dict:10/38--
Current allocation mode is local
Current file position is 43070
GNU Ghostscript: Unrecoverable error, exit code 1
---------------------------------------------------------------------------
Ben Chen's message:
Dear S+ Users,
I created a pdf file in S+ environment, and then opened the file with
Adobe Acrobat
Reader without problem. However, I couldn't print the file to my
printer. The error
message I got is as follows:
"%%[ Error: nocurrentpoint; OffendingCommand: currentpoint ]%%
Stack:
-dict-
-save-
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%"
I also tried to print the file to Adobe Acrobat Distiller and failed.
The error
message is same as above.
Here is my S+ code of creating a pdf file:
pdf.graph("myfile.pdf", color=T)
....
#some plots with color.
...
dev.off()
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news