Replies: 1 comment
|
Hi @mara004 👋 Thanks a lot for the heads up!
Happy to to discuss this further if needed! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm the maintainer of pypdfium2 and found your interesting library using sourcegraph. It's amazing to see pypdfium2 in practical use!
The PDF backend code of
doctrseems to be defined inio/pdf.py. I took a quick look and have some considerations:pathlib.Pathanymore. I initially had support for pathlib but then switched back toos.pathfor various reasons. This means you should probably call the rendering function withstr(file)iffileis a path.PIL.Image.Image. I recently changed the API to allow getting the data as bytes:render_pdf()is replaced byrender_pdf_topil()andrender_pdf_tobytes().# Read pages with fitz and convert them to numpy ndarraysKind regards
All reactions