Closed siegelzc closed 8 months ago
> Using separate resources can be achieved by providing your own FSStreamFactory:
new PdfRendererBuilder() .useProtocolsStreamImplementation(new ClassPathStreamFactory(), "classpath") .withHtmlContent(htmlContent, "classpath:/html/") ... Full code can be found in this example project
new PdfRendererBuilder() .useProtocolsStreamImplementation(new ClassPathStreamFactory(), "classpath") .withHtmlContent(htmlContent, "classpath:/html/") ...
Full code can be found in this example project
Would be great if ClassPathStreamFactory could be added to this library!
Originally posted by @daniel-shuy in https://github.com/danfickle/openhtmltopdf/issues/146#issuecomment-1905725379
whoops didnt mean to create this
Would be great if ClassPathStreamFactory could be added to this library!
Originally posted by @daniel-shuy in https://github.com/danfickle/openhtmltopdf/issues/146#issuecomment-1905725379