LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2004, 11:35 AM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
htmldoc problem


hi, im in serious trouble with htmldoc-1.8.23
if i try to convert an html file all i get is this

ERR002: Error: no pages generated! (did you remember to use webpage mode?

actually i did remember to use webpage mode. but htmldoc doesnot produce any usable output. neither called within a php script nor from shell. as it seems to be working elsewhere i wonder what the bug may be. any ideas? would be great!
 
Old 09-02-2004, 02:06 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What command are you using to create the PDF?
 
Old 09-02-2004, 03:06 PM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Original Poster
Rep: Reputation: 145Reputation: 145
htmldoc --webpage -t pdf -f /srv/www/htdocs/web/test/chartest.pdf /srv/www/htdocs/web/test/chartest.html

this is one of several i tried. i tried the php code examples from the documentation, the bash and
perl scripts all of which lead to nothing. when run from command line with --verbose option the
error msg above mentioned is displayed.
 
Old 09-03-2004, 01:54 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
That seems a bit odd. Is it a valid HTML document?

Have you tried with something simple like:
Code:
<html>
<head>
<title>Title</title>
</head>
<body>
<h1>This is a test</h1>
</body>
</html>
 
Old 09-03-2004, 02:39 PM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Original Poster
Rep: Reputation: 145Reputation: 145
i did 10 seconds ago and it worked. seems my html file is not 'well-formed'. thanks for your idea. j.

this was missing: <h1>This is a test</h1>
without a header it doesnt work.
thanks again mate.

Last edited by j-ray; 09-03-2004 at 02:42 PM.
 
Old 09-03-2004, 02:41 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
A quick solution to fix your file might be to use HTML tidy:
http://tidy.sourceforge.net/
 
Old 09-04-2004, 02:55 AM   #7
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Original Poster
Rep: Reputation: 145Reputation: 145
well, as i intend to convert html files i generated myself i wont need tidy, i hope. the simple detail i forgot was that htmldoc needs the <h1></h1> tag to get going. but your hint was really helpful and probably saved me a lot of time. i'll click the affero button, thanks and have a nice day, j.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
htmldoc - a different input from an html file - cubax Linux - General 1 05-16-2005 12:54 AM
tool for converting html to pdf - htmldoc j-ray Linux - Software 2 08-30-2004 09:02 AM
Problem in running htmldoc satimis *BSD 2 06-22-2004 09:29 PM
Help installing HTMLDOC natto34 Linux - Software 1 07-06-2002 02:45 PM
Prob. installing HTMLDoc natto34 Linux - Software 0 07-05-2002 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration