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

Free Support Forum - aspose.com

Converting doc file to html, converted file increased the file size

Hi,

I have converted 13mb doc file to html file, and converted html file size is 600mb which is heavy to browser to load.

Following is the code I am using to convert file-

HtmlFixedSaveOptions fixedOption = new HtmlFixedSaveOptions();

        fixedOption.PageIndex = 0;
        fixedOption.PageCount = doc.PageCount;
        fixedOption.NumeralFormat = NumeralFormat.System;
        //fixedOption.PrettyFormat = true;
        //fixedOption.ExportEmbeddedCss = true;
        fixedOption.UseHighQualityRendering = true;
        fixedOption.SaveFormat = SaveFormat.HtmlFixed;
        fixedOption.ExportEmbeddedSvg = true;
        //fixedOption.ExportEmbeddedFonts = true;
        
        
        DocumentBuilder builder = new DocumentBuilder(doc);
        builder.MoveToHeaderFooter(HeaderFooterType.HeaderPrimary);
        builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;

        builder.InsertField("PAGE", null);
        builder.Write("/");
        builder.InsertField("NUMPAGES", null);

        builder.MoveToDocumentStart();

     
        doc.Save(string.Format("{0}/HTM.htm", htmlDirectoryPath), fixedOption);

Can you please suggest any method which will reduce file conversion size.?

@HemantKolte

Thank you for your enquiry and for your support of Aspose.

I am sorry but we cannot help with functionality or other technical matters here in Purchase. Instead, please open a new topic on the appropriate Product Family forum at https://forum.aspose.com and our Support Team there will be glad to help.

Alternatively, if you could let me know which product you are using, I will be glad to transfer it over.

Kind regards,

George

Thanks George for prompt reply.

We have Aspose.word - 15.2.0.0 version.

@HemantKolte,

Thanks for your inquiry. Please try latest version of Aspose.Words for .NET 18.5. If you still face problem, please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

Hi,
I have downloaded latest version Aspose.Words for .NET 18.5. and
getting following exception message while running .

The subscription included in this license allows free upgrades until 13 Mar 2016, but this version of the product was released on 01 May 2018. Please renew the subscription or use a previous version of the product.

Hey i have tried upgrading dll but got lic issue still attaching document . Please have a look.

@HemantKolte,

Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.