Hello,
Aspose.Words is throwing an exception during HTML generation for the attached file, due to the line drawing inserted in the document. The error message being thrown is: “Specified argument was out of the range of valid values.
Parameter name: value”.
Aspose.Words.Bug.zip (13.8 KB)
using Aspose.Words;
using Aspose.Words.Saving;
document = new Document(/input/file/path/in.docx);
SvgSaveOptions options = new SvgSaveOptions
{
PrettyFormat = false,
UpdateFields = false,
UseAntiAliasing = true,
MemoryOptimization = true,
ExportEmbeddedImages = true,
OptimizeOutput = true,
ShowPageBorder = false,
FitToViewPort = false,//true,
UpdateSdtContent = false,
UseHighQualityRendering = true,
UpdateLastSavedTimeProperty = false,
DmlRenderingMode = DmlRenderingMode.DrawingML,
TextOutputMode = SvgTextOutputMode.UseSvgFonts,
};
document.Save(/output/file/path/out.html, options);
Thanks