Hi Christof,
On further analysis, we internally make use of the QtWebKit rendering engine for converting HTML to PDF. QtWebKit rendering engine preserves the output PDF document like how the input HTML file/URL is displayed on the WebKit based web browsers (safari, internal tool). The same behavior as replicates in our converter. Some URL sites are not loaded and other sites are missing styles in the browser itself. You can check these URL with Safari and internal tool, we have attached a screenshot of the webpage view in the safari browser for your reference.
Safari:
Steps to use the WebKit browser (internal tool):
- Download and Extract the browser from above link.
- Copy and Paste the fancybrowser.exe into QtBinariesWindows folder.
- Run the fancybrowser.exe.
- Browser window will open with default URL (www.google.com) and you can also modified the URL and check the web page behavior.
However, the provided HTML file is converted properly in our Blink rendering engine. The provided URL is rendered as expected in Blink conversion. Blink rendering engine internally using chrome headless browser for converting HTML to PDF. It will preserve the PDF document like how the input HTML is displayed in chromium based web browsers. Kindly please try our latest Blink rendering engine and let us know if it is suites your requirement.
We have attached the sample and output documents (WebKit and Blink) for your reference. Please find the sample and document from below link,
Note: Due to the GDI limitations and restriction of the Azure App service environment, the Blink rendering engine does not support conversion in Azure app service (Azure websites) and Azure function.
Please try the above suggestions in your end and let us know if you need any further assistance with this.
Regards,
Gowthamraj K