Re: ImageSize option when exporting PDFs
- To: mathgroup at smc.vnet.net
- Subject: [mg85883] Re: ImageSize option when exporting PDFs
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Tue, 26 Feb 2008 07:51:20 -0500 (EST)
- Organization: University of Bergen
- References: <fmmk0p$em7$1@smc.vnet.net> <fpud64$mhh$1@smc.vnet.net>
Mariano Suárez-Alvarez wrote: > On Jan 17, 2:02 am, Szabolcs Horv=E1t <szhor... at gmail.com> wrote: >> When exporting EPS graphics, theImageSizeoption can be set in >> Export[]. These produce graphics of different sizes: >> >> Export["gr.eps", Graphics[Circle[]],ImageSize-> 150] >> Export["gr.eps", Graphics[Circle[]],ImageSize-> 300] >> >> But this does not work for PDF. These produce identical graphics: >> >> Export["gr.pdf", Graphics[Circle[]],ImageSize-> 150] >> Export["gr.pdf", Graphics[Circle[]],ImageSize-> 300] >> >> A workaround is to use the option inside Graphics, like this: >> >> Export["gr.pdf", Graphics[Circle[],ImageSize-> 150]] >> Export["gr.pdf", Graphics[Circle[],ImageSize-> 300]] >> >> but this is very inconvenient because it affects screen display too. >> >> Is it intentional thatImageSizedoes not work with PDFs (if yes, why?), >> or is it a bug? > > So... is this the recommended practice to get a pdf of the > desired size with 6.0? > I use the following pattern: gr = Plot[ ... ] (* or some other graphics *) cm = 72/2.54 (* centimetre *) Export["gr.pdf", Show[gr, ImageSize -> 8 cm]] It's ugly, and I hate it, but at least it works.