In a PDF file, there are 3 possibilities for font embedding : Full Font Embedding (Larger file size), Subset Font Embedding (Smaller file size) or No Font Embedding (Smallest file size) .
I have a report document (Infragistics.Documents.Reports.Report.Report) and i generate a PDF using publiskh method (<Object report>.Publish("c:\Test.pdf", Infragistics.Documents.Reports.Report.FileFormat.PDF)).
In my document I have many € (Euro symbol) in many différent size and font (italic, bold...) and each time i use this symbol, the whole font is embedding causing bigger file size.
Is there a solution to setting PDF to subset font embedding or no font embedding ?
Thanks
Font.Preferences.Embed = false; should stop the font from being embedded.
There is also a Subset property there but I'm looking at that one closer to see it is reacts the way we expect.
Hi,
I have made test with sample gallery (document). There is a sample for "Font embedding".
embeddedFontStyle.Font.Preferences.Embed =False embeddedFontStyle.Font.Preferences.Subset =False
Test 1 (no € symbol)AddContentToReport("Font Embedding and Subsetting Example ", embeddedFontStyle)Result PDF document 3ko
Test 2 (same as test1 with € symbol)AddContentToReport("Font Embedding and Subsetting Example €", embeddedFontStyle) Result PDF document 27ko
Conclusion :
Without €, embed and subset working fine.
With €, embed=false and subset=false are working as if embed=true and subset=true. It is not possible to not embed € symbol.