cancel
Showing results for 
Search instead for 
Did you mean: 

Converting PDF to PNG and cropping the PNG file

HongJooChoi
Staff
Staff
Hi, all.

Is there any free Business Objects provided by Blue Prism that can convert the PDF file to PNG file and/or cropping the PNG file?

or

Anyone knows any other ways to do that?



Best regards

------------------------------
HongJoo Choi
------------------------------
1 BEST ANSWER

Best Answers

Hi HongJoo,

You can use the Pdf2Png nuget from https://www.nuget.org/packages/Pdf2Png/ in a code stage to do the conversion. There is also a blog post about using Nuget with Blue Prism. 

https://community.blueprism.com/blogs/geoff-hirst/2022/03/14/using-nuget-with-blue-prism?CommunityKey=1e516cfe-4d1f-4de9-a9eb-58d15bf38c81

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

View answer in original post

10 REPLIES 10

Hi HongJoo,

You can use the Pdf2Png nuget from https://www.nuget.org/packages/Pdf2Png/ in a code stage to do the conversion. There is also a blog post about using Nuget with Blue Prism. 

https://community.blueprism.com/blogs/geoff-hirst/2022/03/14/using-nuget-with-blue-prism?CommunityKey=1e516cfe-4d1f-4de9-a9eb-58d15bf38c81

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

I tried this and it worked very fine.

Adding screenshot here for refernce if someone needs it.
8658.png8659.png8660.png8661.png

------------------------------
Thanks & Regards,
Tejaskumar Darji
Sr. RPA Consultant-Automation Developer
------------------------------

However it can not convert those PDF which uses latest Adobe PDF structure after Acrobat 6 version.

PDFs which you can not merge/manipulate using open source libraries won't work with this PDF to PNG solution is my best assumption.

Other PDFs are easily getting converted to PNG using this solution.

Thanks @shashank.kumar280 for sharing this knowledge base here.

------------------------------
Thanks & Regards,
Tejaskumar Darji
Sr. RPA Consultant-Automation Developer
------------------------------

Thanks @shashank.kumar280 for sharing this knowledge base here.

Thanks
Nilesh


------------------------------
Nilesh Jadhav
Senior RPA Specialist
ADP
India
------------------------------
Nilesh Jadhav.
Consultant
ADP,India

@Tejaskumar_Darji

Thanks for sharing the limitations. On other note, you can post the asset on DX if you want to so the community can make use of it.

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Oh that sound great. Can you help me with the steps how can an individual user post asset on DX and what is the procedure? I was under impression that only organizations are allowed and not individuals.

------------------------------
Thanks & Regards,
Tejaskumar Darji
Sr. RPA Consultant-Automation Developer
------------------------------

 

If someone stumbles upon the below error while configuring this file conversion
8674.png
then rename your code stage to something different than what was shown in the above images and it will work.
8675.png

------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------

Hi Tejas - I am seeing the below error when i run the code:

"Access to gsdll32.dll' is denied". Any inputs on how to resolve this.? Is this simply a permission/access issue? 

Thanks!



------------------------------
Maneesh Vemula
------------------------------