Unplanned
Last Updated: 03 May 2023 12:29 by Michael
Michael
Created on: 03 May 2023 12:29
Category: WordsProcessing
Type: Bug Report
1
WordsProcessing: PdfFormatProvider: First Footer of a section overrides the First Footer of another section after merge

First Footer of a section overrides the First Footer of another section after the merge. After merging 'Parent' document (with a different First Footer which is empty) with 'Child' document (with explicitly set First Footer), the First Footer of 'Child' overrides the First Footer of 'Parent' after PDF export.

Workaround 1: Disable 'Child' document's 'HasDifferentFirstPageHeaderFooter' and clear its First Footer's value:

Telerik.Windows.Documents.Flow.Model.Section section = child.Sections.First();
section.HasDifferentFirstPageHeaderFooter = false;
section.Footers.First.Blocks.Clear();
Workaround 2: Keep 'HasDifferentFirstPageHeaderFooter' of the 'Child' document as it is, and set the FIrst Footer of the 'Parent' document explicitly:
parent.Sections.First().Footers.Add(HeaderFooterType.First);
0 comments