Forum Discussion
Hi,
I am using the function suggested by you but in JScript
function Testpdf()
{
var strFileName = "D:\\PDFCompare\\1.pdf";
var doc = dotNET.org_apache_pdfbox_pdmodel.PDDocument.load(strFileName);
var pdfStripper = dotNET.org_apache_pdfbox_util.PDFTextStripper.zctor_2();
var str = pdfStripper.getText_2(doc);
Log.Message("See Additional Info", str);
}
here I am getting error for :
var str = pdfStripper.getText_2(doc);
Error Message:
java.io.IOException
Please find the attachment for details
The Issue is solved.
Problem was with 'PDF file' it was secured.
I tried with a different PDF which was not secured and It worked without any Problem.
- m_essaid10 years agoValued Contributor
Hi,
Great,
Read my previous code, I had the issue with a secured pdf with an empty password. It take the protection over.
- AMITESH10 years agoContributor
Yes, I checked your Code to access Secured PDF , It works and it is useful.
Thanks
- m_essaid10 years agoValued Contributor
you're welcome
I knew this clue with downloaded dlls but I forgot it ! That's nice to be remembered about this.