- Code: Select all
var wordDocument = new Spire.Doc.Document("D:\\InputFile.docx");
wordDocument.SaveToFile("D:\\OutputFile.pdf", FileFormat.PDF);
This is reproducible when the MS Word font is Calibri, but if I change it to Arial the problem seems to go away.
In the Zip File, please find:
InputFile.docx -- The MS Word file
OutputFile.pdf -- The output PDF file
PDF-MissingSpaces.png -- An image showing where in the PDF the spaces are missing