Aspose.Words HTML generation failed due to line drawing

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

@uk_itprocurement_tcs_com,

Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19044. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-19044) have been fixed in this Aspose.Words for .NET 19.9 update and this Aspose.Words for Java 19.9 update.