Open selvam920 opened 1 year ago
QR codes are not a native PDF element, however you could create one with an image or a Skia library such as SkiaSharp.QrCode
What about dotted line?
What about dotted line?
This implementation allows to draw dotted lines by directly using the SkiaSharp library 😁
.Canvas((canvas, space) =>
{
// best to statically cache
using var paint = new SKPaint
{
StrokeWidth = space.Height,
PathEffect = SKPathEffect.CreateDash(new float[] { 1, 3 }, 0)
};
canvas.DrawLine(0, 0, space.Width, 0, paint);
});
How to create dotted lines? How to create QR Code?