Saving PDF's

Bryn.Clegg

New Member
I have a process that includes editing and saving a PDF. My automation saves the PDF in Acrobat by entering folder path & file name & pressing save, the PDF saves as a 0kb .pdf file. Here's the error:
"Adobe could not open FILE.pdf because it is either not a supported file type or because the file has been damaged..."


If I try saving the file manually it works fine.

Please bring to light other methods/code stages that can solve this.
 

anisjolly

Administrator
Hi Bryn

Are you you stamping the PDF using Blue Prism or are you interacting with UI like Acrobat for example? Are you using something like iTextsharp to create your PDFs?

If not, you might want to download the Core iTextsharp DLLs and use them in your object. The following screenshot provides an example of the code you can use to "stamp" the PDF with the data - this should work perfectly as this is the method I use to create PDFs.

If you need further help - do reach out!

1512552185706.png
 
Top