Aspose. PDF c++threw an exception when calling 'AddStamp'. 'System:: NullReferenceException: Object reference not set to an instance of an object'

HI,I triggered an exception when adding a stamp to a PDF in a new Linux system. The same interface is feasible under Windows. What is the problem? The code is as follows:

auto pdfDocument = MakeObject( u"500KB.pdf");
auto textStamp = MakeObject(u"aaa");
textStamp->set_XIndent(175);
textStamp->set_YIndent(300);
textStamp->get_TextState()->set_Font(FontRepository::FindFont(u"SimSun"));
textStamp->get_TextState()->set_FontSize(72);

pdfDocument->get_Pages()->idx_get(1)->AddStamp(textStamp);
pdfDocument->Save(u"1.pdf", SaveFormat::Pdf);

I hope to receive your guidance。Thanks

@houxinggangDS

Please make sure that all Windows fonts are installed correctly in Linux system. You can try install msttcorefonts package and see if it resolves the issue.