PdfExportOptions.NonEmbeddedFonts Property
Gets or sets a list of font names that should not be embedded in the resulting PDF file.
Namespace: DevExpress.Docs.Presentation.Export
Assembly: DevExpress.Docs.Presentation.v25.1.dll
NuGet Package: DevExpress.Docs.Presentation
Declaration
Property Value
Type | Description |
---|---|
String | A semicolon-delimited string of non-embedded font names. |
Remarks
Use the NonEmbeddedFonts
property to specify which fonts should not be embedded into the resulting PDF file. Set NonEmbeddedFonts
to *
to exclude all fonts.
Detach fonts from your PDF to reduce file size. Make sure that the client machine has the non-embedded fonts installed. Otherwise, the system substitutes symbols from these fonts with default font symbols, or displays these symbols incorrectly.
The following code snippet specifies non-embedded fonts for the exported PDF file:
using DevExpress.Docs.Presentation;
using DevExpress.Docs.Presentation.Export;
//...
using (var presentation = new Presentation(File.ReadAllBytes("C:\\Documents\\Presentation.pptx")))
{
var options = new PdfExportOptions();
options.ExportHiddenSlides = true;
options.NonEmbeddedFonts = "Helvetica;Aptos;Tahoma";
presentation.ExportToPdf("C:\\Documents\\Presentation_upd.pdf", options);
}