import { PDFPage, rgb } from "pdf-lib";

export function addCheckMark(page: PDFPage, x: number, y: number) {
	page.drawSvgPath(
		`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg>`,
		{
			x,
			y,
			scale: 0.4,
			color: rgb(0, 0, 0),
		}
	);
}
