在Word中嵌入矢量图形

发布于 2024-07-25 22:22:12 字数 698 浏览 5 评论 0原文

我正在开发一个计算程序,该程序使用 ZedGraph 从输入数据创建图表。 我的客户希望将这些图形嵌入到 Microsoft Word 中并将文档发布为 PDF。 PNG 和增强型图元文件都会在 PDF 中产生糟糕的光栅结果。

我已经使用 Office 2007 和 “内置”PDF 发布器

您能否推荐任何在转换为 PDF 的过程中不会破坏矢量化数据的工作流程?

更新

感谢所有答案。 事实证明,.net 在写入磁盘时实际上并不创建元文件。 请参阅相应的问题。 一旦我开始使用 P/Invoke 在磁盘上创建真正的图元文件(而不是自动 PNG 回退),生成的 PDF 和打印的质量就会大大提高。

I'm working on a calculation program which creates graphs from input data with ZedGraph. My client would like to embed those graphics into Microsoft Word and the publish the document as PDF. Both PNGs and enhanced metafiles produce badly rastered results in the PDF.

I've tested this with Office 2007 and the "built-in" PDF publisher.

Can you recommend any workflow that leads to not breaking the vectorized data on the way to PDF?

Update

Thanks for all answers. It turned out, that .net actually doesn't create metafiles when writing to disk. See the respective question. Once I started using P/Invoke to create real metafiles on disk (instead of the automatic PNG fallback) the quality of the generated PDFs and prints improved vastly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

傲娇萝莉攻 2024-08-01 22:22:13

共享软件图形过滤器importps允许您将PDF和PS文件插入到Word文档中。

可以在以下位置找到扰乱颜色的演示版本:
http://www.helga-glunz.homepage.t-online.de/importps

The shareware graphics filter importps allows you to insert PDF and PS files into Word documents.

A demo version that scrambles colors is available at:
http://www.helga-glunz.homepage.t-online.de/importps

A君 2024-08-01 22:22:13

如果一切都失败了,您可以尝试创建超高分辨率的 PNG 文件。 这可能使光栅化变得足够细而不引人注目。

If all else fails, you might try creating your PNG files at crazy-high resolution. This might make the rasterization fine-grained enogh to not be noticeable.

浮云落日 2024-08-01 22:22:13

我对 ZedGraph 一无所知,但如果您可以导出(或以某种方式获取)EPS 文件,那应该可以。

我经常需要从 PDF 中获取矢量图稿以便在 Word 中使用,为此我通常通过 Adob​​e Illustrator 将其另存为 EPS。 [Illustrator 只是碰巧是我可以使用的东西 - 我并不是说它有什么神奇之处;我只是说它有什么神奇之处。 您也许可以通过其他途径创建 EPS 文件。]

我看到您正在使用 Office 2007,我不能说我对此有太多经验,但 Word 2003 的情况是您可以插入导出的 EPS从 Adob​​e Illustrator 如果您在从 Illustrator 导出时选择“Illustrator 8.0”格式。 较新版本的 Illustrator 似乎会创建 Word 2003 无法处理的文件。 (Word 2007 在这方面可能更好)。

I don't know anything about ZedGraph, but if you can export to (or somehow get to) an EPS file, that should work.

I often need to get vector artwork out of a PDF for use in Word, and to do this I usually go via Adobe Illustrator to save as an EPS. [Illustrator just happens to be something that I have available - I'm not saying there's anything magical about it; you may be able to create EPS files via another route.]

I see you're using Office 2007 and I can't say I have much experience with that, but the situation with Word 2003 is that you can insert an EPS that was exported from Adobe Illustrator if you choose "Illustrator 8.0" format when exporting from Illustrator. Newer versions of Illustrator seem to create files that Word 2003 can't handle. (Word 2007 may be better in this respect).

椵侞 2024-08-01 22:22:12

嵌入 Excel 图表怎么样?

What about embedding Excel graphs?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文