From: Reini U. <ru...@x-...> - 2004-10-29 13:43:26
|
SourceForge.net schrieb: > Read and respond to this message at: > https://sourceforge.net/forum/message.php?msg_id=2827297 > By: evilynux > > Softwares: > apache 1.3.27 > php 4.3.3 > mysql 4.0.15 > phpwiki 1.3.10 > > Problem: > Using ?action=pdf gives a usually empty pdf document of more than 200 pages. > I've tried with the default and wordpress themes. > > I say "usually empty" as sometimes, the phpwiki logo is shown in the upper-left > corner (althou it's not on the page) and if you are lucky, you can get few of > the words that were on the actual webpage. > > Any idea, suggestion or solution would be very much appreaciated. > > NOTE: i'd appreciate if you could send a copy of the replies > to Pas...@Er... for job tracking purposes. Thanks. Then sent it to the phpwiki-talk mainling list instead. USE_EXTERNAL_HTML2PDF = "htmldoc --quiet --format pdf14 --no-toc --no-title %s" -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Reini U. <ru...@x-...> - 2004-10-29 17:42:06
|
Pascal Giard (QC/EMC) schrieb: > Le vendredi 29 octobre 2004 à 15:42 +0200, Reini Urban a écrit : >>USE_EXTERNAL_HTML2PDF = "htmldoc --quiet --format pdf14 --no-toc >>--no-title %s" > > > i've added that to my config/config.ini file after renaming htmldoc to > ghtmldoc and making sure that ghtmldoc is in my PATH. note that i may be > assuming too much, ghtmldoc might != htmldoc. > > anyway, the ?action=pdf gives the same result: pdf document with over > 200 pages 90% blank containing the phpwiki logo in the upper right > corner. > > hmmm, unfortunatly, i'm stuck with a MS Win2k as a webserver... that has > some consequences [besides that i really don't like non-free software > and that it's unable to run "heavy" tasks at the same time]: > - I can't find htmldoc for Win32, i only got ghtmldoc from > ftp://easysw.com/pub/htmldoc/ . > - I'm not sure how to proceed in order to install the required packages > mentionned in http://phpwiki.sf.net/phpwiki/PhpWikiToDocBookAndPDF . ah, they probably just changed the name. check the cmdline args then. I've built htmldoc on windows and on linux and I'm using it for my win2k test server and also on phpwiki.sf.net/demo/ (as you might see). but you need latest CVS of phpwiki. (and not the nightly snapshot because this doesn't work anymore) > Before trying to make the pdf export work, i noticed that xhtml dumping > didn't work as i expected. yes, htmldump is our best testcase which produces the most errors, because it tries to transform and render every simgle page. on any error it fatals. and it easily runs out of memory. (needs ~30MB currently) > It only dumps some pages, namely anything but the pages i've created. > When using the xhtml dump button in PhpWikiAdministration, you can see > in the bottom of the page that i get an error. > > For some reason, the xhtml dumping result page shows that the "last" > page that is dumped is HowToUseWiki, then i get a Recent Changes section > [huh?!] that shows assertion failed at line 178 of lib/WikiDB.php . > Below, the very same block is repeated but under the title "Fatal > PhpWiki Error". -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Pascal G. (QC/EMC) <pas...@er...> - 2004-10-29 19:08:52
|
Le vendredi 29 octobre 2004 =C3=A0 19:42 +0200, Reini Urban a = =C3=A9crit :=20 > > - I can't find htmldoc for Win32, i only got ghtmldoc from > > ftp://easysw.com/pub/htmldoc/ . > ah, they probably just changed the name. check the cmdline args then. there doesn't seem to be any cmdline args for ghtmldoc. --help, -h, /?, /help, -? doesn't give any output. the included doc doesn't mention anything about cmdline... > I've built htmldoc on windows and on linux and I'm using it for my = win2k=20 > test server and also on phpwiki.sf.net/demo/ (as you might see). hmmm... i'm unable to get any working pdf out of the ?action=3Dpdf = "url". is that suppose to work ? > but you need latest CVS of phpwiki. (and not the nightly snapshot=20 > because this doesn't work anymore) i cannot really risk going to CVS version. i have to be 100% sure there won't be any content lost in the manipulation. > > Before trying to make the pdf export work, i noticed that xhtml = dumping > > didn't work as i expected. >=20 > yes, htmldump is our best testcase which produces the most errors,=20 > because it tries to transform and render every simgle page. on any = error=20 > it fatals. > and it easily runs out of memory. (needs ~30MB currently) i don't understand why it makes an error... i don't see any relevant = message in the error message :( how can it fail to assert ?! when an empty string is given ? --=20 Pascal Giard (QC/EMC) <pas...@er...> MMS Provisionning -- Ericsson Canada |
From: Pascal G. (QC/EMC) <pas...@er...> - 2004-10-29 16:18:30
|
Le vendredi 29 octobre 2004 =C3=A0 15:42 +0200, Reini Urban a = =C3=A9crit : > USE_EXTERNAL_HTML2PDF =3D "htmldoc --quiet --format pdf14 --no-toc=20 > --no-title %s" i've added that to my config/config.ini file after renaming htmldoc to ghtmldoc and making sure that ghtmldoc is in my PATH. note that i may = be assuming too much, ghtmldoc might !=3D htmldoc. anyway, the ?action=3Dpdf gives the same result: pdf document with over 200 pages 90% blank containing the phpwiki logo in the upper right corner. hmmm, unfortunatly, i'm stuck with a MS Win2k as a webserver... that = has some consequences [besides that i really don't like non-free software and that it's unable to run "heavy" tasks at the same time]: - I can't find htmldoc for Win32, i only got ghtmldoc from ftp://easysw.com/pub/htmldoc/ . - I'm not sure how to proceed in order to install the required = packages mentionned in http://phpwiki.sf.net/phpwiki/PhpWikiToDocBookAndPDF . Before trying to make the pdf export work, i noticed that xhtml dumping didn't work as i expected. It only dumps some pages, namely anything but the pages i've created. When using the xhtml dump button in PhpWikiAdministration, you can see in the bottom of the page that i get an error. For some reason, the xhtml dumping result page shows that the "last" page that is dumped is HowToUseWiki, then i get a Recent Changes = section [huh?!] that shows assertion failed at line 178 of lib/WikiDB.php . Below, the very same block is repeated but under the title "Fatal PhpWiki Error". --=20 Pascal Giard (QC/EMC) <pas...@er...> MMS Provisionning -- Ericsson Canada |