Hi -
I'm playing with the PdfExporter.Export() method and trying to get a feel for how I could stream the exported PDF to the client's browser. The current method signature is:
void Export(Diagram diagram, string filePath)
I do not find it very flexible as it only provides a mechanism to store the exported PDF to a location on the web server. Hence, if I wanted to get this PDF back to the user's browser, I would have to:
- Store the PDF on the web server
- Then put in a buffer and stream that to the user
- Delete the PDF from the web server (I would not want to clutter the directory with unnecessary/temp files)
Are there any plans to add an overload to the export API? Something along the lines of:
byte[] Export(Diagram diagram)
Also - do you guys support
SVG Image Response when ClientSideMode="ImageMap"? From your documentation:
Quote:To choose the format of the diagram image generated by NetDiagram, set the ImageFormat property to the respective image MIME type (the default is image/jpeg).
So, when I set ImageFormat="image/svg+xml", nothing gets rendered telling me that SVG MIME type/image response is not supported - is that correct?
Many thanks!