I want to insert a vector image in a pdf file but instead of using the original resolution I want to scale it down to a different size. I have this code based on the documentation.
PdfDocument doc = new PdfDocument();
PdfPage page = doc.Pages.Add();
PdfGraphics graphics = page.Graphics;
PdfMetafile metaChart = new PdfMetafile("BoxOk.emf");
PointF drawingCoordinates = new PointF(0, 0);
metaChart.Draw(page, new RectangleF(drawingCoordinates.X, drawingCoordinates.Y + 2, 12, 12));
The result however is a 51 page pdf with a small 12 by 12 part of the image on each page. What I need is the complete image scaled down to 12 by 12 only on the first page.
How can this be achieved?