Forum Discussion
As I am using Java Classes.
I added 'pdfbox-app-2.0.0-RC3.jar'
and all the required 'java classes'
org.apache.pdfbox.pdmodel.PDDocument
org.apache.pdfbox.util.PDFTextStripper
javax.imageio.ImageIO
java.io.File
as sugested here:
https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete/
if you want to use dot net classes I could show you how to make this working
- AMITESH9 years agoContributor
Sure I can try using use dot net classes.
Can you please guide me through the steps required
- m_essaid9 years agoValued Contributor
get dlls here
http://www.squarepdf.net/pdfbox-in-net
(I have about 37 dlls in my folder it could change I didn't check last update)
Tools\CurrentProjectProperties\CLDBridge\Browse Files then add all the dlls
Then, for example, to get all PDF test in a TestComplete's Message : (delphi script)
strFileName:= ChooseYourFile;
doc:= dotNET.org_apache_pdfbox_pdmodel.PDDocument.load(strFileName);
if (doc.isEncrypted()) then
begin
doc.decrypt('');
doc.setAllSecurityToBeRemoved(true);
end;
pdfStripper:= dotNET.org_apache_pdfbox_util.PDFTextStripper.zctor_2();
str:= pdfStripper.getText_2(doc);
Log.Message('See Additional Info ', str);I hope it will work
- AMITESH9 years agoContributor
I tried the steps provided by you.
for 'dotNET.org_apache_pdfbox_pdmodel.PDDocument.load(strFileName)'
I am getting error 'org_apache_pdfbox_pdmodel.PDDocument' is null or not an object
I checked it and I see that undet dotNET , 'org_apache_pdfbox_pdmodel' is not getting listed
Related Content
- 8 years ago
- 12 years ago
Recent Discussions
- 5 days ago
- 5 days ago