sampart / WhiteOctoberTCPDFBundle

A bundle to facilitate using TCPDF for PDF generation in Symfony applications
89 stars 43 forks source link

Problem with the bundle #27

Closed cdupasquier closed 10 years ago

cdupasquier commented 10 years ago

Hi,

I don't understand why I have a problem with this bundle. On my local workstation based on Wamp, all functionnality are ok, but when I pass all files on my production's server I obtain an Error like this : TCPDF ERROR: Could not include font definition file: helvetica

Can you quickly help me for fixing this problem, because I must render my work this week and I don't create a little PDF. Thanks by advance for a little help from your part !

:8ball:

gxw commented 10 years ago

Hi - I have the same problem, and I think I solved it To fix: go to: vendor/tecnick.com/tcpdf/include/tcpdf_fonts.php. In line: 1691 (_getfontpath method) change return defined('K_PATH_FONTS') ? K_PATH_FONTS : ''; to return defined('K_PATH_FONTS') ? K_PATH_FONTS.'/' : '';

hope helps

richsage commented 10 years ago

As @gxw indicates, this appears to be an issue within the TCPDF project itself, and not within the bundle.

jsr2609 commented 10 years ago

I think it's a problem Symfony2 component. Lose the last character "/", I feel the same with the constant k_path_images.