I'm running the latest NuGet weekly package (184.108.40.206) and NET 7.0 on Debian Linux 11.6.
If I view the page that I'm trying to PDF through a browser everything works okay and well within the two second delay being allowed, (the response and changes to the page are almost instant).
My next step is to strip out the PDF and JS code into a standalone app to try and debug further but if anybody can confirm if Fetch is supported and if it is do I need to do anything different, it will save me quite a bit of work.
Currently, we are checking on this and we will update the further details on jan 10th 2023.
In the meantime, we request that you share the complete code snippet and what URL is being called in the fetch API, how it is rendered, and a screenshot of the issue.So that it will helpful for us.
Thanks for the reply, I've included a cut down version of the code I am using to generate the PDF to try and give you what you need without too much extra code that isn't related.
PDFController.cs contains the main function which creates a PDF from a web-based invoice page.
ViewInvoice.cshtml and ViewInvoice.cshtml.cs is the main section of code that can generate the same invoice in three different ways depending on whether a site admin, a client or the PDF generator is viewing an invoice.
If you need anything else, please let me know.
Thank you for sharing the details, it was very helpful for us to investigate on this. On our further analysis, the fetch API is supported in HTML to PDF conversion. We have ensured this with simple sample in our side. Please find the sample for your reference.
We suspect that the authentication of web api will be the root cause for this issue. So, can you by-pass the authentication for the conversion and try the conversion in your side to confirm the root cause. If authentication of the web api causing this issue, please share us the type of authentication used for the web api.
Our HTML to PDF converter supports, windows, forms and token based authentications, so please refer below UG links and try the conversion with respective authentication details.