Overprint?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for .NET (v9.x)  /  Display Thread

DynamicPDF Merger for .NET (v9.x) Forum

 Mar 16 2018 5:55 AM
Any plans for setting textarea or label (or other elements) as overprint?
 Mar 16 2018 3:45 PM
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.

All times are US Eastern Standard time. The time now is 8:09 AM.