[19023] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] Re: printing PDF graphics, linux, Acrobat, FAQ?

daemon@ATHENA.MIT.EDU (Ben Chen)
Tue Aug 24 10:40:52 1999

Message-Id: <37C2AC6A.83D9057B@guzman.com>
Date: Tue, 24 Aug 1999 10:30:02 -0400
From: Ben Chen <ben@guzman.com>
Mime-Version: 1.0
To: Simon Jackman <jackman@stanford.edu>
Cc: S-news@wubios.wustl.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi, Simon, 

I got a few responses from my posts. However, my problem has not been
resolved. 
I am not sure where is wrong (S+ or Acrobat). Thank you for reposting
this problem. 


Ben Chen

Simon Jackman wrote:
> 
> 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

home help back first fref pref prev next nref lref last post