Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 866265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:46:37+00:00 2026-05-15T09:46:37+00:00

How can I convert a Word document to PDF where the document contains various

  • 0

How can I convert a Word document to PDF where the document contains various things, such as tables. When trying to use iText, the original document looks different to the converted PDF. Is there an open source API / library, rather than calling out to an executable, that I can use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:46:37+00:00Added an answer on May 15, 2026 at 9:46 am

    This is quite a hard task, ever harder if you want perfect results (impossible without using Word) as such the number of APIs that just do it all for you in pure Java and are open source is zero I believe (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).

    Update – 2016-02-11
    Here is a cut down copy of my blog post on this subject which outlines existing products that support Word-to-PDF in Java.

    Converting Microsoft Office (Word, Excel) documents to PDFs in Java

    Three products that I know of can render Office documents:

    yeokm1/docs-to-pdf-converter
    Irregularly maintained, Pure Java, Open Source
    Ties together a number of libraries to perform the conversion.

    xdocreport
    Actively developed, Pure Java, Open Source
    It’s Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML…).

    Snowbound Imaging SDK
    Closed Source, Pure Java
    Snowbound appears to be a 100% Java solution and costs over $2,500. It contains samples describing how to convert documents in the evaluation download.

    OpenOffice API
    Open Source, Not Pure Java – Requires Open Office installed
    OpenOffice is a native Office suite which supports a Java API. This supports reading Office documents and writing PDF documents. The SDK contains an example in document conversion (examples/java/DocumentHandling/DocumentConverter.java). To write PDFs you need to pass the “writer_pdf_Export” writer rather than the “MS Word 97” one.
    Or you can use the wrapper API JODConverter.

    JDocToPdf – Dead as of 2016-02-11
    Uses Apache POI to read the Word document and iText to write the PDF. Completely free, 100% Java but has some limitations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to convert Word document to an Image so i can use
In PHP, we can use Zend Framework to convert from a Microsoft Word document
I'm trying to use Freemarker to convert an XML Word document to a standard
How can I convert HTML with images to Word Document(Doc not Docx) in WPF?
I'm trying to extract data from multiple Tables in a Word document. When trying
Seeing as you can convert any document to a byte array and save it
Simple case of trying to prove I can convert NSString to NSDate . Create
How can I convert/export binary data (for example binary files like excel- or word-documents)
We use a two stage process to convert a client's Word documents to XML.
I require to convert .doc or .docx files (Microsoft Word Document) into .epub formats.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.