Optimizing dompdf |
11/9/2017 8:35:50 AM |
PHPRunner General questions | |
![]() Hi all, def("DOMPDF_FONT_DIR", DOMPDF_DIR . "http://www.mywebsite.com/dompdffonts/");
$dist_fonts = require_once "http://www.mywebsite.com/dompdffonts/dompdf_font_family_cache.dist.php";
|
|
![]() |
Please delete this account 11/9/2017 |
http://asprunner.com/forums/topic/21881-install-app-multiple-times-for-different-clients/ |
![]() |
mbintex author 11/9/2017 |
This is actually what I am doing. |
![]() |
Please delete this account 11/9/2017 |
This is actually what I am doing. Now I´d like to save space and upload effort by using common components - the fonts folder is the first try, since that is much of the whole upload
|
![]() |
mbintex author 11/9/2017 |
Thanks for your efforts. <?php return array ( |
![]() |
Please delete this account 11/9/2017 |
Thanks for your efforts. But I think that is not the solution here - the files to render aren´t remote, they are locally from the current phprunner app-site. The only thing that should be somehow centralized is the font folder. I think I have to change dompdf_font_family_cache.dist.php too, since there are a bunch of links inside to the fonts, but I don´t get it right somehow. <?php return array (
|
![]() |
mbintex author 11/10/2017 |
gave it a try and change "remote ..." to true. |
![]() |
Please delete this account 11/10/2017 |
gave it a try and change "remote ..." to true. Doesn´t change anything - still get Uncaught DOMPDF_Exception: Unable to find a suitable fon replacement for: helvetica, arial, sans serif
|
![]() |
mbintex author 11/10/2017 |
seems that I can´t edit the php.ini myself on the server. |
![]() |
Please delete this account 11/10/2017 |
seems that I can´t edit the php.ini myself on the server. Tried set_magic_quotes_runtime(0); in the login-script, as proposed here: https://stackoverflow.com/questions/2217955/how-can-i-replace-the-deprecated-set-magic-quotes-runtime-in-php'>https://stackoverflow.com/questions/2217955/how-can-i-replace-the-deprecated-set-magic-quotes-runtime-in-php but get Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() with this. Server is Running PHP 7.x
|
![]() |
mbintex author 11/10/2017 |
@set_magic_quotes_runtime(false);
|
![]() |
mbintex author 11/10/2017 |
To my findings the real big thing in the dompdf fonts folder provided by Xlinesoft is the font file <?php return array (
define("DOMPDF_DEFAULT_FONT", "arial");
|
![]() |
mbintex author 11/10/2017 |
and now another approach. |