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

Home » Public Forums » archive » Re: EPS to PDF contour plots
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: EPS to PDF contour plots [message #75566 is a reply to message #75565] Sat, 02 April 2011 07:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matt writes:

> I see that something like this has been posted several times before,
> but I can't seem to find a simple solution...
>
> I'm generating eps contour plots using David Fanning's great new
> routines and the /cell_fill option. However, some of them have the
> well-known 'stripe' effect that is discussed in David's book. My
> question is this: How can I convert these eps files to pdf format
> without the stripes, and without the pdfs files being too large? If I
> use ImageMagick with +antialias, I can only get the fonts to look nice
> if I really crank up the density, which leads to huge pdfs. I'm
> assuming that this is because they are first converted to raster
> images and then to pdf. Is there a way to keep this all in vector
> format? The file size is a problem, because it makes the document
> they are going into huge, and very slow to navigate (and the plots
> don't seem to look great in some viewers).
>
> At the moment I'm just doing the conversion using epstopdf.
>
> I know that this isn't really an IDL question, but if anyone has found
> a solution, it'd be very much appreciated.

You are right that ImageMagick is not the solution
here, since it is software for working with raster
files, and must go through a raster intermediary to
go from one vector format (PostScript) to another (PDF).

I use Adobe Acrobat and Distiller for this purpose,
but this is reasonably expensive (although solid and
with LOTS of features) software. I see advertisements
for less expensive alternatives from time to time.
These routines can be called from within IDL using the
SPAWN command in exactly the same way ImageMagick is
used from within the Coyote Graphics programs.

Another solution I have used is to print PostScript
graphics routines directly to a PDF file via the
PRINTER device in IDL and a PDF printer.

http://www.idlcoyote.com/fileio_tips/pdffiles.html

This solution is nice and convenient, but it requires
the user to directly choose the PDF printer driver. I've
never been able to figure out a way to do this
programmatically.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 8.1, anyone?
Next Topic: EPS to PDF contour plots

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

Current Time: Sat Oct 11 14:07:29 PDT 2025

Total time taken to generate the page: 0.16420 seconds