Aspose.pdf Watermark Thai language

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)

@sorawee

We were able to reproduce the issue in our environment while testing the scenario with Aspose.PDF for .NET 20.7. Therefore, an issue as PDFNET-48574 has been logged in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

1 Like

The issues you have found earlier (filed as PDFNET-48574) have been fixed in Aspose.PDF for .NET 20.12.