Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Snappy pdf

Started by Muut Archive 10 years ago · 9 replies · 664 views
10 years ago

I have installed the snappygrav plugin to export to pdf but when I click on the pdf button I get a Forbidden 403 page. Have followed the readme instructions - any tips why I'm getting this error?

I'm on localhost with xampp, composer and components installed as described in the readme.

10 years ago

Hi obeliksz, can you tell me what theme you're using and the final part of what appears in the address bar?

10 years ago

Hello obeliksz,
thanks you but I do not need code...
There is a bug that I have not solved yet, and I think that's the case ...
Then, try moving to any page other than the default, that is, the first page displayed ...
Then, if in the selected page there is not a link to the full pdf, in the address bar, to existing content, add :completepdf

10 years ago

If I add it to a page it says that the file is unavailable.
Workaround solution?

10 years ago

Maybe it will be better to take a look ... can you put your site zipped on dropbox or google drive and paste me the link to iusvar at yahoo dot it?

10 years ago

Well I found the problem, in the vendor has no knplabs and h4cc and then it means that you must install with composer, as follows (in the command line must be placed in the base folder where there is index.php):

composer require knplabs/KNP-snappy

composer require h4cc/wkhtmltopdf-i386

after having done it all works (except the bug for the default page of which I am already aware and I hope to resolve as soon as possible: first page is still printed with completepdf)

that's all

10 years ago

Thanks, now I have installed with composer as you suggested, having the knplabs and h4cc folders under the vendors but still I just get the same 403 Forbidden page, now not only for /root:completepdf but also for /root/page:completepdf (previously it gave a firefox generated error page saying page not found).

10 years ago

I created the PDF from your site, after I installed as needed. I do not know why you write /root:completepdf or /root/page:completepdf

Trying on my PC the data you posted me the base address to view the site is http://127.0.0.1/learn/

To create the pdf that was enough move to Complete feature list (then in the address bar: http://127.0.0.1/learn/basics/featurelist), then to click on the pdf icon (shortcut: http://127.0.0.1/learn/basics/featurelist:completepdf) and get the pdf to download ... which I sent to your email.

10 years ago

I have set up a VirtualBox with linux, configured it and now I am able to get the pdf!! :D

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2954 9 years ago
Archive · by Muut Archive, 9 years ago
3 1120 9 years ago