iTextSharp:在PDF文档中编写RTF [英] iTextSharp: Writing RTF in a PDF document

查看:153
本文介绍了iTextSharp:在PDF文档中编写RTF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iTextSharp(使用C#和VS2008)从数据库表行生成报告。生成PDF不是问题...但是当我尝试将RTF文本添加到PDF中时,我无法找到进入iTextSharp对象结构的方法。

I'm using iTextSharp (with C# and VS2008) to generate a report from a database table row. Generate PDF is not a problem... but when I try to add RTF text into the PDF I cant't find a way into iTextSharp object structure.

我该怎么办?是吗?

非常感谢!

推荐答案

考虑转换你的RTF转换为HTML,然后使用iTextSharp将HTML写入PDF。

Consider converting your RTF to HTML and then writing your HTML to PDF using iTextSharp.

我从未这样做过,但这里有一些可能有用的资源:

编写自己的RTF转换器

使用itextsharp从HTML创建PDF的需要帮助

I've never done this but here are some resources that might help:
Writing Your Own RTF Converter
Need help with creating PDF from HTML using itextsharp

这篇关于iTextSharp:在PDF文档中编写RTF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆