33
Views
1
Comments
[PDF Manipulation Utils] ReaderContext parameter
Question
pdf-manipulation-utils
Web icon
Forge asset by Gonçalo Martins

What do I pass in to ReaderContext parameter? I am trying to use Reader_GetNumberOfPages and I tried to pass in ToObject(Binary) into this parameter but I got this ErrorMessage in the output: 

Exception: Unable to cast object of type 'System.Byte[]' to type 'OutSystems.NssPdf_Manipulation_Utils.PdfReaderContext'.
StackTrace:
   at OutSystems.NssPdf_Manipulation_Utils.CssPdf_Manipulation_Utils.MssReader_GetNumberOfPages(Object ssReaderContext, Int32& ssNumberOfPages, String& ssErrorMsg)

2024-02-16 07-43-18
Amit Verma

Herman Hartoyo wrote:

What do I pass in to ReaderContext parameter? I am trying to use Reader_GetNumberOfPages and I tried to pass in ToObject(Binary) into this parameter but I got this ErrorMessage in the output: 

Exception: Unable to cast object of type 'System.Byte[]' to type 'OutSystems.NssPdf_Manipulation_Utils.PdfReaderContext'.
StackTrace:
   at OutSystems.NssPdf_Manipulation_Utils.CssPdf_Manipulation_Utils.MssReader_GetNumberOfPages(Object ssReaderContext, Int32& ssNumberOfPages, String& ssErrorMsg)

Hi Herman,

I found one component in forge related to PDF Manipulation, please try....

https://www.outsystems.com/forge/component/3152/pdf-manipulation/?Unfollow=False

Please let me know if you need any help from my side.

Hope this helps !!!

Best Regards,

Amit Verma







Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.