s-news
[Top] [All Lists]

Re: tables in pdfs

To: "Joe Cerniglia" <cj5815@yahoo.com>, <s-news@lists.biostat.wustl.edu>
Subject: Re: tables in pdfs
From: "Michael O'Connell" <moconnell@insightful.com>
Date: Fri, 20 May 2005 13:09:22 -0400
Thread-index: AcVdWkdVSP6+w4Z1TEC189XbOqs7AwAAsT6A
Thread-topic: [S] tables in pdfs
Hi Joe

FYI - you can do this with the Insightful S-PLUS Clinical Reporting Solution
http://www.insightful.com/industry/pharm/development.asp

This solution has actually been picked up by folks in industries other than
Life Sciences. It includes an S-PLUS library for writing out tables and
graphs into RTF->PDF. The SPXML library in S-PLUS 7 also includes tools for
writing out rtf tables via XML transforms e.g. heres some self-contained
code:

myObject <- sample[1:50]
# Specify where to write our XML (file system name/location)
myXMLFile <- "Example.xml"
# Write as XML
createXMLFile(myObject, myXMLFile)
# Set HTML filename (file system name/location)
myHTMLFile <- paste(getenv("S_PROJ"), "\\example.html", sep="")
# Convert XML to HTML
xml2html(myXMLFile, myHTMLFile)
# Can easily go to other formats via wrapper functions
# or underlying javaXMLTransform function
xml2pdf(myXMLFile, "H:\myFile.pdf")
javaXMLTransform(myXMLFile, "H:\myFile.rtf")
javaXMLTransform(myXMLFile, "H:\myFile.ps")

The S-PLUS RTF library included in the S-PLUS Clinical Reporting Solution
provides fine control of table styles, fonts etc. The SPXML library in S-PLUS
7 allows simple production of generic tables. Both approaches have their
strong suits. There are other approaches to RTF/PDF reporting with S-PLUS
available through Insightful Prof Services. 

goodluck!

Michael


-----Original Message-----
From: Joe Cerniglia [mailto:cj5815@yahoo.com]
Sent: Friday, May 20, 2005 12:37 PM
To: s-news@lists.biostat.wustl.edu
Subject: [S] tables in pdfs



I created a pdf that contains several graphs from
SPLUS using pdf.Graph.  Is there a way add a matrix
(as a table) in the same pdf.

Thanks,

Joe


                
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • tables in pdfs, Joe Cerniglia
    • Re: tables in pdfs, Michael O'Connell <=