I'm having a very odd issue when attempting to call a method from the Nuget Package IronPDF. Based on the symptoms and the fact that I can't find anyone else on the internet who has encountered this issue, I'm assuming it's not the package's fault.
Basically, whenever I call "HtmlToPdf.RenderHtmlAsPdf()" in a console app, everything works fine, but when I run it as a managed application through Revit 2018 (as an addin), the method freaks out and returns the following System.IO.IOException:
System.IO.IOException: 'Can not parse a PDF from an empty byte array.'
To me, it's 100% clear I'm correctly passing it a string in BOTH scenarios & the documentation clearly states that it takes only a string (IronPDF Documentation), but somehow it thinks it's receiving an empty byte array!!!!??? How weird!!!
If you know any reason why running a C# application as managed through an external application would cause strings to be read as byte arrays, please help!