Hi all,
I am using aspose 22.10.0 , i am converting docx to html template i am displaying in the html template, when document contains Bullet and numbering and page reference instead the bullet and page reference its showing ??? multiple times ,
below is my code and attached document && error screen shot for your reference
source. (2).docx (13.5 KB)
Document docMaster = new Document(System.IO.Path.Combine(storagePath, outputDetails.Result.Item2.ModifiedMasterFileName));
FindReplaceOptions opt = new FindReplaceOptions();
opt.ReplacingCallback = new QuoteReplacingCallback();
docMaster.Range.Replace(new Regex("[“”‘’–]"), "", opt);
MemoryStream stream = new MemoryStream();
HtmlSaveOptions options2 = new HtmlSaveOptions(SaveFormat.Html)
{
ExportTextInputFormFieldAsText = true,
ExportImagesAsBase64 = true,
CssStyleSheetType = CssStyleSheetType.Embedded,
ExportFontsAsBase64 = true,
ExportPageMargins = true,
ExportShapesAsSvg = true,
HtmlVersion = HtmlVersion.Html5,
UseHighQualityRendering = true,
ExportTocPageNumbers = true,
ExportRelativeFontSize = true,
ExportDocumentProperties = true,
};
options2.ExportHeadersFootersMode = ExportHeadersFootersMode.PerSection;
docMaster.Save(stream, options2);
var html = Encoding.ASCII.GetString(stream.ToArray());
ViewBag.HTML = html.Replace("line-height:107%; font-family:Calibri;", "");