I’m having the same problem with this, I’ve read the user instructions several times, checked my paths, checked the config additions, but nothing happens on the page. Is it supposed to pop-up a download dialogue with the PDF?
All I get is a normal template render and nothing else.
Hi DanL
when you use the plugin you can:
- (or) simple print out the page in pdf format on the client web browser
- (or) force client to save the page in pdf format on his/her computer (via browser standard dialog)
- (or) save the pdf produced on server side and then redirect the client to somewhere
When “nothing happens” usually is due to a misconfig of the plugin requirements (hooks, path, etc.) or tcpdf library not correct installation (less common) ...
In other terms, please (re)try to follow these steps:
- use the latest plugin version (0.0.6) and the latest tcpdf lib.
- go to CP > Addons > Plugins > EEI_Tcpdf and see/check if all works well (you’ll see some fonts related error here if something goes wrong)
- double check if $config[‘eei_tcpdf_lib_path’] value is correct (must be the full phys. path where you’ve placed the tcpdf lib.) in the file expressionengine/config/config.php
- be sure that the tcpdf lib. folder is browsable and it cache folder has RW permissions
- double check if you have enable hooks in expressionengine/config/config.php file (I mean: $config[‘enable_hooks’] = TRUE;)
- double check hook instructions in expressionengine/config/hooks.php - simple try to put this in the php file:
$hook['display_override'] = array(
'class' => 'EEI_Tcpdf',
'function' => 'output',
'filename' => 'pi.eei_tcpdf.php',
'filepath' => 'third_party/eei_tcpdf'
);
- set the value of 4 for the EE var $config[‘log_threshold’] ... this produce a lot of log message on EE log, so you can easy see where the problem start ...
- write this simple code on your web template:
<h1>hello world</h1>
{exp:eei_tcpdf:params language="eng" title="This is the title" }
Should works (I’ve confirm from users using from the earlier EE 2 version to the latest) ... If not, please contact me in private: I can easily help you to install and use it w/o any obbligations ...
ps: please use this https://bitbucket.org/age38dev/eei_tcpdf/issues for future (public) issues