Watermark not support thai Language When save to pdf

i’m try to add watermark to existing document and save to doc, it fine but when i save to pdf is not show vowel
I use this code C#

public Shape Watermark(Document doc) {
            string text = @"สำเนา";
            Shape watermark = new Shape(doc, ShapeType.TextPlainText);
            watermark.TextPath.Text = text;
            watermark.TextPath.Bold = false;
            watermark.Stroked = false;
            watermark.FillColor = Color.Black;
            watermark.Fill.Color = Color.Black;
            watermark.WrapType = WrapType.None;
            watermark.Fill.Opacity = 0.3;
            watermark.AlternativeText =text;
            watermark.TextPath.FontFamily = "TH Sarabun New";
            watermark.Width = 500;
            watermark.Height = 100;
            watermark.Rotation = -40;
            watermark.RelativeHorizontalPosition = RelativeHorizontalPosition.Page;
            watermark.RelativeVerticalPosition = RelativeVerticalPosition.Page;
            watermark.VerticalAlignment = VerticalAlignment.Center;
            watermark.HorizontalAlignment = HorizontalAlignment.Center;
            return watermark;
        }

 public void AddWatermark(Shape watermark) {
            InsertWatermark insert = new InsertWatermark();
            Paragraph paragraph = new Paragraph(doc);
            paragraph.AppendChild(watermark);

            foreach (Section sect in doc.Sections)
            {
                insert.InsertWatermarkIntoHeader(paragraph, sect, HeaderFooterType.HeaderPrimary);
                insert.InsertWatermarkIntoHeader(paragraph, sect, HeaderFooterType.HeaderFirst);
                insert.InsertWatermarkIntoHeader(paragraph, sect, HeaderFooterType.HeaderEven);
            }
        }
public void SaveToFile(string pathOutputFile)
        {
            doc.Save(pathOutputFile);
        }

when isave to .pdf
Capture.PNG (34.7 KB)
When i save to .doc
Capture1.PNG (18.0 KB)

@Smilecat,

To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document
  • Aspose.Words 19.4 generated output Word document showing the correct behavior
  • Aspose.Words 19.4 generated output PDF file showing the undesired behavior
  • Thai Font file used in the Word document
  • Please also create a simplified standalone console application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words DLL files in it to reduce the file size.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

This is my resource
I can’t upload in this comment but i attach link to dowload it.
https://drive.google.com/file/d/1NvEiTROS-tt1KFVMj4h2J0nRPk3F-Si7/view

@Smilecat,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-18497. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

1 Like

The issues you have found earlier (filed as WORDSNET-18497) have been fixed in this Aspose.Words for .NET 19.6 update and this Aspose.Words for Java 19.6 update.