Hello Aspose Support, I tried to used your example of setting up Aspose Watermarks but this split the Text(“Draft” word in this case) into two page causing a collapse of the page.
Here is the code I used:
public static void GetDocumentDraft(string language)
{
var license = new Aspose.Words.License();
license.SetLicense(AppSettingKey.asposeLicense);
if (language != "en")
{
Document doc = new Document(@"C:\Documents\document.docx");
TextWatermarkOptions options = new TextWatermarkOptions()
{
FontFamily = "Courier New Bold",
FontSize = 30, // reduce font size to 20
Color = Color.Black,
Layout = WatermarkLayout.Diagonal,
IsSemitrasparent = true
};
doc.Watermark.SetText("DRAFT", options);
// Save the result.
doc.Save(@"C:\Documents\document.pdf");
}
}
I upload some examples of the issue using the Set.text (“Draft”) and without it :
TEST.docx (20.7 KB)
DocumentTestDraft.pdf (45.3 KB)
DocumentWithoutWaterMark.pdf (39.6 KB)
Its should be in one page but for some reason when I add the Draft word is collapse and split in two pages, I already tried to lower the Font Size