cancel
Showing results for 
Search instead for 
Did you mean: 

PDF to JPG/PNG convert with Blue Prism

Hello team,

Do we have any VBO available to convert PDF to Image formats(JPG/PNG)?

Or any DLL with code stage that you are aware of to perform this file conversion.


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

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

vinodchinthakin
Level 9

ewilson
Staff
Staff
@Tejaskumar_Darji,

I don't believe there are any assets on the DX that support this feature, but there is an open source library available on GitHub and Nuget called PDFiumSharp that could be used for this. There are even some examples in the GitHub project that show how to load a PDF and then convert it to what they call a PDFiumBitmap, which is really just a regular old BMP. You could create a regular .NET Bitmap instance from that PDFiumBitmap and then use the Save action and ImageFormat enum to save it as a PNG or JPEG.

https://github.com/ArgusMagnus/PDFiumSharp

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hello @ewilson ,

Please tell me more about PDFiumSharp.
The steps I tried are below:

  1. Download ZIP from Github
  2. Place the DLL in the same folder as Automate.exe
  3. Create VBO and write code stage

However, when I set the DLL in the VBO code option, a lot of errors occur and I cannot continue working.

Please let me know what is missing in my steps.

------------------------------
Mitsuko
Asia/Tokyo
------------------------------

@sumire which DLLs did you place in the Automate folder? Can you provide the exact names?

Cheers,

Eric

@ewilson 
pdfium_x86.dll and pdfium_x64.dll
These 2 items were included in pdfium.windows.1.0.0.nupkg.
I opened it with NuGet Package Explorer and got the 2 DLLs inside.
https://www.nuget.org/packages/PDFium.Windows/ 

------------------------------
Mitsuko
Asia/Tokyo
------------------------------

@sumire 

Which version of Blue Prism are you using? There are additional DLLs that the Pdfium DLLs rely on, so my guess is you're missing something there.

Cheers,

Eric

6.10.5 and 7.1.1.
I've tried both version, and it doesn't work.

------------------------------
Mitsuko
Asia/Tokyo
------------------------------

Tony011
Level 2

You can use an online tool like pdftopng to convert your PDF, and the output is excellent. 

Hello @Tony011 ,

Thanks for the suggestion.
I know a lot of online tools, I also know that their performance is excellent.
However, there are times in my business when I cannot use online tools (e.g. in a closed environment) , so I need a VBO.

------------------------------
Mitsuko
Asia/Tokyo
------------------------------