Topic on Extension talk:PdfBook

FreeBSD installation - fails to generate pdf but does generate HTML

2
DGessel (talkcontribs)

The following procedure yielded a registered installation but it does not seem to generate any pdf output:

portmaster -Rd textproc/htmldoc

cd /usr/local/www/mediawiki/extensions

git clone https://gitlab.com/organicdesign/PdfBook.git

cd ..

ee LocalSettings.php

add

wfLoadExtension( 'PdfBook' );

and any settings following

apachectl graceful

and check https://XXX.XXX.XXX.XXX/mediawiki/index.php/Special:Version


Adding the action tab option successful directs to https://XXX.XXX.XXX.XXX/mediawiki/index.php?title=Upgrading_FreeBSD&action=pdfbook&format=single but yields a

ERROR Failed to load PDF document.


the pdf-book-cache- files are empty.  

The log file shows:

2021-06-05T03:06:43 Gessel talk contribs block ⧼pdflogentry⧽ (User:Gessel exported as a PDF book)


https://XXX.XXX.XXX.XXXmediawiki/index.php?title=Main_Page&action=pdfbook&format=single


also fails, however export as HTML works.


http://www.foo.bar/wiki/index.php?title=Main_Page&action=pdfbook&format=html and generates a valid cache file and presents it to the browser (looks lovely).


The command line

htmldoc --webpage -f postscript-output.pdf test-doc.html

works as expected, so there's something about the command structure calling htmldoc that isn't parsing correctly.

DGessel (talkcontribs)
Reply to "FreeBSD installation - fails to generate pdf but does generate HTML"