[pmwiki-users] PDF conversion for PmWiki

Petko Yotov 5ko at 5ko.fr
Sun Aug 22 08:12:03 PDT 2021

[Resending to the mailing list.]

Recently I found that the in-browser "Print to PDF" feature produces PDF 
files of acceptable quality. You can add a markup to make a link or a 
button that will launch javascript:window.print(). You may also often 
want to improve your "@media print" CSS queries.

I'm using this on a high volume wiki and it works well, in both Firefox 
and Chromium-based desktop browsers, i.e. virtually all internet users 
on desktop. I feel this will be the way to go in the future, at least 
for my own projects.

Per your points:

A. I haven't used the recipes you listed, because when I tried them 
several years ago they didn't support international characters/UTF-8.

B. A web search for "htmldoc", the first result on the first page is the 
project's current website, this allowed me to update the links on the 
Cookbook page.

C. All seemingly abandoned recipes where the license allows modification 
and redistribution can be adopted by a new contributor. Out of courtesy, 
I'd try reaching the author/maintainer first.

D. PrintGroup can convert individual pages or a full wikigroup to PDF:


You probably need admin access to the server to install the additional 
software (like for the other recipes you listed).

This recipe is designed to store daily backups of the wiki content, but 
it may be possible to configure for on-the-fly PDF generation with an 
invariable $PrintGroup['datefmt'] (latest version released today, also 
updated for PHP8).

This recipe has no listed users on the PrintGroup-Users page, but if 
anyone requires it, I can make it skip new PDF generation if there is 
already a PDF newer than the page (like for thumbnails in Mini or 

If you upgrade :  http://www.pmwiki.org/Upgrades

On 22/08/2021 02:36, david at ellendee.co.uk wrote:
> I have been looking at PDF conversion for the last 2 days and it seems 
> like
> the recipes available are all broken.
> 1. GeneratePDF doesn't work on the recipe page and if you look relies
> on a script called htmldoc. If you follow the link it seems that the 
> URL was
> taken over in 2016 by someone who will write your dissertation for you.
> 2. PublishPDF (includes PublishWikiTrail and ePubCreation) this was a
> fantastic option although the software didn't comply with the latest 
> version. I started to update the software for myself and was about 
> halfway
> through when I realised that the server which does the conversion is 
> now
> locked and Affinity.co.nz appears to be de-registered.
> 3. PmWiki2PDF I had a look at this, but the files on github haven't
> been updated in 8 years.
> It's a real shame all these seem to be no longer an option. Is anyone 
> else
> tinkering with this at all?

More information about the pmwiki-users mailing list