PdfSharp PdfReader.Open problem

Hello, I need to split pdf pages into different pdf files and I found PdfSharp library, I imported it into uipath and I can create pdf files, but when I try to read I get an error:
error

My code:

I tried to delete parts of code and found that there is no error when I don’t use inputDocument. Any help would be appreciated.

Try reading PDF by provide page number in input range and write to files

I found what was wrong, i had to set OpenMode to Import

import

2 Likes

Hi Timber, can you please advise on how to import the PDFSharp library into UiPath Studio? Thanks!

Hi @Timber,

Could you please advise on how to import the PDFSharp library? I would like to use this for the project that am working on. Appreciate your response. Thanks!

Dear @Timber

Thanks for all your contributions!
Can you post an example workflow with this method?