PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

What is the correct way to place a picture.

Open Alexmitter opened this issue 7 years ago • 0 comments

I use the current PDFSharpCore from Nuget on Monodevelop targeting dotnet core 2.1. My question is how to place a picture in the pdf. Current way based on PDFSharp is:

DrawImage(graph, "whatever.gif", 730, 30, 72, 36);   

public static void DrawImage(XGraphics gfx, string jpegSamplePath, int x, int y, int width, int height)
{
            XImage image = XImage.FromFile(jpegSamplePath);
            gfx.DrawImage(image, x, y, width, height);
 }

How is this done in PDFSharpCore?

Alexmitter avatar Sep 21 '18 12:09 Alexmitter