Hi.
I'm using the DynamicPDF Converter (HTML to PDF) running in an AWS.Lambda function using .NET Core 3.1.
The HTML is generated using Razor pages.
The converter works fine, and even renders javascript generated charts correctly, however I always get some errors in the log output I don't understand.
The errors comes from the Converter.Convert(html, new Uri(resourcePath), options) method.
I use chromium as renderer with the following Process args: Converter.ChromiumProcessArgs += " --no-sandbox --headless --disable-gpu --disable-dev-shm-usage --single-process --no-zygote";
The errors I get (usally 6 lines) is:
[0118/110133.241749:INFO:CONSOLE(3)] "Uncaught ReferenceError: addRow is not defined", source: file:///opt/tmp/
The /opt/tmp directory is where the css and script folder is located.
I have tried several different solutions to fix this error, with no luck.
I appreciate any help with this, even if the solution creates PDF documents correctly.
Christer.