Conflict with URL to PDF software

I've tested with several packages that render URL to a PDF and save to disk, and all of them cause IIS to hang. I went through my project line by line removing bits to see what the problem was.

When I remove this line
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
from the end of my main template, everything works fine!
When I leave that line in, IIS will hang and need restarting.

There is clearly some conflict between PDF creators and Radzen.

Has anyone else experienced this? I don't know how to solve the issue. Radzen control are used heavily in my project, and I need a URL to PDF creator and none of them work with Radzen!

Any tips gratefully received, I've already spent days and days on this.

Thanks v much

We use itext7 to generate invoices in PDF format without problems. Have not tried to download a web page however. Have you tried to download the webpage to a physical file before adding to pdf?