本文介绍了iText 5.0.0 RTF和HTML在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题可能看起来很愚蠢,但是,就这样吧!那时我有一个愚蠢的问题:-)。好吧,我的问题是:使用此代码

This question may seem stupid, but, so be it! I have a stupid problem then :-). Well, my problem is this : using this code

//PDF generation

PdfWriter.getInstance(document,
new FileOutputStream("PDFFile.pdf"));

//RTF generation

RtfWriter2.getInstance(document,
new FileOutputStream("RTFFile.rtf"));

//HTM generation

HtmlWriter.getInstance(document,
new FileOutputStream("HTMLFile.htm"));

(以及其他一些行),每个计算机爱好者都能够生成文件来自他的Java代码的PDF,RTF或HTM文件格式。现在,我已将iText升级到最新版本(5.0.0),我无法找到RtfWriter2(或旧的RtfWriter)或HtmlWriter。简而言之,我想知道是否有人知道是否甚至维护了对这些文件类型的支持,因为网络搜索引擎上的每次搜索显然都指向了以前版本的iText,显然,其中一个人能够做到一切。关于此事的任何提示?

(and some other lines) with iText version 2.1.7, every computer geek is able to produce files in PDF, RTF or HTM file formats from his Java code. Now, i've upgraded iText to latest version (5.0.0) and i am unable to locate RtfWriter2 (or old RtfWriter) or HtmlWriter. To be concise, i was wondering if anyone has any idea if the support for those file types was even maintained, since every search on web-search engines obviously pointed me to previous versions of iText, where, apparently, one was able to do everything. Any hints on the matter?

推荐答案

根据iText网站的说法,在v5.0.0中他们故意删除了RTF和HTML编写者。在他们的历史页面()上,他们说:

According to the iText website, in v5.0.0 they deliberately removed the RTF and HTML writers. On their history page (http://itextpdf.com/content/changelogs), they say:

我相信这是新的单独iText RTF项目的链接:

I believe this is the link to the new separate iText RTF project: http://sourceforge.net/projects/itextrtf

根据这个帖子:,HTML支持由(更新:死链接。该项目似乎已更名为Flying Saucer:,来自)。

And according to this thread: http://itext-general.2136553.n4.nabble.com/HTML-to-RTF-td2161984.html, the HTML support is taken over by the xhtmlrenderer project at (update: dead link. The project appears to have been renamed "Flying Saucer": new home at http://code.google.com/p/flying-saucer/, source at https://github.com/flyingsaucerproject/flyingsaucer).

这篇关于iText 5.0.0 RTF和HTML在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 08:06