I use Flying Saucer to create a pdf file from xhtml hosted on a tomcat server. Most of the images included in pdf are publicly available (logos, etc.), but some of them are protected for registration (that is, they are transmitted through the servlet if the user is logged in).
When I insert the URL in the browser, the image, of course, is displayed in order, because the browser sends the session with the request. But when the Flying Saucer provides a pdf file, it does not include the protected image because it knows nothing about the session.
So my question is: is there a way to enable byte streams for the Flying Saucer to solve, just as you can add decidable fonts? I tried something like this , but there is no easy way to set UAC to ITextRenderer, and it complained every time I tried.
java pdf flying-saucer xhtmlrenderer resolve
Manisto
source share