We are trying to consume the aspose.pdf for formatting PDF documents and to print the formatted document from a Delphi project, and we’ve created a dot net com library which uses aspose.pdf to do so.
The dot net library works fine while unit testing (or) when consumed as a direct dll in another dot net project but when invoked via COM interop from a delphi project we are getting the stack overflow exception on call to few of the apose.pdf functions.
The following are the lines causing the issue-
When creating a TextStamp object
TextStamp textStamp = new TextStamp(" ");
On call to - pdfViewer.PrintDocumentWithSettings(…)
- This is verified with multiple machines and with different aspose.pdf versions like- 20.4, 20.1, 19.12, 19.10