Corrected behavior for case, when Style wants to set a property, which does not exist.
The following code could produce a NullReferenceException:
<Style Target="p" Name="Heading">
<Setters Format.FontSize="12"/>
</Style>
because variable propInfo
is null in PdfXmlReader.SetPropertyFromAttribute (FontSize should be Font.Size).
Added code in PdfXmlReader which handles this case.
I added this case in the if/else block on line 370. I am not sure if this is the best place to handle this.
Best regards, Simon