Is there a way to prevent font embedding in the RadFlow methodology or is utilizing RadFixed the only way to have a reasonably sized PDF document?
When a document has a list in it and the element containing it is cloned into another document, there is a key not found exception if you try to export the second document.
RadFlowDocument document = new RadFlowDocument(); if (tableDocument.Sections.First().Blocks.First() is Table workSheetTable) { Table clonedTable = workSheetTable.Clone(document); var newSection = document.Sections.AddSection(); newSection.Blocks.Add(clonedTable); } byte[] pdfBytes = pdfProvider.Export(document); byte[] docBytes = docxProvider.Export(document);
The Spacing Before property of the paragraph at the start of the page should not be respected if it is not the first one inside the current section.
Manually overriding the Spacing Before property would resolve the issue.
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);
Line spacing is not preserved when exporting RTF to HTML and the lines are exported with the default line spacing.
Updating a Table of Contents field with a custom TOC Style does not respect it.
As a workaround modify the style after the TOC fields are updated.