Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.1 KB

missing-symbols-in-pdf.md

File metadata and controls

33 lines (24 loc) · 1.1 KB
title description type page_title slug position tags res_type
Missing symbols in PdfProcessing
Learn how you can deal with missing symbols in PDF document when exported with PdfProcessing.
how-to troubleshooting
Missing symbols in PdfProcessing
missing-symbols-in-pdf
0
pdf, umlaut, symbol
kb
Product Version Product Author
2020.1.218 PdfProcessing Dimitar Karamfilov

Problem

This can happen when the characters cannot be found in a specific font. In this case, the RadPdfProcessing either falls back to another font or draws nothing.

Solution

To ensure that these symbols are available you need to embed a font that contains them to the document.

C#

{{region kb-missing-symbols-in-pdf1}}

var fontData = File.ReadAllBytes(@"..\\..\SegoeUI.ttf");
FontsRepository.RegisterFont(new FontFamily("Segoe UI"), FontStyles.Normal, FontWeights.Normal, fontData);

FontBase font;
FontsRepository.TryCreateFont(new FontFamily("Segoe UI"), FontStyles.Normal, FontWeights.Normal, out font);

{{endregion}}