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

Free Support Forum - aspose.com

How to set ExportRelativeFontSize to true during epub conversion

We are converting word documents to epub and want to use the property "ExportRelativeFontSize" to true during epub conversion. I observed that this property is not available in document class. Request to provide how to use this property during document conversion.


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. You can use the following code:

HtmlSaveOptions opt = new HtmlSaveOptions(SaveFormat.Epub);

opt.ExportRelativeFontSize = true;

doc.Save(@"Test001\out.epub", opt);

Best regards,

Thankyou verymuch for your code snippet.