Last Updated:
07 Sep 2026 10:48
by Mark
WordsProcessing: PdfFormatProvider: Export throws NullReferenceException after replacing text with HTML named anchors
PDF export fails after HTML blocks containing empty or named anchors are imported and inserted into a RadFlowDocument through ReplaceText.
HTML importer creates hyperlink field markers for <a name="...">. During block replacement, cloned FieldCharacter instances lose FieldInfo, leaving orphan field markers. PDF exporter later dereferences FieldInfo and throws a NullReferenceException.