带背景图像的 RTF 转换为 PDF
我有一堆 RTF 格式的信件。这些字母只是一页,有一个背景图像,上面有文字。我的应用程序以纯文本形式打开 RTF,替换一些文本字段,然后我想将其导出为 PDF 并通过电子邮件发送。
我们尝试过使用名为 TallPDF 的组件,但它将图像放在一页中,而将文本放在另一页中。我正在尝试找到一个将 RTF 导出为 PDF 并保持原始单页格式的组件,我想知道各位优秀的 StackOverflow 用户是否曾经遇到过同样的情况,您会推荐什么组件?
如果 RTF 转 PDF 不合适,还有其他方法可以轻松地从 .NET 编辑文档并将其导出为 PDF 吗?
基本上这些字母就像圣诞节字母:
谢谢一百万。
I have a bunch of letters in RTF format. These letters are just a single page and have a background image with text above it. My application opens the RTF as plain text, replace some text fields, and then I want to export it to PDF and sent it by email.
We have tried with a component named TallPDF, but it puts the image in one page, and the text in the other. I am trying to find a component that export the RTF to PDF keeping the original single page format, and I was wondering if any of you fine StackOverflow users has been in the same situation before, and what component would you recomend?
If RTF to PDF is not suitable, any other way to edit the document from .NET easily and export it to PDF ?
Basically the letters are like the X-mas letters:
Thanks a million.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
迄今为止最好的防弹解决方案:
http:// erionpc.wordpress.com/2011/01/17/soa-docx-pdf-report- Generation-p2/
嗯,显然问题是 MS Word(惊讶吗?)。如果将 Word 文档另存为 .RTF,如果存在复杂的设计或元素,即使 Word Pad 也无法正确处理。因此,MS Word 可能正在嵌入只有它能理解的数据(令人惊讶!)。因此,唯一的解决方案是安装 MS Word,使用 PDF 打印机。
干杯。
Best bulletproof solution so far:
http://erionpc.wordpress.com/2011/01/17/soa-docx-pdf-report-generation-p2/
Well, apparently the problem is MS Word (surprise?). If you save a Word document as .RTF, even Word Pad is unable to get it right if there are complex designs or elements. So probably MS Word is embedding data that only it understand (surprise!). So the only bulletproof solution is having the MS Word installed, use a PDF printer.
Cheers.