How can I convert a Word document to PDF

0 votes
How can I convert a Word document that includes numerous objects, like tables, to a PDF? The source document and the converted PDF don't look the same when using iText. Can I use an open-source API or library instead of reaching out to an executable?
Oct 31 in Others by Kithuzzz
• 20,660 points
48 views

1 answer to this question.

0 votes

This is a difficult task, made even more difficult if you want flawless results (impossible without having Word). I don't think there are any open-source Java APIs that do it all for you (Update: I am wrong, see below).

Your basic options are as follows:

  1. Using JNI/a C# web service/etc script MS Office (only option for 100% perfect results)
  2. Using the available APIs script Open Office (90+% perfect)
  3. Use Apache POI & iText (very large job, will never be perfect).
answered Oct 31 by narikkadan
• 37,660 points

Related Questions In Others

0 votes
0 answers

how can I deploy a test in pytest framework to airflow using DAG?

I have established an automative testing framework ...READ MORE

Oct 4, 2021 in Others by Yuan
• 120 points
201 views
0 votes
1 answer

How can I easily crop a PDF page?

To answer your question, you could use ...READ MORE

answered Feb 8 in Others by Soham
• 9,670 points
323 views
0 votes
1 answer
0 votes
1 answer

How to open an Excel Online document as a PDF

In light of your comment above, I ...READ MORE

answered Oct 18 in Others by narikkadan
• 37,660 points
29 views
0 votes
1 answer

Java Spring - Writing Excel file and converting to PDF

Since you are using Spring I suggest ...READ MORE

answered Sep 26 in Others by narikkadan
• 37,660 points
188 views
0 votes
1 answer

Convert Excel to PDF issue with documents4j

MS Excel may not always be used ...READ MORE

answered Sep 26 in Others by narikkadan
• 37,660 points
164 views
0 votes
1 answer

Using Java to create PDF graphs based on Excel formulas

The Apache POI project, an API for ...READ MORE

answered Oct 22 in Others by narikkadan
• 37,660 points
57 views
0 votes
0 answers

how to send a pdf file as a response to frontend?

when a user upload a file to ...READ MORE

Apr 11, 2020 in Java by Abhishek
• 120 points
2,106 views
0 votes
1 answer
0 votes
1 answer

How can I convert excel file to pdf using TCPDF?

PHPExcel can only read charts from Excel2007 ...READ MORE

answered Oct 21 in Others by narikkadan
• 37,660 points
103 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP