I'm using DynamicPDF v7.0.1 (Demo).
My requirement is if I add a new text as Header/Footer(Right Center Left) in the existing PDF document,it should not overlap the existing PDF content in case if the exisiting text is very close to Header/Footer area. Automatically it should adjust the text and show the content without any overlapping.
Code below:
MergeDocument document = new MergeDocument(@"C:\Sample.pdf");
// Create a transparency group and add a rectangle to it
TransparencyGroup group = new TransparencyGroup(0.5f);
group.Add(new ceTe.DynamicPDF.PageElements.Rectangle(50, 0, 100, 100, RgbColor.Red, RgbColor.Red));
foreach (Page page in document.Pages)
{
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label("TOP Left Text", 0, 0, 512, 12));
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label("TOP Center Text", 300, 0, 512, 12));
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label("TOP Right Text", 500, 0, 512, 12));
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label("Bottom Left Text", 10, 770, 512, 12));
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label("Bottom Center Text", 250, 770, 512, 12));
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label("Bottom Right Text", 500, 770, 512, 12));
page.Elements.Add(group);
}
//Page page = document.Pages[0];
// Add the transparency group to the page
document.Draw(@"C:\MyDocument.pdf");
I have not seen any option to attach the sample files...