Is it possible to specify overprint for a PageElement.TextArea?
Overprint
Re: Overprint
Support · Jul 1, 2016Hello,
There is no direct property of method in DynamicPDF API using which you can specify the overprint for the TextArea page element. You will need to add the TextArea page element to the TransparencyGroup by specifying the desired level of transparency. Add this TransparencyGroup page element to the page. You can refer to the documentation on TransparencyGroup page element here
. Below is the code sample.
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");
If the above suggestions do not meet your requirement then please send over more details regarding your requirements and also tell us what you would like to achieve using DynamicPDF product so we can look into it further.
Thanks,
ceTe Software Support Team.