Description of the problem
When creating a PDF from axesWord, you might encounter the following error message:
Unexpected error / The index was out of array range.
This error might indicate a problem with stored fonts. A font that is used in the Word file is not transferred to the PDF.
Background information
What happens to the fonts used during conversion?
During the creation of the PDF, axesWord obtains fonts from the following location only:
C:/Windows/Fonts
If a font used in Word is not stored there, axesWord automatically replaces that font with the Arial font.
So, if Arial appears in the PDF, instead of the font used in Word, it means that axesWord could not find the original font in the C:/Windows/Fonts folder.
What fonts does axesWord support?
axesWord supports almost all the fonts that are also supported by Word. It also supports some fonts that Word only displays in a pixeled way.
axesWord supports TrueType and OpenType type fonts.
Possible sources of error
There are several reasons why fonts might not be transferred correctly to PDF:
- Fonts are embedded in the Word file only.
- Fonts have not been installed using admin privileges.
- Fonts managed by Fonts Managers are used.
(1) Fonts are embedded in the Word file itself, but do not exist on the system
This article explains how to check if the font is installed on the system:
https://support.axes4.com/hc/en-us/articles/7371909128082
If the font does not exist on the system, axesWord will not be able to use it during the conversion and will therefore use Arial as a replacement font.
(2) The font has not been installed using admin rights for all users
Fonts should be installed using a user account with administrative privileges. The easiest way to do this is to right-click the font and select the option with the administrator icon ("Install for all users" or "Run as administrator"). This might solve the problem.
(3) Fonts managed by Font Managers
Currently, axesWord does not support fonts managed by font managers. axesWord will be able to support this way of font management in the future.