Hi,
we're using Aspose.Words .NET 11.8.1 to convert a document to PNG. For internal reasons we convert that document to a RTF before saving it as a PNG. So the conversion goes like this: doc -> rtf -> png.
The code to test this looks like this:
private static void TestRender(string docFile)
{
Document doc = new Document(docFile);
//convert DOC to PNG
doc.Save(docFile + "_fromDoc.png", SaveFormat.Png);
//convert document to RTF
using (MemoryStream ms = new MemoryStream())
{
doc.Save(ms, SaveFormat.Rtf);
ms.Position = 0;
doc = new Document(ms);
}
//convert RTF to PNG
doc.Save(docFile + "_fromRtf.png", SaveFormat.Png);
return;
}
The outcome png for the DOC -> PNG conversion is fine. Yet the second PNG from the RTF document contain an additional character - a little box.
Could you please verify if thats due to some RTF specifications or if its an issue within Aspose.Words itself.
I attached the file used as an input as well as the two different result pngs.
Thanks for your support,
Oliver