We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF document does not contain the full font information or the server

We have a scenario where we would like validate our understanding of how the library works:
Scenario: The original pdf document does not contain the full font information or the server doesn’t have the font present in the document
For the above scenario we want to validate if the below understanding is correct in terms of the behavior of the library (Aspose PDF):
i.e. There are two options the library supports:
Option 1: Embed the name of the font in the file
Option 2: The library defaults to the default font which can be set in the code

Also as a followup question, we would like to understand if there are code snippets available demonstrating how to embed the fonts when there are multiple fonts present in different part of the document.


It is always recommended to have all standard fonts installed in the system where PDF is being generated or processed. In case API does not find any required font in the system, it replaces with it with the most suitable font and in case default font is not specified and no suitable font is found, FontNotFoundException is raised. You can further check in the below documentation article(s):

Is it possible to create a PDF without embedding the full information of the font but just the name (or similar) such that when a user opens the file on their device adobe reader will display the specified font if it’s available in the user device or replace it run time with another suitable/default font?


Yes, you can set Default Font Name for the PDF while saving it.