Hello,
I have the same issue as in your Forum:
Stamp Won’t Apply to All Pages
Did you fix this problem?
My code is quite easy; I just want to add the text “COPY” to all the pages.
FileStream aFS = new FileStream(strfilename, FileMode.Open, FileAccess.Read);
MemoryStream aMS = new MemoryStream();
string strWatermark = ‘Copy’;
Stamp logoStamp = new Stamp();
logoStamp.Opacity = 0.5F;
FormattedText formatText = new FormattedText(strWatermark, System.Drawing.Color.FromArgb(33, 33, 33), "Arial", EncodingType.Winansi, false, 20);
logoStamp.SetOrigin(100, 75);
logoStamp.BindLogo(formatText);
PdfFileStamp aPFS = new PdfFileStamp(aFS, aMS);
aPFS.AddStamp(logoStamp);
//aPFS.AddHeader(formatText, 100);
aPFS.Close();
Thanks, best regards
Daniele