Unplanned
Last Updated: 14 May 2020 15:43 by ADMIN
Brian
Created on: 14 May 2020 15:43
Category: PdfProcessing
Type: Bug Report
0
PdfProcessing: NullReferenceException is thrown when RecalculateContent is called of VariableContent widget with OpenTypeFont
When importing a VariableContent widget with OpenType font, which fails to read the post table of the font file, a NullReferenceException is thrown when the RecalculateContent() method is called.

Workaround: Change the widget font:

foreach (Widget widget in textBoxField.Widgets)
{
    widget.TextProperties.Font = FontsRepository.Helvetica;
    widget.RecalculateContent();
}
0 comments