I have a situation where I want to generate a PDF of a report that has some images embedded inside of it. The trick is that these images are encrypted and stored on amazon. So, we have a bit of code that pulls it down and decrypts (and also does some other minor postprocessing), and it works just fine when sending to a browser.
However, the only way I know of (I'm sure this is more due to my ignorance than anything) to get Prince to run on an image is to include it from an HTML <img> tag or from CSS: url. These both seem to want to accept absolute file paths as parameters, and that makes it a bit clunky to work with when the image is dynamically generated. Is there any way to include the image content directly into the HTML?
About formats, the generated image can be in any format really, since it's dynamic, so I'm a bit flexible there. The only thing its that it is NOT a vector based image, so SVG seems to be a no-go.
However, the only way I know of (I'm sure this is more due to my ignorance than anything) to get Prince to run on an image is to include it from an HTML <img> tag or from CSS: url. These both seem to want to accept absolute file paths as parameters, and that makes it a bit clunky to work with when the image is dynamically generated. Is there any way to include the image content directly into the HTML?
About formats, the generated image can be in any format really, since it's dynamic, so I'm a bit flexible there. The only thing its that it is NOT a vector based image, so SVG seems to be a no-go.