Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save as EPS #105

Closed
hwaipy opened this issue May 7, 2015 · 8 comments
Closed

Save as EPS #105

hwaipy opened this issue May 7, 2015 · 8 comments
Labels

Comments

@hwaipy
Copy link
Contributor

hwaipy commented May 7, 2015

There seems some problem when I try to save a chart as EPS or PDF.

I run demo com.xeiam.xchart.standalone.Example1 and get a serials of files. Although the bitmaps appears to be correct,
sample_chart
the eps and pdf has something wrong with text.
qq20150507-1 2x

I tried to output eps using Apache xmlgraphics-commons, it seems good. So is there something wrong with VectorGraphics2D?

@timmolter
Copy link
Member

Thanks for reporting the issue. I just ran a test and the PDF looks fine, but the EPS file is not (as you reported). It could be a problem with VectorGraphics2D, especially if you say EPS export works fine with xmlgraphics-commons.

Are you using version 3.5.0?

@hwaipy
Copy link
Contributor Author

hwaipy commented May 7, 2015

In my test results, the PDF looks better than EPS, but still not correct, as shown below.
qq20150507-1 2x

I'm using XChart-2.5.0, xmlgraphics-commons-1.5. What do you mean for version 3.5.0?

@timmolter
Copy link
Member

Whoops, I meant 2.5.0 xchart.

What exactly is not correct withthe PDF version? I don't see it. The font size perhaps?

If xmlgraphics-commons works better, I'd be happy to use that lib instead.

@hwaipy
Copy link
Contributor Author

hwaipy commented May 7, 2015

The 'Y' is missing in PDF.

I'm not familiar with both xmlgraphics-commons and VectorGraphics2D. So I can't offer further suggestion. Maybe xmlgraphics-commons would be more robust as an Apache production. haha.

@timmolter
Copy link
Member

Wow, I can't believe I missed that. I think xmlgraphics-commons would be more robust. It doesn't look like it does SVGs though. Although VectorGraphics2D does a good job at SVGs.

@timmolter
Copy link
Member

I made a fix for the PDF issue. EPS still has issues.

timmolter added a commit that referenced this issue Sep 21, 2015
@timmolter timmolter added the Bug label Sep 21, 2015
@timmolter
Copy link
Member

eseifert/vectorgraphics2d#27

3rd party dependency fixed the EPS issue now.

@timmolter
Copy link
Member

release 2.5.1 should contain the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants