Posted by a ceTe Software moderator
Hello,
Overprint can be achieved with the help of
TransparencyGroup.
The sample code below shows how to use a TextArea page element with TransparencyGroup class but you can add any page element to a TransparencyGroup.
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
TextArea txtarea = new TextArea("W W", 100, 290, 600, 400, Font.Helvetica,100);
page.Elements.Add(txtarea);
TextArea txtareaOverlap = new TextArea("F F", 150, 300, 400, 400, Font.Helvetica,100, RgbColor.Red);
//Create a TrasperanceGroup.
TransparencyGroup group = new TransparencyGroup(0.4F);
group.Add(txtareaOverlap);
page.Elements.Add(group);
document.Draw(@"C:\Temp\MyDocument.pdf");
Thanks,
ceTe Software Support Team.