0

With EvoPdf you can convert a HTML stream to a PDF with various overloads of the HtmlToPdfConverter.ConvertHtmlStream method. Now you have to pass a baseUrl parameter to resolve external resources (css, images, etc.).

My question now is whether there is a way to convert a HTML stream to a PDF without the requirement of having a web-server running serving for example the css and images that are external resources of the given HTML document.

I am looking for a way to convert a HTML document with external resources to a PDF without the need of running a web-server. Can I somehow intercept the web requests of the HtmlToPdfConverter instance an handle the request myself to ship the required external resources? (A concept similar to CefResourceHandler in CEF).

Is there a way to achieve this with EvoPdf?

Edit: Ideally not with writing the files to the local file-system (the URLS are relative to the HTML document).

Sjoerd222888
  • 3,228
  • 3
  • 31
  • 64

0 Answers0