Negating the minimum value of a twos complement number is invalid

Hello,

Is there a limit on the amount of data that can be converted from a web page to PDF?

I am trying to write a MemoryStream to a new PDF document that has a Capacity of 525824 and a Length of 356536 and when I try to execute this line:

Dim pdfDocument As Document = New Document(memoryStream, options)

I receive this error:
Negating the minimum value of a twos complement number is invalid.

@softwarelicense_aixgroup_com

There is no such limit in the API in terms of content length. However, would you please share a complete sample code snippet which we can test and try to replicate the issue at our side. We will further share our feedback with you accordingly.