开发者

Reports with DOCX -> PDF format [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. I开发者_如何学Pythonf you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I have to manipulate a docx document, just to replace some $variables, and need to convert it to PDF format before send it to the end user. I am using Java to develop a webapp with SpringFramework.

I've been searching on the web for some library that could help me on this task, I found one that seems to be in a early development stage called xdocreport. Do you know any other Java library for this task?


I'm one of developer of XDocReport. Your need is exactly the goal of XDocReport (replace $variable with Java value from docx and convert it to PDF/XHTML if you wish).

If you want play with XDocReport you have XDocReport online demo at http://xdocreport.opensagres.cloudbees.net/

Today there is no release (coming soon at June or May 2011) but I have start to write documentation for docx reporting http://code.google.com/p/xdocreport/wiki/DocxReportingJavaMain . In this section you can download Eclipse project which provides XDocReport JARs (but pay attention, it's not the last version of XDocReport).

PDF conversion documentation will coming soon.


One of the most popular solutions is Apache POI which can interpret and convert many MS document formats, and can output to PDF.


Another option would be to use OpenOffice.org to open the DOCX and "print to PDF". Their Developers Guide can be found here. And here's an "Export to PDF" tutorial.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜