smalot / pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.
GNU Lesser General Public License v3.0
2.3k stars 534 forks source link

Class PDFDocEncoding does not extend AbstractEncoding #699

Open SaschaScholly opened 2 months ago

SaschaScholly commented 2 months ago

Class PDFDocEncoding does not extend AbstractEncoding and therefore method getTranslations is missing.

For some Files that leads to an Fatal Error.

k00ni commented 2 months ago

Thanks for the report, I will look into that soon-ish (hopefully until end of next week).

GreyWyvern commented 2 months ago

Class PDFDocEncoding has no getTranslations() function (it would be empty) so I think there would still be an error. PDFDocEncoding shouldn't be used anywhere in a getTranslations fashion afaik. Can you provide a sample PDF where this error occurs?

A getTranslations() function can probably be added if necessary.