Search code examples
c#.netpdfsharp

How to draw a pixels on PDF page using PDFsharp?


I want to draw pixels on PDF files randomly. I am using PDFsharp to create a PDF file. But I didn't get pixel draw option in PDFsharp. Is there any way to draw a pixel on PDF file using PDFsharp?


Solution

  • PDF files do not have pixels (it's a vector format).

    You can draw lines, circles, rectangles - or add a bitmap that only contains a pixel.