jrmuizel / pdf-extract

A rust library for extracting content from pdfs
364 stars 73 forks source link

Added support for missing colour spaces #80

Closed josemirm closed 5 months ago

josemirm commented 5 months ago

I don't know that much about the PDF Specification, but I found this PDF file from HP that had a "DeviceGray" colour space with a different "name" in the contest of the modified function, so the match at the start of the function doesn't work for that case.

If this change is wrong let me know. I just analysed the lib with WinDbg, check the values of variables while running, and add those (apparently) missing values.

Hava a nice day!