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

gtoddv’s picture

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/

MikeyGYSE’s picture

Had the same issue:

make sure you include the / at the end of the main path part.

MikeyGYSE’s picture

Status: Active » Closed (fixed)

Had the same issue:

make sure you include the / at the end of the main path part.

cjwysong’s picture

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

douggreen’s picture

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));
SYNTAX’s picture

Excellent Generic input - should be used as the Standard release.

http://drupal.org/node/80100#comment-201351

DJLahey’s picture

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