I'm using ABCpdf7 to create a pdf where I in some instances want to add a "watermark like" text to be shown on all pages in the document. Whenever I make the text unique on all pages, it works as expected, but if it's the same text on all pages, it ignores my alpha property.
I can't seem to use the objectID and reference that when it's not an image, and since the pdf is to be available in many different languages I'm afraid it's not possible to just create an image with the text and add that...
For instance, this works:
theDoc.HPos = 0;
theDoc.VPos = 0;
theDoc.Rect.SetRect(250, 265, 500, 80);
theDoc.Transform.Rotate(55, 250, 265);
theDoc.FontSize = 72;
theDoc.Color.String = "0 0 0 a70";
Page[] pages = theDoc.ObjectSoup.Catalog.Pages.GetPageArray();
foreach (Page p in pages)
{
theDoc.Page = p.ID;
var dummy = theDoc.PageNumber.ToString();
theDoc.AddText("Unpublished" + dummy);
}
...but this doesn't work:
theDoc.HPos = 0;
theDoc.VPos = 0;
theDoc.Rect.SetRect(250, 265, 500, 80);
theDoc.Transform.Rotate(55, 250, 265);
theDoc.FontSize = 72;
theDoc.Color.String = "0 0 0 a70";
Page[] pages = theDoc.ObjectSoup.Catalog.Pages.GetPageArray();
foreach (Page p in pages)
{
theDoc.Page = p.ID;
theDoc.AddText("Unpublished");
}
I feel like I'm missing something very obvious here, but can't seem to figure out what...