I have scoured the API documentation and forums for an answer to what
should seemingly be a simple question, but I can’t find what I need.
We have various Word documents created by users containing merge fields
from which we create individual documents, then convert them to PDF.
The body text of one of the word documents uses the TrueType Calibri
font (commonly used by Word 2007). When converted to PDF, the body text
shows up in Times New Roman. When I saved off the intermediate PDF XML
file, I see that the FontName attributes of the Segment elements are
all set to “Times New Roman”.
So, how do convert t PDF in a way that will allow the font information
to be preserved? I see various articles in the documentation for
dealing with fonts once you have an Aspose.Pdf.Pdf object, but by then
I’ve already lost the font information.
I am attaching minimal versions of the original .docx file, the resulting PDF .xml file, and the code used to generate the PDF.
Thanks in advance,
Eric