Overview
If you notice that an M-Files server-side Word document to PDF conversion, e.g., from a workflow, changes the layout of the document (such as, paging being different compared to the original document), one reason could be font changes in the conversion.
When M-Files converts a Word document to PDF, the conversion process needs the same fonts that are in the original document to be available so it can include them in the resulting PDF document. If those fonts are not installed in Windows on the M-Files Server computer, the conversion will substitute those fonts with other available fonts. This may change the layout of the document because different fonts reserve different amount of space.
Solution
There are two options:
- To have the same fonts in the PDF and the original Word document, those fonts need to be installed to Windows in the M-Files Server computer.
- Another possibility is to embed the used fonts to the Word document. In this case, the PDF conversion can use embedded fonts from the Word document, embed the fonts to PDF document and preserve the look of the document. See the following web page on how to embed fonts to documents in Word. Please note that this is a 3rd party site and M-Files is not in control nor is responsible of the contents of the site: https://support.office.com/en-us/article/embed-fonts-in-documents-or-presentations-cb3982aa-ea76-4323-b008-86670f222dbc.
