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

Free Support Forum - aspose.com

Pdf to docx - Custom Font

Hello there,
I am converting pdf to docx can i give custom fontFolder which contains font files


You can copy font files to a directory, and then add this directory to the font folder list as follows:

// connect custom font directory
FolderFontSource fs = new FolderFontSource(@"path\to\my\folder");

Thanks for the quick reply
So we are adding a new font source via FolderFontSource class but while converting pdf to docx the fonts are not loaded. Do we have to use Font repository.load(); for this to take effect or do we have to add some Pdf options to get the desired font while converting to docx?


Could you please ZIP and attach your input PDF, problematic output DOCX and sample fonts that you are using? We will investigate the issue and provide you more information on it.