cancel
Showing results for 
Search instead for 
Did you mean: 

Blue Prism PDF Toolkit

Frederic_Hubin
Level 2

Dear members

I'm a bit stuck in setting up the necessary configuration to use the BP PDF Toolkit. Would you be so kind as to point me in the direction of a solution, or at least a lead?

After installing the toolkit, I installed the Adobe library (Adobe.PDFServiceSDK.dll v 3.2.0.0) in the installation folder. I then created the .json file containing the Adobe credentials to interact with the API.

Then, with the error messages, I understood that there were dependencies for the Adobe library, so I installed in the same folder the following libraries:
- BouncyCastle.Crypto.dll v1.9.0.1
- jose-jwt.dll v4.1.0.0
- Newtonsoft.json.dll v12.0.3.23909
- Polly.dll v7.2.3.0
- RestSharp.dll v109.0.1.0
- UriTemplate.Core.dll v1.0.2.0
- System.ComponentModel.Annotations.dll v4.6.26515.6

(Framework version is v4.8.04084)

After running a short test (split of document), error message as follow:

>>>
Exception encountered while executing operation:System.IO.FileLoadException: Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.10.0, Culture=neutral, PublicKeyToken=0e99375e54769942' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'BouncyCastle.Crypto, Version=1.8.10.0, Culture=neutral, PublicKeyToken=0e99375e54769942'
   at Adobe.PDFServicesSDK.core.auth.JwtAuthenticator.CreateRSACryptoProvider()
   at Adobe.PDFServicesSDK.core.auth.JwtAuthenticator..ctor(ServiceAccountCredentialsWithUri serviceAccountCredentialsWithUri)
   at Adobe.PDFServicesSDK.core.auth.AuthenticatorFactory.GetAuthenticator(Credentials credentials)
   at Adobe.PDFServicesSDK.core.InternalExecutionContext..ctor(Credentials credentials, ClientConfig clientConfig)
   at Adobe.PDFServicesSDK.ExecutionContext.Create(Credentials credentials, ClientConfig clientConfig)
   at Blue_Prism___PDF_Toolkit.SplitByNumberofPages(String PDFFilePath, String OutputFilePath, Decimal SplitByPages, String CredentialsFilePath, String& ErrorMessage)
<<<

Any idea on how to deal with it?
Thanks a lot!
F.



------------------------------
Frédéric Hubin
------------------------------
1 BEST ANSWER

Best Answers

Mukeshh_k
MVP

Frédéric Hubin - There are issues with the versions of dependent dlls you are using - these dlls with upgrades can have different data and code - in order to ensure your code doesn't encounter errors - you would have to install the right version of dll which was used at the time of vbo coding. or the vbo coding has to be updated as per new dll. The dll you installed BouncyCastle.Crypto.dll v1.9.0.1 has version 1.9.0.1 and your code is looking for a lower version of this dll. 

For splitting the PDF basis on page index, page number there's another simple VBO - https://digitalexchange.blueprism.com/dx/entry/3439/solution/pdf-management-2

For splitting the PDF by identifying the text in the PDF and recording the page number/page index - here is the additional thread : https://community.blueprism.com/discussion/how-to-split-pdf-based-on-a-specific-format-of-string#bm1a94b3ff-6fec-4c8a-bf7a-018703605b8c



------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS England, United Kingdom, GB
------------------------------
Regards,

Mukesh Kumar

View answer in original post

2 REPLIES 2

Mukeshh_k
MVP

Frédéric Hubin - There are issues with the versions of dependent dlls you are using - these dlls with upgrades can have different data and code - in order to ensure your code doesn't encounter errors - you would have to install the right version of dll which was used at the time of vbo coding. or the vbo coding has to be updated as per new dll. The dll you installed BouncyCastle.Crypto.dll v1.9.0.1 has version 1.9.0.1 and your code is looking for a lower version of this dll. 

For splitting the PDF basis on page index, page number there's another simple VBO - https://digitalexchange.blueprism.com/dx/entry/3439/solution/pdf-management-2

For splitting the PDF by identifying the text in the PDF and recording the page number/page index - here is the additional thread : https://community.blueprism.com/discussion/how-to-split-pdf-based-on-a-specific-format-of-string#bm1a94b3ff-6fec-4c8a-bf7a-018703605b8c



------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS England, United Kingdom, GB
------------------------------
Regards,

Mukesh Kumar

Thanks a lot for the explanation, Kumar.



------------------------------
Frédéric Hubin
------------------------------