简体   繁体   English

我有一个 doc 文件,我想在 java 中使用 itext 将其转换为 pdf ..如何做这件事?

[英]I have doc file which i want to convert into pdf using itext in java..how to do this things?

Don't understand what to do.不明白该怎么办。 I added latest version of iText jar file but not getting the solution.我添加了最新版本的 iText jar 文件,但没有得到解决方案。 please give me correct solution or code.请给我正确的解决方案或代码。 please mention it stepwise.请逐步提及。 because I'm doing this first time...因为我是第一次做...

You can't solve your use case as easily as you think.您无法像您想象的那样轻松解决您的用例。 iText does not support Word to PDF conversion, because this requires very good knowledge of the OOXML format. iText 不支持 Word 到 PDF 的转换,因为这需要非常了解 OOXML 格式。

I'm an employee at iText Software, and for the last few weeks I've been investigating XDocReport, a tool that lets users manipulate MS Word files (DOCX) and OpenOffice/LibreOffice files (ODF).我是 iText Software 的一名员工,最近几周我一直在研究 XDocReport,这是一种允许用户操作 MS Word 文件 (DOCX) 和 OpenOffice/LibreOffice 文件 (ODF) 的工具。 They also have a plugin that converts DOCX or ODF to PDF, with iText.他们还有一个插件,可以使用 iText 将 DOCX 或 ODF 转换为 PDF。 Users that want this functionality can choose whether to use iText 2 under the LGPL license or iText 5 under the AGPL license.需要此功能的用户可以选择是使用 LGPL 许可下的 iText 2 还是 AGPL 许可下的 iText 5。

XDocReport has already done an excellent job creating their converter tool with the limited human resources they have, and I've also made some minor progress on the project with fixing bugs and layout problems. XDocReport 已经在利用他们有限的人力资源创建他们的转换器工具方面做得非常出色,而且我还在修复错误和布局问题的项目上取得了一些小进展。 However, there are still a lot of things that need fixing in order to make the PDFs closely resemble the MS Word documents.但是,为了使 PDF 与 MS Word 文档非常相似,仍有许多需要修复的地方。

The XDocReport has documentation for using their plugins, but it is not an easy thing to do, and you need to know a lot about Maven and dependencies to make it work. XDocReport 有使用他们的插件的文档,但这不是一件容易的事情,你需要了解很多关于 Maven 和依赖的知识才能让它工作。 I've created a plugin discovery project to make that easier, but we haven't released it yet: as of now it doesn't produce the quality in PDFs that we feel our customers would want.我创建了一个插件发现项目来简化这个过程,但我们还没有发布它:到目前为止,它不能产生我们认为客户想要的 PDF 质量。 We have no timeline for availability of this plugin.我们没有关于此插件可用性的时间表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我想使用itext java将图像拖到我的pdf文件中 - I want to drag an image to my pdf file using itext java 我想使用 Java itext 在现有 PDF 中创建多个内部链接和外部链接 5. 我该怎么做? - I want to create a multiple internal link & external link in existing PDF using Java itext 5. How can i do that? 在使用Java的GUI中,我希望能够打开pdf / doc文件 - In my GUI using java, I want to be able to open a pdf/doc file 我有一个带有复选标记和当前日期的邮票。 我需要使用itext和java将此邮票添加到pdf的所有页面中 - i have a stamp which has a check mark and current date. i need to add this stamp to all the pages in a pdf using itext and java 如何使用Java将.doc / .xls文件转换为PDF - How to convert .doc / .xls file into PDF using Java 如何在Java中将pdf转换为doc文件 - How to convert pdf to doc file in java 如何使用iText将Swing组件绘制为PDF文件? - How do I paint Swing Components to a PDF file with iText? 如何使用iText在pdf文件中添加精灵图片? - How do i add sprite images in my pdf using iText? 我已经生成了pdf文件,现在我不想下载文件,但是我想使用Java直接在ftp上上传文件 - I have genrated the pdf file now i dont want to download the file but i want to upload the file directly on ftp using java 如何在Java中使用itext在pdf中使用i18n - how to use i18n in pdf using itext in java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM