I'm using conversation options to set header and footer and when my data overflow from one page to extra page. Header and footer are coming twice. Any solution to stop it?
Demo code:-
ConversationOptions option=new ConversationOptions(Page.A4,pageorientation.portrait,0,120){
Header=some_string;
Footer=some_string;
}
Converter.convert(source,Uri(someUrl),options);
Repeating header and footer
Re: Repeating header and footer
Support · Jun 21, 2021Hello,
We tested this on our end using the DynamicPDF HTML Converter product using below code sample and unable to recreate the behavior.
ConversionOptions option = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 50);
option.Header = @"<div style='width:100%;text-align:center; font-size:12pt;'> Some Text </div>";
option.Footer = @"<div style='width:100%;text-align:center; font-size:12pt;'> Some Text </div>";
Uri source = new Uri("http://www.dynamicpdf.com");
Converter.Convert(source, @"Path to save converted PDF", option);
If you continue having an issue, please send over the following information to support@dynamicpdf.com so we can look into it further.
1. Code sample or simple console application which uses static data to recreate the behavior.
2. HTML file or URL you are using.
3. Output PDF.
4. Exact version and build number of the DynamicPDF product DLL file used in your application. You can find this information by right clicking on the DynamicPDF product DLL file>>Properties>>Details tab>>Product version. Take a screenshot of Details tab and send it over to us.
Thanks,
ceTe Software Support Team