I know this is more of the TCPDF question than PDF-IDCard issue.

I can't seem to put in any path to not get that error message under Site Configuration

The default path is 'sites/all/modules/PDF-IDcard/tcpdf' but i get that error.

In addition i tried the full path and still receive the error
home/site/public_html/sites/all/modules/PDF-IDcard/tcpdf

Comments

daniel sanchez’s picture

I'm having the same issue.
Would this problem be in the tcpfd_config.php page? I did not make any modifications to this file.
The example files in the tcpfd/examples folder are working properly.

If I put a copy of the tcpfd folder in root and change the path in the PDF-ID config page to "tcpfd" I get rid of the error. However, when I try to print an ID the pdf file created cannot be opened. PDF software says it is corrupt.

jredding’s picture

The module is looking for tcpdf within the modules folder and specifically its looking for tcpdf.php. It should find tcpdf.php in the folder that you specified on the settings page.

For example if you specified sites/all/modules/pdf-idcard/tcpdf
then the file tcpdf.php should be located at
sites/all/module/pdf-idcard/tcpdf/tcpdf.php

if it doesn't find tcpdf.php then it will throw that error.

daniel sanchez’s picture

Thank you for your response.
That is exactly the way I have it set up. Except I have it in the 'default' instead of 'all' folder. Yet I still get that error.
If I try it, it will create a PDF file that cannot be opened.
I've tried on a working website, and on a clean install.

jredding’s picture

Status: Active » Closed (fixed)

Its been a while for this request. TCPDF needs to be configured with tcpdf_config.php and it can be anywhere on the server provided that PHP has access to it. I recently used this module on the latest (as of this writing) copy of tcpdf and things are still working.