Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14299 > unrolled thread

Export to PDF outline issues

Started byiltuje <simon.gravel@gmail.com>
First post2013-04-25 06:51 +0000
Last post2013-04-27 03:08 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Export to PDF outline issues iltuje <simon.gravel@gmail.com> - 2013-04-25 06:51 +0000
    Re: Export to PDF outline issues debguy <johnandsara2@cox.net> - 2013-04-26 08:25 +0000
      Re: Export to PDF outline issues simon.gravel@gmail.com - 2013-04-27 03:07 +0000
    Re: Export to PDF outline issues "Alexey Popkov" <lehin.p@gmail.com> - 2013-04-27 03:08 +0000

#14299 — Export to PDF outline issues

Fromiltuje <simon.gravel@gmail.com>
Date2013-04-25 06:51 +0000
SubjectExport to PDF outline issues
Message-ID<klajpj$39p$1@smc.vnet.net>
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.

[toc] | [next] | [standalone]


#14321

Fromdebguy <johnandsara2@cox.net>
Date2013-04-26 08:25 +0000
Message-ID<klddks$d1g$1@smc.vnet.net>
In reply to#14299
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.

[toc] | [prev] | [next] | [standalone]


#14332

Fromsimon.gravel@gmail.com
Date2013-04-27 03:07 +0000
Message-ID<klffeb$jkc$1@smc.vnet.net>
In reply to#14321
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. 

On Friday, April 26, 2013 4:25:00 AM UTC-4, 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"]
> 
> 
> 
> 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.

[toc] | [prev] | [next] | [standalone]


#14325

From"Alexey Popkov" <lehin.p@gmail.com>
Date2013-04-27 03:08 +0000
Message-ID<klffeh$jkl$1@smc.vnet.net>
In reply to#14299
I confirm this bug in Mathematica 9.0.1 (Windows 7 x64).


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

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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web