We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
你手上有c#代码吗?
有一个在线资源讨论如何使用 itextsharp 创建 PDF。
是字符集、字体的问题还是从右到左的问题?
http://www.devshed.com /c/a/Java/Creating-Simple-PDF-Files-With-iTextSharp/
http://www.codeproject.com/KB/graphics/ITextSharpHelperClass.aspx
我希望它能有所帮助
do you have the c# code in hand?
there is this online resource discussing how to use itextsharp to create PDF.
is it a problem of characterset, font or right to left problem?
http://www.devshed.com/c/a/Java/Creating-Simple-PDF-Files-With-iTextSharp/
http://www.codeproject.com/KB/graphics/ITextSharpHelperClass.aspx
I hope it can help
Apache PDFBox 可以做到这一点,但可能无法达到您需要的渲染质量。您可能必须使用 Apache Tika 从 HTML 中获取文本,从而丢失大部分格式。无论如何,我担心让您走上各种 Java 组件的道路不会让您满意,但这是我所知道的唯一可以处理 RTL PDF 文件的免费代码。这并不意味着它是唯一存在的代码。
Apache PDFBox can do this, but perhaps not with the quality of rendering that you need. You might have to use Apache Tika to get the text out of the HTML, thus losing much of the format. In any case, I fear that sending you off down a path of various Java components won't float your boat, but it's the only code I know of for free that deals with RTL PDF files. Which does not mean that it's the only code that exists.
这些示例涉及创建新文档并添加一些元素作为短语、表格或单元格 - 我的意思是我创建并连接文档 - 逐项 -
但我的情况不同,
我将 HTML 内容存储在数据库中 - 我检索它并将其显示在 HTML 页面上,
而且我在 HTML 中有阿拉伯语,它转换为空 pdf
我使用 asp.net 和 C# 将此阿拉伯语 HTML 内容转换为pdf
我用itextsharp
为了达到这个目的
these examples are dealing with creating new documents and adding some elements as phrase or table or cell - i mean that i create and concatenate the document - item by item-
but my case is different
i have the HTML content stored in DB - i retrieve it and display it on HTML page
also i have ARABIC in the HTML which convert as an empty pdf
i use asp.net with C# to convert this ARABIC HTML content to pdf
i use itextsharp
to achieve this
我认为 CutyCapt 是您需要的实用程序,它可以将 html 转换为 pdf 和许多其他格式。
I think CutyCapt is the utility you need, it can convert the html to pdf and many other formats.