Error Opening PDF after Download
I have a pdf that I am downloading: https://campaigns.documatix.com/campaign/imagelib/Reun2/branch100.pdf
If I go to the site and save it, I can open it.
When I use screen scraper, it saves a file.
I get an error saying it's in the wrong format, and I can't open it.
This is what I am running:
if( session.getVariable("DOWNLOAD_PATH") == null)session.setVariable( "DOWNLOAD_PATH", "c:\\ScrapeWork\\Reunion.pdf" );
session.downloadFile("https://campaigns.documatix.com/campaign/imagelib/Reun2/branch100.pdf", session.getVariable("DOWNLOAD_PATH"));
session.downloadFile("https://campaigns.documatix.com/campaign/imagelib/Reun2/branch100.pdf", session.getVariable("DOWNLOAD_PATH"));
Thanks.
Bart
I saw the same thing, though
I saw the same thing, though I would expect session.downloadFile to work.
I did get it to work by making a scarapeableFile that requested "https://campaigns.documatix.com/campaign/imagelib/Reun2/branch100.pdf" and used scrapeableFile.saveFileOnRequest and it worked.