Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sertting of TCPDF congiguration constants #1

Closed
jbazant opened this issue May 12, 2015 · 2 comments
Closed

Allow sertting of TCPDF congiguration constants #1

jbazant opened this issue May 12, 2015 · 2 comments

Comments

@jbazant
Copy link

jbazant commented May 12, 2015

Please add mechanism that allows setting TCPDF constants by application. At current state I am unable to set e.g. K_TCPDF_THROW_EXCEPTION_ERROR, which causes TCPDF to call die() on error as long as it is set to false (default).

@jonasarts
Copy link
Owner

The config currently resides at lib/config/tcpdf_config.php, there is also

define('K_TCPDF_THROW_EXCEPTION_ERROR', false);

set.

Also have a look at lib/tcpdf_autoconfig.php about how and which constants are auto-loaded by TCPDF.

It is probably a nice idea to use Symfonys ConfigurationInterface to pass some constants to TCPDF. In combination with define(K_TCPDF_EXTERNAL_CONFIG, true).

@jbazant
Copy link
Author

jbazant commented May 12, 2015

Ye, I was missing the K_TCPDF_EXTERNAL_CONFIG constant. I think ticket can be closed now. But I still believe that K_TCPDF_THROW_EXCEPTION_ERROR should be set to TRUE by default.

Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants