You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using this package for over a year now and suddenly started getting memory exhaustion errors PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in <[...]>/tcpdi_parser.php on line 882
Here's my code
@noxtras I never actually found a fix but I did figure out a workaround. In my case, this issue doesn't happen every time but with specific PDFs, so I assume they have something corrupt in them that TCPDI can't process. So the solution was to integrate optional PDF parsing by GhostScript, so we pre-process the PDF with GS and then pass this new PDF to the tcpdi, which seems to work 99.99% of the time.
I've been using this package for over a year now and suddenly started getting memory exhaustion errors
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in <[...]>/tcpdi_parser.php on line 882
Here's my code
I'm attaching one of the pdfs that causes this error, I'm really lost at where should I even begin to look for the problem.
problems.pdf
The text was updated successfully, but these errors were encountered: