iText 5.0.0 RTF和HTML在哪里? [英] iText 5.0.0 where did RTF and HTML go?

查看:155
本文介绍了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编写者。在他们的历史页面( http://itextpdf.com/content/changelogs )上,他们说:

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:


工具箱和RTF支持已被删除:它们现在位于SourceForge的一个单独项目中。

"The toolbox and RTF support have been removed: they are now in a separate project at SourceForge."

我相信这是新的单独iText RTF项目的链接: http://sourceforge.net/projects/itextrtf

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

根据这个帖子: http://itext-general.2136553.n4.nabble.com/HTML-to-RTF-td2161984.html ,HTML支持由 <的xhtmlrenderer项目接管a href =https://xhtmlrenderer.dev.java.net =nofollow noreferrer> https://xhtmlrenderer.dev.java.n et (更新:死链接。该项目似乎已更名为Flying Saucer: http:// code。的新家。 google.com/p/flying-saucer/ ,来自 https://github.com/flyingsaucerproject / flyingsaucer )。

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 https://xhtmlrenderer.dev.java.net (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在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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