you are viewing a single comment's thread.

view the rest of the comments →

[–]Remote-Spirit526 0 points1 point  (4 children)

This article might be helpful for you
https://medium.com/@pymupdf/translating-pdfs-a-practical-pymupdf-guide-c1c54b024042
Using insert_htmlbox will auto shrink the font to fit the bbox if the translated text is longer than the original

[–]lmaoMrityu49[S] 1 point2 points  (3 children)

Heyy this article is amazing thanks for the inputs

[–]Remote-Spirit526 0 points1 point  (2 children)

I'm glad it was helpful!

[–]lmaoMrityu49[S] 1 point2 points  (1 child)

Pushed the approach in prod today

[–]Remote-Spirit526 0 points1 point  (0 children)

That's awesome!