Hi i have problem when add watermark in pdf file with thai language, show error “object reference not set to an instance of an object.”,But when i change to english language did’t show error.
My License :Aspose.Total 20.4.0
My Code:
public void InsertWaterMark(TextStamp stamp)
{
Document doc = new Document(@“C:\Temp\test.pdf”);
stamp = new TextStamp(“ทดสอบ”);
for (int i=1;i<=doc.Pages.Count;i++) {
doc.Pages[i].AddStamp(stamp);
}
}
Watermark Thai Error.jpg (171.0 KB)