Loading...
 
Skip to main content

Features / Usability


PDF creation does not work on restricted pages

As the title says, PDF creation with wkhtmltopdf does not work for pages that have group access restrictions (e.g. pages viewable only by editors).

I'm using Tiki 9.x and wkhtmltopdf 0.11rc1.

Furthermore, there are different results on the produced PDF file, depending on the protocol:

  • when I'm accessing a page through http and I press the PDF button, the pdf file contains the log-in page (which I guess it means that the "pdf printer" does not have access to the page).
  • Through https, the pdf file is 0 bytes.


I guess the https is an extra problem (perhaps due to my self-signed certificate), but I can put it aside for the time being.
However, I would like to solve the http problem. Has anyone had any kind of experience with this?

I also plan to have a certain IP address allowed to access the specific page without need to log in (which might even be plan B if the pdf thing doesn't work). Is this possible?

UPDATE: Apparently, even if I enable anonymous users to access the page, I still can't print to PDF - I still get the log-in page in the pdf file.

I'm going through the Tokens docs right now but it seems that tokens are already used for printing to printer/pdf (every time I press the PDF button, a new token pops up in the Tokens list).

Also, the tokens don't seem to work - I create tokens manually but when I try them on a different browser I get "token expired".



This is still a problem for me and it's driving me up the wall.

There's a slight chance that this is due to the LDAP authentication that I'm using. It already has given me enough trouble by not being able to use password with special characters in them (like ">" or "!"). I think that the last time I remember pdf export to be working was way before I enabled LDAP auth.