I have an xhtml document that I convert to PDF using flyingsaucer. Xhtml has several tags that have base64 encoded images. The xhtml source is dynamic, so the structure in which image tags are subject to change. This is an example of what the tag looks like:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAagAAAEuCAYAAADbW4YFAAAgAElEQVR4Aex9CYBdRZ ...
When I look at the html in the browser, the image is displayed correctly, however the img element is not displayed in the final PDF file. This is how I create a PDF file.
ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(builder.parse(source), ""); renderer.layout(); renderer.createPDF(response.getOutputStream(),true);
Can someone tell me which approach should I take for this? I saw this post , however I use inline images, so I donβt see how I can do this using Edd's solution.
Thanks in advance
It grunt
source share