We are in the process of determining if we will be able to use Aspose.Pdf for our project.
We are working on converting an HTML page to PDF. This is a MVC .NET page that is rendered dynamically and loaded with data. We then want to get the HTML from this view after it is rendered, save it to a stream, then convert the stream to PDF. I see that Aspose.Pdf can do this.
Here's my question:
We have charts that are loaded/created dynamically in our view. When we export these charts, we save them as SVG to a stream and then download the file from the stream to the user's machine.
What's the best way to get these images from the rendered view to the converted PDF without having to predefine them or having them saved on disk?
We saw this example: http://www.aspose.com/docs/display/pdfnet/Convert+HTML+to+PDF+-+Resource+Loading+Callback
That example reads the image as bytes but it does so from a "predefined" image saved on disk. Can this image replacement be done from a stream?
Can the replacement be done to multiple images inside the same document? In other words, if i have multiple images in my rendered view, can Aspose.Pdf replace them with images on the PDF?
What do you recommend?
Thanks in advance,