yapsr

Results 16 comments of yapsr

Thanks, I have successfully replaced laravalid with laravel-jsvalidation!

Thank you @citionzeno, your suggestion works for me.

In my scripts, I parse a lot of PDFs and after a while, the out of memory error occurs. Continuing the script with the latest PDF from the former batch,...

> @yapsr Do you read your PDFs in one or multiple script runs? I try to read multiple small PDFs (200kB in size) with a background image (4961x7016px PNG) and...

Oops. We were using pdfparser v0.9.25. However, removing tcpdf and updating to v0.18.1, I still get the memory usage error. Adding the gc_collect_cycles() workaround prevents the memory limit exception.

I managed to create a PDF file to reproduce the issue: [document_with_text_and_png_image.pdf](https://github.com/smalot/pdfparser/files/5808510/document_with_text_and_png_image.pdf) ``` $file = 'document_with_text_and_png_image.pdf'; $loops = 10; for($i=0;$iparseFile($file); echo memory_get_usage() . PHP_EOL; } ``` Memory usage will increase...