comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL and PDF
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL and PDF [message #27185 is a reply to message #27183] Fri, 12 October 2001 09:10 Go to previous messageGo to previous message
Todd Clements is currently offline  Todd Clements
Messages: 23
Registered: January 2001
Junior Member
Steve Worland <worley@maths.ex.ac.uk> wrote:

> Does anyone know any way of producing a .pdf output using IDL, or any
> way of converting .ps to .pdf but keeping the graphics looking nice?

Steve -

My favorite answer is to use ghostcript. If you're on some sort of UNIX
box, here's your command line:

gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -q -r 72 -sOutputFile=outFileName
inputFileName

where the 72 is the resolution (in dpi) you want your graphics rendered
at, inputFileName is the name of the .ps file you've created, and
outFileName is the name of the PDF you want created.

I create this string at run time with the appropriate file names and
resolution:

str = 'gs -sDEVICE='+device+' -dBATCH -dNOPAUSE -q -r'+ $
strtrim(fix(res),2)+' -sOutputFile='+ $
strippedFileName+extension+' '+ fileList[i]

and then use spawn to execute it.

Todd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and ActiveX
Next Topic: plot question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 16:54:48 PDT 2025

Total time taken to generate the page: 0.48028 seconds