is there a way to replace text with a Checkbox in a PDF using Spire.PDF ?
Basically it would be similar to this acticle which describes the same thing using Spire.Doc:
replace-text-with-checkbox-t7311.html
So in the PDF there would be several placeholders ("X") where I need to insert a Checkbox, similar to this:
- Code: Select all
X Insert signature
X Insert image
X Print after save
I can find the "X" - but how could I replace them with a Checkbox ?
- Code: Select all
PdfDocument pdf = new PdfDocument(@"c:\temp\test.pdf");
PdfTextFind[] result = null;
foreach (PdfPageBase page in pdf.Pages)
{
result = page.FindText("X").Finds;
foreach (PdfTextFind find in result)
{
//Replace "X" with Checkbox here
}
}
pdf.SaveToFile(@"c:\temp\test_with_Checkboxes.pdf");
Thank you