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 323765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:03:40+00:00 2026-05-12T09:03:40+00:00

I’ve seen people speaking about that on the web, I’ve been advised to do

  • 0

I’ve seen people speaking about that on the web, I’ve been advised to do that, but it looks like the iText rendering engine is far from matching MS word (openoffice, TeX).
And interpreting a .doc is far from trivial anyway (J.Spolsky explained why) so I’m a little bit of skeptical.

I’d really like to do that for a project, but I can’t find anything on the net, I think the simplest way would be modularising openoffice and grabbing the input system, the layout system and the output system, leaving the UI on the bank. But the closest thing I see on the net right now is connecting to a live instance of OpenOffice/MS Office and sending commands (read .doc, generate PDF) to it.

Do you have any code on the web to show this [read .doc -> edit a little bit in the document (add a small table, fill blanks) -> generate PDF] mythical chain ?

  • 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-12T09:03:41+00:00Added an answer on May 12, 2026 at 9:03 am

    I would surmise that this is really only hypothetically possible. That is, it sounds as though the software in question should do it, but the reality is far different. As you rightly state DOC and PDF are very different formats, and the only way of creating a faithful one-to-one translation of a DOC as a PDF would be to print it and capture the output, much as the many PDF creators do.

    POI, and other software such as Aspose.Words will let you read the structure of a DOC, and iText will let you create a PDF, but there’s bound to be a million little foibles and edge-cases in both that means any implementation of a converter is sure to be non-trivial. Off the top of my head I can tell you that iText has poor support for splitting rows in tables. On a project I worked on we had to render row-split table cells as a kind of “off-screen PDF image”, and then embed the image in a single table cell. A pleasant enough hack in the end, but you’d be very hard-pressed to reproduce some of the richer features that DOC supports before you even start to think about embedded OLE objects, ActiveX controls, AutoShapes, right-to-left languages, etc. And let’s not forget that every version of Word introduces new features to DOC and fixes things things that are wrong in older ones.

    For simple enough documents you might be able to achieve a reasonable result for a little effort. I’ve never done it, and I wouldn’t really want to try because I know that results would be mediocre once the complexity of the source document rises beyond paragraphs and headers. Whatever it is you’re trying to do I’d encourage you to look for another way first.

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

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
i want to parse a xhtml file and display in UITableView. what is the
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

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.