Posted by WeRockYourWeb.com on August 22, 2006 at 8:56pm
Jump to:
| Project: | Pdfview |
| Version: | 4.7.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I get this error when trying to download a page as PDF. I installed the module according to the instructions and searched Google for support on this error but didn't come up with anything. I ensured that K_PATH_MAIN and K_PATH_URL are set correctly. Does anyone have advice?
Thanks,
Alex
Comments
#1
It sounds like the folder tcpdf isn't installed in the correct place. You need to put it under your modules/pdfview folder. Then reset the K_PATH_MAIN and K_PATH_URL. The would most likely look something like this:
K_PATH_MAIN = /home/username/public_html/modules/pdfview/tcpdf/ (the first bit depends on your host)
K_PATH_URL = http://www.yourdomain.com/modules/pdfview/tcpdf/
#2
Had the same issue:
make sure you include the / at the end of the main path part.
#3
Had the same issue:
make sure you include the / at the end of the main path part.
#4
I had the same problem for 5.0...
and thanks to you guys it got fixed to where it actually started working the first signs of working.
Now, I just need it to create a little more than the title of the blog and a link to the attachments :-)
Any suggestions????
~Chris
#5
Here's a generic solution to setting this:
/**
* installation path
*/
$path = drupal_get_path('module', 'pdfview') .'/tcpdf';
define ("K_PATH_MAIN", realpath($path) .'/');
/**
* url path
*/
define ("K_PATH_URL", url($path .'/', NULL, NULL, TRUE));
#6
Excellent Generic input - should be used as the Standard release.
#7
One last thing... if you don't know what your host webroot folder structure is then you can also choose this version:
K_PATH_MAIN = modules/pdfview/tcpdf/
just make sure you start with modules without the / in front