Closed boan-anbo closed 1 year ago
Hi @boan-anbo , thank you for reporting the issue. It must be specific to building on Windows, as the problem does not occur on MacOS or Linux.
Thank you for your pull request. I believe it's simpler just to cast to a c_ulong
in PdfSearchOptions::as_pdfium()
, so I've pushed a patch that does that. If you could confirm this resolves the problem, I will make a new release.
Just tried 0.8.14, it's compiling. Thanks so much for taking care of this promptly!
No problem, released as crate version 0.8.14.
Somehow I could not build Pdfium 0.8.13.
Downgrade to "pdfium-render = "=0.8.12" or applying the suggested
try_into()
can fix the issue. A PR is submitted.https://github.com/ajrcarey/pdfium-render/blame/1f9b37a453a4cb0c3af66f84b8e07039512d19d6/src/page_text.rs#L411
My toolchain is