Pdfstamper
for (int pageIndex = 1; pageIndex <= pageCount; pageIndex++) { iTextSharp.text.Rectangle pageRectangle = reader.GetPageSizeWithRotation(pageIndex); PdfContentByte pdfData = stamper.GetUnderContent(pageIndex); pdfData.SetFontAndSize(BaseFont.CreateFont(BaseFont.HELVETICA BaseFont.CP1252 BaseFont.NOT_EMBEDDED) watermarkFontSize); PdfGState graphicsState = new PdfGState(); graphicsState.FillOpacity = watermarkFontOpacity; pdfData.SetGState(graphicsState); pdfData.SetColorFill(iTextSharp.text.BaseColor.BLACK); pdfData.BeginText(); pdfData.ShowTextAligned(PdfContentByte.ALIGN_CENTER "LipikaChatterjee" pageRectangle.Width / 2 pageRectangle.Height / 2 watermarkRotation); pdfData.EndText(); }
iTextSharp
iText
OCGRemover
iTextsharp
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)