Kirby to PDF for print?

There are more js libraries like that. You can totaly generate pdf on the client but there are certain problems:

  1. It will work fine on current desktop browser, but might not work on older browsers. Imagine generating concert ticket on your old iphone with safari 5 in line in front of the venue. Basicaly you cant be sure that the person gets the PDF. Its OK if is something noncritical.
  2. Client can potentionaly change the code / gets the source.
  3. You cant cash it - i mean you dont care because client generates it but if its something static (print version of blogpost) it would probably be better to just generate it on server and then let people just download.

i used mpdf in few projects now. i was able to create very complex layouts, with and without the table-element.

I echo @timoetting. I have used wkhtmltopdf to generate relatively complex PDFs from HTML on other sites. It is quite easy to use (as long as you have control of the server) and produces pretty good results. Seems like a perfect use for Content Representations.

1 Like