I have been using the below code for long time without having any issue.
// Load the PDF file to the PDDocument object
Thanks Shankar R
“You must expect great things from you, before you can do them”
Regards, Alex [Community Expert Group] ____ [Community Expert Group] members are not employed by SmartBear Software but are just volunteers who have some experience with the tools by SmartBear Software and a desire to help others. Postings made by [Community Expert Group] members may differ from the official policies of SmartBear Software and should be treated as the own private opinion of their authors and under no circumstances as an official answer from SmartBear Software. [Community Expert Group] signature is used with permission by SmartBear Software. http://smartbear.com/forums/f83/t86934/community-experts/ ================================
Under , Tools>current project properties>Java bridge, I have set the Java classes and Class path (see attached image below). Also, I reverted to an old version of pdfbox.jar (1.8.12) and unblocked the dll's as mentioned in another thread (see CLR Bridge properties attached image).
However, under Tools>options>Java Bridge, I have the Java Virtual Machine module location it set to: