Hello Vladimir,
your version does it: now I get the length correctly - thank you very much for the hint.
But: variable "text" will still be empty in Log window when trying to otput it like in (see attached screenshot how an odd tiny rectangle is showing there when hovering over with the mouse):
function foo()
{
var doc = JavaClasses.org_apache_pdfbox_pdmodel.PDDocument.load_3("C:\\temp\\TEST.pdf");
var pdfStripper = JavaClasses.org_apache_pdfbox_util.PDFTextStripper.newInstance();
var text = pdfStripper.getText_2(doc);
Log.Message(text.length());
Log.Message(text);
}
How can I actually see what is the value in the "text" varable?
Many thanks again,
Marin