Good day.
I have an HTML-file containing special characters (<div> </div>). I create a Word document from that HTML and formatting is correct, just great. But then I create a PDF document from the Word doc and the problem comes out.
Aspose's Words API removes all characters with #$NBS symbols during AsposePdf file generation and PDF doc created after that contains "#$NBS " strings, not empty spaces. I'm quite confused about it, so what can be done to avoid this situation? Is it a bug or am I doing something wrong?
P.S. When the input is, for example, <div> </div> it shows only one "#$NBS" string, not four, so it seems to me it's something wrong with " </div>" combination.
Aspose.Words.
Document doc = new Aspose.Words.Document(docFullPath, LoadFormat.Doc, "");
string xmlFullPath = String.Format(@"{0}{1}.xml", tempPath, fileName);
doc.Save(xmlFullPath,
SaveFormat.AsposePdf);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.IsImagesInXmlDeleteNeeded =
true;
pdf.BindXML(xmlFullPath,
null);
string pdfFullPath = String.Format(@"{0}{1}.pdf", tempPath, fileName);
pdf.Save(pdfFullPath);