Closed dhildreth closed 3 years ago
Thank you for reporting this. Can we use the PDF you posted as part of our tests? And is it free of charge and with no obligations?
Can you test with #384 and tell us if it fixes your problem?
Yes, you may download and use the PDF for your tests. There aren't any restrictions on it. 😉
Yes, #384 fixes it. Thank you! Are there any instructions for me on how to get it updated in my composer.json? Will there be a new tag or do I need to use dev-master or... ?
Thank you for your feedback. I created another PR (#393) which contains the fix from #384 and a basic test (using your PDF). After it was reviewed I will merge it and prepare a new release soon.
@dhildreth new release v0.18.2 is out with this fix.
Excellent! Thank you.
Confirmed fixed. :-)
My application is throwing the error
Call to undefined method Smalot\PdfParser\Header::__toString()
in .../Smalot/PdfParser/Font.php Line 107 for version 0.18.1 (Laravel 7).I also attempted to use
dev-master
as well and ended up with:Adding
&& $this->get('Encoding') instanceof Encoding
fixes the issue:I had seen this fix somewhere else on this issue tracker, but I can't seem to find it now. I feel the worse part of this is that it doesn't throw an exception. Or, at least, I can't seem to catch it using
try{ } catch (\Exception $e) { }
. But, it should be resolved either way.I think it's choking on this PDF: https://cdn.embeddedarm.com/resource-attachments/Okaya_800nit_7inch_RS800480T-7X0WHP-A.pdf