Which is best approach (JODConverter+open Office or Apache POI HWPF+iText) to convert Microsoft word to PDF in java?

StackOverflow https://stackoverflow.com/questions/12149358

문제

In my application I have to send automatic emails to the customer when customer status changes.I need to attach a document to that email which should be in the pdf format. I have to create this attached PDF document from a existing word document.Being Apache Open Office is installer and have to be started as a service every time when I want to convert a document I am dilemma to choose between JODConverter+open Office and Apache POI HWPF + iText.Please suggest me which to use .

도움이 되었습니까?

해결책

Disclosure: I lead the docx4j project

JODConverter + OpenOffice will probably give you the best support for the widest range of features in a binary .doc file. HWPF only supports a restricted subset of .doc content.

If your documents are standard fare paragraphs, tables, images, headers/footers docx files, docx4j ought to meet your needs (it includes PDF output via Apache FOP).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top