Style sheet is not applied, images are missing, Javascript is not executed.

Enable debug logging with setDebugLog() to troubleshoot the cause. In general, our converter can't download external images, style sheets and Javascript if

  • Your API implementation uses convertFile...() or convertString...() family of API functions and your HTML document refers external assets using relative URLs.
  • If the external assets reside in your intranet or on your localhost.

Here are possible workarounds:

  • You can zip all external assets along with the HTML document and pass on the zip file to one of the convertFile...() API functions.
  • If the assets are accessible on the public Internet, you can refer to them using absolute URLs:
    <img src="https://example.com/images/image.png">
  • An alternative is to use relative URLs in a combination with the <base> element.