chm2pdf shows the HTMLDOC windows

22 views
Skip to first unread message

turbo

unread,
Apr 6, 2010, 7:58:50 PM4/6/10
to chm2pdf
On ubuntu 9.10, when i compile chm2pdf --book file.chm , I got HTMLDOC
window, when I click the button 'Generate', it prompts "No HTML files
to format, cannot generate document". Can anyone tell me what is
wrong?
Problem its just my file.chm generate 1000 pages so adding it into
HTMLDOC its not funny.

Thanks

Chris Karakas

unread,
Apr 14, 2010, 9:01:38 AM4/14/10
to chm...@googlegroups.com
Make sure that when you type 'htmldoc' you get an output in the console and no windows.

Alternatively, you have to find the command-line (no windows!) version of HTMLDOC and change the two occurrences of 'htmldoc' in:

if options['verbose']=='--verbose' and options['verbositylevel']=='high':
print 'htmldoc' + htmldoc_opts + ' ' + htmlout_filename_list + " -f "+ outputfilename + " > /dev/null"
exit_value=os.system ('htmldoc' + htmldoc_opts + ' ' + htmlout_filename_list + " -f "+ outputfilename + " > /dev/null"

in /usr/bin/chm2pdf (or wherever chm2pdf is located) with the name of the command-line version of HTMLDOC.

Also you can use the--verbose option to get more output from chm2pdf.

-- 
Regards

Chris Karakas
http://www.karakas-online.de

-----Ursprüngliche Nachricht-----
Von: turbo <djio...@hotmail.com>
Gesendet: Apr 7, 2010 1:58:50 AM
An: chm2pdf <chm...@googlegroups.com>
Betreff: chm2pdf shows the HTMLDOC windows

>--
>Hai ricevuto questo messaggio perché sei iscritto al gruppo "chm2pdf" di Google Gruppi.
>Per postare messaggi in questo gruppo, invia un'email a chm...@googlegroups.com.
>Per annullare l'iscrizione a questo gruppo, invia un'email a chm2pdf+u...@googlegroups.com.
>Per ulteriori opzioni, visita il gruppo all'indirizzo http://groups.google.com/group/chm2pdf?hl=it.
>

turbo

unread,
Apr 15, 2010, 7:03:28 PM4/15/10
to chm2pdf
Hi Chris,

i dont really understand what u mean with :

""
Alternatively, you have to find the command-line (no windows!) version
of HTMLDOC and change the two occurrences of 'htmldoc' in:

if options['verbose']=='--verbose' and
options['verbositylevel']=='high':
print 'htmldoc' + htmldoc_opts + ' ' + htmlout_filename_list
+ " -f "+ outputfilename + " > /dev/null"
exit_value=os.system ('htmldoc' + htmldoc_opts + ' ' +
htmlout_filename_list + " -f "+ outputfilename + " > /dev/null"
""
but i install a new htmldoc with no windows just output in the
console... and i have this message at the end :

""
Correcting links in the HTML files...
Producing the PDF from the 10588 individual HTML files...
Something wrong happened when launching htmldoc.
exit value: 256
Check if output exists or if it is good.
Done.
""
but no .pdf i'm on Ubuntu [last version]. what's wrong now?

So let me tell u!! i'm trying to convert the php documentation.

Thank U!

Chris Karakas

unread,
Apr 16, 2010, 7:19:42 AM4/16/10
to chm...@googlegroups.com
Try the

--verbose --verbositylevel high

options to see more detail.

Also, maybe you should try the --webpage instead of --book version (or vice-versa).

-- 
Regards

Chris Karakas
http://www.karakas-online.de

-----Ursprüngliche Nachricht-----
Von: turbo <djio...@hotmail.com>
Gesendet: Apr 16, 2010 1:03:28 AM
An: chm2pdf <chm...@googlegroups.com>
Betreff: Re: chm2pdf shows the HTMLDOC windows

turbo

unread,
Apr 20, 2010, 10:23:50 PM4/20/10
to chm2pdf
Hi Chris,

i make it like u said and i get this :

htmldoc --webpage --duplex --format 'pdf14' --jpeg='100' --linkcolor
'blue' --header 'c C' --size 'a4' --linkstyle 'plain' --embedfonts --
bodyfont times --footer 'c C' -f phpde.pdf > /dev/null
Something wrong happened when launching htmldoc.
exit value: 256
Check if output exists or if it is good.
Done.


same with --book.

Thanks

Chris Karakas

unread,
Apr 22, 2010, 1:06:04 PM4/22/10
to chm...@googlegroups.com
Well, if you try on an xterminal the command

htmldoc --webpage --duplex --format 'pdf14' --jpeg='100' --linkcolor 'blue' --header 'c C' --size 'a4' --linkstyle 'plain' --embedfonts --bodyfont times --footer 'c C' -f phpde.pdf

you will get a long output (which is the help output of htmldoc). I you look closely in that output, you will see the error

ERROR: No HTML files!

For chm2pdf this means that, for some reason, it was unable to find the HTML files inside your CHM and pass them on the above command to htmldoc.

chm2pdf needs some libraries in order to be able to do this. Did you follow the installation procedure closely? See:

http://code.google.com/p/chm2pdf/wiki/HowToInstall

Read that through the end. For example, the

./ configure -- enable - examples

part for chmlib is important...

---
Regards

Chris Karakas
http://www.karakas-online.de


-----Ursprüngliche Nachricht-----
Von: turbo <djio...@hotmail.com>
Gesendet: Apr 21, 2010 4:23:50 AM
An: chm2pdf <chm...@googlegroups.com>
Betreff: Re: chm2pdf shows the HTMLDOC windows

Reply all
Reply to author
Forward
0 new messages