Closed BKLTMS closed 6 months ago
@BKLTMS what is the engine? the built-in one (YetiForce engine) or Google Chrome engine?
Yetiforce engine
@BKLTMS YetiForce PDF engine is not a champion in memory management: if the PDF template has a lot of content it could crash. Try generating a PDF, via YetiForce engine, with a very small PDF template: with only a small text in the "Content" field to see if the PDF is generated.
Thank you for your response and assistance. I did as suggested and the smaller template did generate under PHP 8.0.30. We need to use the templates as they are; is there a solution to make the Yetiforce PDF engine more memory friendly with PHP 8 and above? As indicated above, all our templates work and generate fine with PHP 7.4.33.
Much appreciated!
Hi,
Please check the memory limit in the php.ini file.
When i changed the php version, it switched to default memory limit as 128MB and created the error in PDF generation. After increasing the memory limit to 1GB, it was solved. Please check the server configuration for php8, it may solve the error.
Thanks.
Thanks for the suggestion. Changed memory limit to 1GB. Unfortunately getting the same error. Any other advice or suggestions to troubleshoot? Thanks and appreciated!
hi,
when my quotation having too many products or long descriptions, sometimes faced this error.
Try to generate it the pdf with 1 or 2 products. if PDF generation is successful, increase the memory limit and / or maximum execution time. This worked for me.
Please try this and share the results.
@BKLTMS you have two ways: split the PDF template in smaller templates, or buy a Google Chrome PDF engine extension
Thanks for the assistance and suggestions!
As a follow-up after closing: Found issue to be with the line-height code in the source. They were using % for the value, once changed to a number value (i.e.- 1.5 or .9), all templates generated as expected with PHP 8.0.30.
its nice to hear that issue was fixed.
Cloud you please share the column width and height adjustment section?
and have you tried to change the fonts? if you succeed, could you please share the procedure for changing the fonts?
Here is the section you were asking for:
Hope this is of assistance.
Reposting as an image as it is not being allowed to show as text in the previous comment:
Hi,
Yes i required this syntax only and also could you please share the folder path to add the custom fonts?
Thanks
my pdf export worked before the upgrade to Yetiforce 7.0 - now it doesn't want to accept the logo.
https://github.com/YetiForceCompany/YetiForcePDF#custom-fonts
hi,
Thanks for your inputs and now i can generate the quotes with custom fonts. But the PDF output doesnt display the indian currency symbol.
Now, i am generating the product table using below syntax. $(inventory : type=table columns=seq,comment1,qty,unit,total,tax , href=no , labels=SNo,Product Description,Qty,Unit,Product Price, Tax , width=10px,225px,50px,45px,105px,95px )$
sometimes the alignment is not working as expected. is there any alternative method available to generate the product table?
Thanks & regards, Rajasekaran.
π bug report
βοΈ Describe the bug
Version 6.5: All works fine when generating a PDF with PHP7.4. However, when PHP is upgraded to PHP8 or above, PDF generation delivers the screenshot below. Reverting back to PHP7.4 resolves this and generation works again.
Logs not indicating anything on this error.
Any assistance is appreciated - thank you,
π₯ How to trigger the error
Steps to reproduce the behavior:
π Actual Behavior
π Expected Behavior
π· Testing
π· Screenshot of configuration
π PHP/Apache/Nginx/Browser/CRM Logs
π Your Environment
β Additional context
Add any other context about the problem here.
βοΈ Inform the community if you solve the problem