PDF to JPG/PNG convert with Blue Prism
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-06-22 03:37 PM
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-06-22 06:37 AM
1. You can have a look on some below threads
https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&MessageKey=f3bfb9bd-2bdb-44db-9992-9700031678fd&CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&tab=dig...
https://www.rpaforum.net/threads/pdf-to-image-convert.13244/
2. or just automate open source web tools for conversion like
https://www.ilovepdf.com/pdf_to_jpg
3. or use open source API's like
https://www.convertapi.com/pdf-to-jpg#snippet=csharp
------------------------------
vinod chinthakindi
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-06-22 08:12 PM
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-06-24 01:23 AM
Hello @ewilson ,
Please tell me more about PDFiumSharp.
The steps I tried are below:
- Download ZIP from Github
- Place the DLL in the same folder as Automate.exe
- 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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-06-24 03:24 PM
@sumire which DLLs did you place in the Automate folder? Can you provide the exact names?
Cheers,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-06-24 12:52 AM
@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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-06-24 01:04 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-06-24 12:52 AM
6.10.5 and 7.1.1.
I've tried both version, and it doesn't work.
Mitsuko
Asia/Tokyo
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-24 08:17 AM
You can use an online tool like pdftopng to convert your PDF, and the output is excellent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-24 08:39 AM
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
------------------------------
