I have a customer who just changed his custom company font. The font is being used in the document header in a Word (.docx) file. When I open the file using Word, the font is displayed properly. However, when I open the file programmatically using Aspose.Words and export to a .pdf file, the font appears as the original font. Is Asposes.Words somehow caching the original font? I would not think so, but that is what appears to be happening. I have included the relavent code below. Any help with this issue would be greatly appreciated. Thanks!
oDoc = New Aspose.Words.Document("c:\wordfile.docx")
'More code here...
oDoc.UpdateFields()
oDoc.AcceptAllRevisions()
oDoc.UpdatePageLayout()
oDoc.Save("c:\wordfile.pdf", Aspose.Words.SaveFormat.Pdf)
This message was posted using Aspose.Live 2 Forum
Hi
Thanks for your request. Please make sure that this custom font is installed on the PC where you perform conversion to PDF. If not, please try to install this font. This should fix the problem.
If it does not help, could you please attach your input document and custom font here for testing?
Best regards,
I have finally resolved this font issue and wanted to post this information in hopes it helps others. Although I uninstalled the original font from Windows (and manually deleted the font name from the registry), Windows was somehow associating the original version with the new version. The odd thing was it was using the first version of the font in the PDF files and the revised version of the font in Word . I finally resolved the issue by installing a font utility (Advanced Font Viewer) and letting it resolve the conflicting versions in Windows.
Hi
It is perfect, that you already resolved the problem. And thank you for sharing your experience.
Please let me know in case of any issues. I will be glad to help you.
Best regards,