We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

DOC/docx to SVG conversion leads to formatting issues

Hello ,

We have tried some different files recently with a direct conversion from words to svg and we have noticed strange red lines in our text. We are using the trial version so we are unsure if the watermark is causing the issues.

it is attached:

converted using:

var options = new Aspose.Words.Saving.SvgSaveOptions()
{
ExportEmbeddedImages = true,
TextOutputMode = Aspose.Words.Saving.SvgTextOutputMode.UsePlacedGlyphs,
ShowPageBorder = true,
};

            doc.Save(outputStream,options);     

BrokenResume.zip (12.9 KB)

@shayan.ahmad

Thanks for your inquiry. Your document has some revisions that are appearing in resultant SVG file. You may accept these before saving the SVG file. Please check following sample code snippet for the reference.

Document doc = new Document(@"BrokenResume.doc");
doc.AcceptAllRevisions();
doc.WarningCallback = new HandleDocumentWarnings();
var options = new Aspose.Words.Saving.SvgSaveOptions()
{
    ExportEmbeddedImages = true,
    TextOutputMode = Aspose.Words.Saving.SvgTextOutputMode.UsePlacedGlyphs,
    ShowPageBorder = true,
};

doc.Save(@"output_177.svg",options);