Aspose.Cells.PdfSaveOptions pso = new Aspose.Cells.PdfSaveOptions();
pso.EmbedStandardWindowsFonts = true;
Using the above code, we can restrict to embed the fonts to the pdf file or not. Can we restrict to embed specific fonts to the PDF file, while saving an Excel file to PDF?
Hi,
I am afraid, there is no such API to embed only specific fonts in Excel to PDF conversion. I think you may add your desired fonts into a folder and then use CellsHelper.FontDir attribute to specify the fonts directory path at the start of your application and before using other APIs of the product.
Thank you.
Using version 8.3.1.4.
Still it is using systems font folder and embedding all fonts even when we set CellsHelper.FontDir to another folder with some other font files…
Hi,
Well, yes, the System’s fonts folder would be always used, this is due to by design of Aspose.Cells APIs for rendering operations e.g Excel to PDF, Sheet to Image etc.
Thank you.
Hi team,
We are having problems with embedded fonts, because of which the file size is increasing.
We don’t want to embed the common fonts which are available in common users system. We want some way by which we should be able to embed only those fonts which we want.
Can you pls confirm if this be achieved in the existing version of Aspose. If not, then do you have any plans to implement the above functionality in the near future. .
Thanks
Hi Team,
We would like to know if you have any plans to include feature by which you can add or remove fonts form PDF file.
Hi,
Well, Aspose.Cells is originally designed to manipulate or manage Ms Excel file formats and spreadsheets. It does have an extra feature to render PDF file from spreadsheets though. So, being a spreadsheet management library, I am not sure if this is feasible or possible for us to remove embedded fonts in the output PDF file. Could you elaborate your requested feature and provide more details on your requirements, we might check if this can be accomplished or not. We will evaluate it on our end.
Thank you.
While converting the Excel file to PDF using PdfSaveOptions, we would like to define the font/font family details, which needs to be embedded and which or not (like Adobe settings). Is it possible to provide this option in Aspose.Cells.PdfSaveOptions in future?
Hi,
Thanks for your posting and using Aspose.Cells.
Please let us know if it is correct understanding.
Suppose, your desired fonts are in folder say c:\myfonts directory and you want Aspose.Cells to use only fonts found in c:\myfonts directory and ignore all other system fonts. Means, basically you want to restrict Aspose.Cells to your own set of fonts only.
Looking for something like below:
1. Refer system fonts and do not embed mentioned fonts even though they are used in the Excel file. Remaining used fonts needs to be embedded.
2. Refer c:\myfonts and do not embed even though they are used in the Excel file. Any other used fonts needs to be embedded from system fonts folder.
Hi,
Thanks for your posting and using Aspose.Cells.
We have logged your requirement for evaluation in our database. We will look into it and implement it if possible. Once, it will be fixed or we have some other update for you, we will let you know asap.
This issue has been logged as
-
CELLSJAVA-41252 - Restriction of specific fonts to be embedded to PDF file