Hello team
We are facing some issues with html to word hence word to pdf conversion using aspose words dll so by this way we overcome the problem of page alignment & width. As html content is adjusted when it is converted into word ; the actual pdf we obtain by word to pdf conversion is perfect.
But there is a problem with that we are using css for underline ,dotted underline ,strikeout in html content and this style not reflect in converted word doc.
Now we have a conclusion that aspose word is not supported dotted underline css.
Please find attached html file.
css used is html:
<link href=“css/diff.css” type=“text/css” rel=“stylesheet”>", "<style type=“text/css”> span.diff-tag-html { font-family: ‘Andale Mono’ monospace; font-size: 80%;} span.diff-tag-removed { font-size: 100%; text-decoration: line-through; color: red;} span.diff-tag-added { font-size: 100%; text-decoration:underline; color: red;} span.diff-tag-conflict { font-size: 100%; background-color: #f781be; } span.diff-html-added { font-size: 100%; cursor: pointer; border-bottom: solid 1px red; color: red;} span.diff-html-removed { font-size: 100%; text-decoration: line-through; cursor: pointer; color: red;} span.diff-html-changed { text-decoration: none; border-bottom:1px dotted; }
code is followed :
Aspose.Words.License licenseWord = new Aspose.Words.License();
licenseWord.SetLicense(@“D:\VED-WORK\CreatePDF\CreatePDF\Styles\Aspose.Total.lic”);
Aspose.Words.LoadOptions loadOptionsword = new Aspose.Words.LoadOptions();
loadOptionsword.LoadFormat = Aspose.Words.LoadFormat.Html;
Document docword = new Document(revisedPath, loadOptionsword);
// Save in the PDF format.
docword.Save(filepathword);
Aspose.Words.LoadOptions loadOptionspdf = new Aspose.Words.LoadOptions();
loadOptionspdf.LoadFormat = Aspose.Words.LoadFormat.Docx;
Document docpdf = new Document(filepathword, loadOptionspdf);
// Save in the PDF format.
docpdf.Save(FilePathPdf);
please do the needfull on early basis.
thanks & regasrds
ved yadav