Table of Contents

Method AddCharacters

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

AddCharacters(XFont, string)

Adds characters whose glyphs have to be embedded in the PDF file. By default, PDFsharp only embeds glyphs of a font that are used for drawing text on a page. With this function actually unused glyphs can be added. This is useful for PDF that can be modified or has text fields. So all characters that can be potentially used are available in the PDF document.

public void AddCharacters(XFont font, string chars)

Parameters

font XFont

The font whose glyph should be added.

chars string

A string with all unicode characters that should be added.