Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Dec 2012
    Location
    India
    Posts
    89

    How to split large chm file into small pdf files


    Hi I have a large chm file of size 150MB and I have extracted the file into a folder using 7zip and the resulted folder size was 420MB and it contains 40000 HTML and other files. I have tried to convert the chm file into pdf file using atop chm to pdf converter and the resulted pdf file size was 250MB.

    The chm file consists of bookmarks and again each bookmark consists of bookmarks.

    Can you suggest how to extract the contents of a bookmark in chm file to another chm file or pdf file.

    Regards,
    Rupesh.

  2. #2
    Hi

    Write a script that uses 7zip or whatever you want to unpack every html files that a chm file contains.

    When the html file has been wrote to the hd or stdout, depending on how you wrote your script, use unoconv as follow:

    unoconv -e OPT -i OPTS input output

    where OPT specifies the exporting (PDF) options
    where OPTS specifies the importing (HTML) options
    where input is the html file (or -, in case of stdout)
    where output is the pdf file.

    unoconv is a component of LibreOffice.

    chris_inx

  3. #3
    Here's a list of PDF options

  4. $spacer_open
    $spacer_close
  5. #4
    Banned
    Join Date
    Dec 2012
    Location
    India
    Posts
    89
    -->
    As I don't want to convert all HTML files into pdf files and so is there any way to combine a group of HTML files into pdf file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •