Forum Discussion
HKosova
Alumni
14 years agoHi Hoa,
The PDFBox library is a great find, thanks for sharing!
The message "Invalid procedure call or argument" is always shown at function pdfStripper["getText"](doc)
I guess, this error happens because your PDF is untagged, as your code works fine for me for tagged PDFs like this one. Or, your PDF might be encrypted - the getText method description says that it doesn't work with encrypted files.