How to read text from PDF for slanted text alignment using PDFBox in java -
using below logic extract text pdf using pdfbox. giving output normal pdfs.
pdftextstripper stripper = new pdftextstripper(); stripper.setsortbyposition(false); stripper.setparagraphstart("$"); stripper.setparagraphend("$$"); string output = stripper.gettext(pdf); but have pdfs in text inclined @ angle shown in attached image. type of pdfs, pdfbox gives output given below
$ image proc $$ $ essing pr $$ $ ocessing of im $$ $ ages usin $$ $ g mathe $$ $ matical $$..... i want output
$ image processing processing of images using mathematical................................................... ..........................techniques input $$ please suggest me on how output these type of pdfs.
Comments
Post a Comment