PDF won't print

Printing PDF invoice comes up with the following error.



Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /*****/********lib/html2pdf/width.php on line 35



Creating a php.ini file in the root directory and adding - memory_limit = 64M

fixed the problem.



Is this way ok or should I go about it another way.

Open ‘config.local.php’ from the site root, there should be a memory limit line, check to make sure that your store can access 64MB.

Hi


[quote]

Printing PDF invoice comes up with the following error.



Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /*****/********lib/html2pdf/width.php on line 35



Creating a php.ini file in the root directory and adding - memory_limit = 64M

fixed the problem.



Is this way ok or should I go about it another way.

[/quote]



In 2.*



File: /lib/html2pdf/config.inc.php



7: @ini_set('memory_limit', '128M');