Closed ElGigi closed 8 months ago
Hello, I like this, but shouldn't we be able to pass the \Smalot\PdfParser\Parser as a parameter to the Reader constructor? This would allow the Parser configuration to be fully adjusted upstream. Thanks in advance for your opinion.
Hello, I like this, but shouldn't we be able to pass the \Smalot\PdfParser\Parser as a parameter to the Reader constructor? This would allow the Parser configuration to be fully adjusted upstream. Thanks in advance for your opinion.
I wanted to take this approach, but the Parser object stores objects in memory without necessarily releasing them after parsing. This would therefore not have been optimal.
You're right !
What do you think about adding 2 properties with getter/setter :
protected array $smalotPdfParserCfg = [];
protected ?\Smalot\PdfParser\Config $smalotPdfParserConfig = null;
See #31
It's nice too 👍
Solved with #31
Allow to pass SmalotPDF parser config object to the Reader service.
Regards.