Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells requires TrueType fonts when rendering spreadsheets to formats such as PDF, XPS and images.
When Aspose.Cells renders a spreadsheet, it requires access to the TrueType fonts used in the spreadsheet. This is a normal practice during PDF, XPS and image generation and ensures the converted document or image appears identical for any viewer.
A spreadsheet may be formatted using various fonts such as Arial, Times New Roman, Verdana and others. When Aspose.Cells renders a spreadsheet it attempts to select the fonts that are used in the spreadsheet. However there are situations when the exact font may not be available so Aspose.Cells have to substitute a similar font instead.
Below is the process that Aspose.Cells follow behind the scene.
Aspose.Cells attempts to find TrueType fonts on the file system automatically. Most of the time you can rely on Aspose.Cell’s default behavior to find TrueType fonts, but sometimes you may need to specify folders that containing the TrueType fonts using the FontConfigs.setFontFolder factory method.
This table lists some of the problems that you might encounter when rendering spreadsheets to PDF using Aspose.Cells and their solutions.
| Problem | Reason | Solution |
|---|---|---|
| The layout and fonts in the rendered document is different from the original. | You are using Aspose.Cells on Linux or Mac OS where TureType fonts are not present by default so Aspose.Cells cannot locate fonts on your computer. | Copy TrueType font files from a Windows machine or install a TrueType font package. Use the FontConfigs.setFontFolder factory method to specify the location of the font files. |
Check the detailed articles on
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.