Pdf Generation with PdfGenerator

I use inline images - using data urls that are the base 64 image data. See data URI scheme - Wikipedia if you are not familiar with them.
It avoids having the images served from somewhere and network latency when you invoke wkhtmltopdf. Just use an onlooker be resource to convert an image to base 64 as a data url. And then insert that into the html content (as in paste into your source content).