Hi we are using syncfusion PDF viewer, we are drawing string on top of pdf. Code is
public PdfLoadedDocument StampPDF(byte[] byteArray, string stampingName)
{
PdfLoadedDocument doc = new PdfLoadedDocument(byteArray);
//Get first page from document
PdfLoadedPage page = doc.Pages[0] as PdfLoadedPage;
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
//Set the standard font.
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10, PdfFontStyle.Bold);
//Draw the text.
graphics.DrawString(stampingName, font, PdfBrushes.Black, new PointF(0, 0));
//Save the document.
return doc;
}
writing text on first page, can you please tell me what we need to do so it will write and show same text in all pages if pdf have multiple pages.
Thanks