Hi,
In our application we work on many documents.
For source document we add hellopage as start page then copy header footers of source document to destination document.
In one document after adding hellopage and copying headers footers from source to destination, in destination document in footer extra spaces are coming.
I have attatched my input and output and expected document for your reference.
The code which i am using for getting footer text is
foreach (Section se in doc.Sections)
{
primary = se.HeadersFooters[HeaderFooterType.FooterPrimary];
if (primary != null)
x = primary.GetText();
}
the code for setting footer text is
if (footerinfo[footerType] != null)
{
if (footerType.ToLower() == "primary")
builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary);
Builder.write(x);
}
Kindly help me to solve this issue.