Replies: 1 comment
-
Hi @mara004 👋 Thanks a lot for the heads up!
Happy to to discuss this further if needed! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
doctr
seems to be defined inio/pdf.py
. I took a quick look and have some considerations:pathlib.Path
anymore. I initially had support for pathlib but then switched back toos.path
for various reasons. This means you should probably call the rendering function withstr(file)
iffile
is 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 ndarrays
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions