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