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

  • Home
  • SEARCH
  • 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 8026149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:23:41+00:00 2026-06-04T23:23:41+00:00

I have an idea of converting Word document(.doc/.docx) files to Help file(.chm) format. I

  • 0

I have an idea of converting Word document(.doc/.docx) files to Help file(.chm) format. I want to use Java for the conversion of files. My formula is simple. To make the Table of Contents page and other links in word document, as package explorer or File explorer and make the user navigation simpler, faster and easy to navigate among the pages in the document.

So, My Question is :

Are there any native libraries in java that can be imported and used for File Conversion?

Please share your ideas to implement the above concept.

  • 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-06-04T23:23:43+00:00Added an answer on June 4, 2026 at 11:23 pm

    Its a pretty difficult task to be done in Java. But you can still do it if you install Microsoft HTML Help Workshop.

    1. First you can extract the text of the Word documents via Apache POI and then output them as HTML documents to a temporary directory.
    2. Next you need to create a HHP file. It should be fairly easy to create as it is a text file. Just follow the specifications given here
    3. Then you should have a corresponding HHC file as well. Its a simple HTML document in the following format:

      <html>
      <head>
      </head>
      <body>
      <ul>
      <li><object type="text/sitemap">
      <param name="Name" value="Foo Directory">
      <param name="Local" value="BarDirectory/index.htm">
      <param name="ImageNumber" value="1">
      </object></li>
      <ul>
      <li><object type="text/sitemap">
      <param name="Name" value="Topic1">
      <param name="Local" value="BarDirectory/Bar.htm">
      <param name="ImageNumber" value="11">
      </object></li>
      <li><object type="text/sitemap">
      <param name="Name" value="Topic1">
      <param name="Local" value="BarDirectory/Foo.htm">
      <param name="ImageNumber" value="11">
      </object></li>
      </ul>
      </ul>
      </body>
      </html>
      

      Similarly look up the structure for a HHK file.

    4. Once you are done you can execute hhc.exe <inputfile.hhp> from Java. That should do the job.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone have any idea how I would go about converting a timestamp in milliseconds
I have an idea for a functional programming language design that makes heavy use
Could you please help me with such converting I have NSString date like @2/8/2012
Do you have an idea why sribd_fu takes very long to convert PDF files?
I have a problem with converting a text file from ANSI to UTF8 in
Anyone have idea about how to bind Boolean in sqlite with objective - c.
I have idea to write errors from my application to the Windows Event Viewer
Anyone have idea how to pass value from iPhone application to the REST-Webservice using
Any body have idea how to put controls dynamically in asp.net 3.5 ? if
I missed my workspace in which I was working. Any one have idea about

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.