Hi Aspose support,
One of our customers reported the problem with a watermark on the first page, after some research, we noticed that the problem appears only for a watermark on a first document’s page (no problems with other pages) and only when “Different First Page” option is enabled. And the problem reproduces only if save a document to Strict format, there is no problem with Transitional format.
The problem: Watermark object changes from WordArt to Shape with formatting loss.
See screenshot:
WatermarkIssue.png (76.1 KB)
Source document: Source.zip (16.3 KB)
Resulted document (with not expected behavior): ResultInStrict (not expected).zip (14.5 KB)
Code example:
private static void ConvertWord(string inputFile, string outputFile, string openPassword)
{
Aspose.Words.Document doc = new Aspose.Words.Document(inputFile,
new Aspose.Words.LoadOptions()
{
Password = !string.IsNullOrEmpty(openPassword) ? openPassword : null
});
doc.Unprotect();
Aspose.Words.Saving.OoxmlSaveOptions saveOptions = new Aspose.Words.Saving.OoxmlSaveOptions(Aspose.Words.SaveFormat.Docx);
saveOptions.Compliance = Aspose.Words.Saving.OoxmlCompliance.Iso29500_2008_Strict;
doc.Save(outputFile, saveOptions);
}
Used Aspose.Words.dll v 20.12
Expected result: Watermark on the first page should have the same look and fill like in the source document
Suggestion to save into Transitional format doesn’t accept, as we have to save into Strict format.
Could you take a look and correct the problem, please?