TomRoush / PdfBox-Android

The Apache PdfBox project ported to work on Android
Apache License 2.0
1.02k stars 263 forks source link

draw text in a "box" #544

Open farfromrefug opened 1 year ago

farfromrefug commented 1 year ago

image I have an image on which i have compute ocr like this (black areas are the ocr text drawn on top of the image). as you can see the text is fitted within boxes. now i want to create a pdf with the image and transparent text on top of it. is there a way to draw text within a rect/box using pdfbox? I did not find which api i could do that with

Thanks