java - PDF contains text, but ITextPDF dont see it -


i have problem getting text pdf.

i use library com.itextpdf in version 5.0.6

link pdf: http://sendfile.pl/pobierz/351149---hdwe.html

        try {             pdfreader reader = new pdfreader("c:\\users\\lukas\\desktop\\test.pdf");             int n = reader.getnumberofpages(); // prints 1             string str= pdftextextractor.gettextfrompage(reader, 1);             system.out.println(str);             reader.close();         }         catch (exception e) {             system.out.println(e);         } 

variable str have specific square.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -