Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Export to PDF outline issues

38 views
Skip to first unread message

iltuje

unread,
Apr 25, 2013, 2:51:31 AM4/25/13
to
I've been using Mathematica 8 to generate plots, and now switched to 9. One issue I have is that the outlines in the export to PDF are now all messed up.

When I do:
foo = Graphics[{Blue, Rectangle[{1, 0}, {2, .1}], Red, Rectangle[{0, 0}, {1, .1}]}]

I get two rectangles of equal height, which is what I want.

If I export this using

Export["~/Desktop/foo.pdf", foo]
Export["~/Desktop/foo.tiff", foo],

the tiff figure looks fine, but the PDF looks terrible, with the second rectangle being wider than the first, and having rounded edges. This permeates through all my figures, and is especially bad for figures with zero-width regions, which display fine in the notebook (i.e., zero-width regions are not shown), but come out terribly at PDF export.


debguy

unread,
Apr 26, 2013, 4:25:00 AM4/26/13
to
Maybe another viewpoint will help. I use mm v 4.0. I tried the
example, no problem. I then tried:

foo = Graphics[{Blue, Rectangle[{1, 0}, {2, .1}], Red, Rectangle[{0,
0}, {1, .1}], Green, Rectangle[{0, 0}, {0, 1}]}]

Export["foo.pdf", foo]
Display["foo.tiff", foo, "TIFF"]

However I see the line in both the pdf and tiff: but not in the front-
end. And resizing does not reveal anything.

Checking the post-script code (alt-shift-e) in the front end Graphic
it's clear while there's "no width" on green, and changing the column
values will then shows green in the front end. However as I said
before, with an equal 1st column my pdf viewer decides to write a line
anyhow.

Alexey Popkov

unread,
Apr 26, 2013, 11:08:01 PM4/26/13
to
I confirm this bug in Mathematica 9.0.1 (Windows 7 x64).


----------------------------------------------------------------------------
"iltuje" wrote: klajpj$39p$1...@smc.vnet.net...

simon....@gmail.com

unread,
Apr 26, 2013, 11:07:55 PM4/26/13
to
After checking, this is definitely Mathematica 9 specific. Dammit, my license to 8 just expired.
In v9 and on OSX, I see the green line in eps and pdf, but not in tiff. I see the difference in box width in pdf only.

Bill Rowe

unread,
Apr 28, 2013, 12:57:49 AM4/28/13
to
On 4/26/13 at 4:26 AM, johnan...@cox.net (debguy) wrote:

>Maybe another viewpoint will help. I use mm v 4.0. I tried the
>example, no problem. I then tried:

>foo = Graphics[{Blue, Rectangle[{1, 0}, {2, .1}], Red, Rectangle[{0,
>0}, {1, .1}], Green, Rectangle[{0, 0}, {0, 1}]}]

>Export["foo.pdf", foo] Display["foo.tiff", foo, "TIFF"]

Export was first introduced in version 4 last modified in
version 7. There were fundamental changes in the way graphics
rendered from version 5 to version 6. The point is what works or
doesn't work for you using version 4 has fairly substantial
probability to having no relevance to a user using the current
shipping version, version 9.


0 new messages