Hi Aspose support,
Recently we faced with the issue when a Watermark image/shape is missed from Word document when re-save document.
Actually, after further research we were able to find it in document through the Select Panel in Word - the image has very small size, that’s why we don’t see it. Take a look on settings: MissedWaterMarkSize.png (92.6 KB)
Main precondition here is that the issue happens for scaled in 500% watermark, for 200% all works ok and looks like for other as well (needs to be double checked).
Reproduced with Aspose.Words.dll v19.8.
Source document: Watermark Picture 500%.zip (47.1 KB)
Problematic document: Watermark Picture 500%_Resaved.zip (43.7 KB)
Expected result: Watermark should stay with the same settings in resulted document.
Source code:
public static void SaveDocument(string inputFile, string outputFile, string openPassword)
{
Document doc = new Document(inputFile, new Aspose.Words.LoadOptions() { Password = !string.IsNullOrEmpty(openPassword) ? openPassword : null });
doc.Unprotect();
doc.Save(outputFile, SaveFormat.Docx);
return;
}
The issue is very critical for us, as for end-user it looks like content is missed.
Please help.
Thanks.