I would like to insert a gantt inside an automatically generated PDF (using sharpPDF).
My current solution is to gantt.PrintPage() into a bitmap-backed System.Drawing.Graphics. Then insert this bitmap inside the PDF. It works but it’s bitmap based, so it’s quite ugly when zooming.
Is there a way to divert the call to the Graphics object into a specially crafted “VirtualGraphics” that would act as a proxy (glue layer) to the PDF library ?
Or is there an other solution that could be able to insert a vectorized version of GTP inside a PDF without any user interaction ?
You can do exactly as you do now, but use a MetaFile instead of a Bitmap. Metafile (saves as wmf or emf) is vector based and you can think of it as the “microsoft-postscript-implementation”. Meta file sample found here