Skip to content

What is the correct way to place a picture. #23

@Alexmitter

Description

@Alexmitter

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions