Click or drag to resize
Pdf Library for .NET

PdfFontCollectionAdd Method

Overload List
 NameDescription
Public methodAdd(Byte) Adds a TrueType / OpenType font loaded from an in-memory byte array. Convenience overload that avoids needing a temporary file.
Public methodAdd(PdfFont) Adds an already-constructed PdfFont to the collection. Useful when you want to track a font that was created with an explicit size via CreateStandardFont(PdfStandardFont, Single) etc.
Public methodAdd(PdfFont)Adds an array of fonts to the collection.
Public methodAdd(PdfStandardCJKFont) Adds a standard CJK font to the collection. Like PdfStandardFont, these are referenced by name (not embedded) — but CJK readers ship the glyphs, so output is expected to render on PDF/A-capable viewers.
Public methodAdd(PdfStandardFont) Adds a standard PDF font (one of the 14 built-in font names) to the collection and returns the PdfFont wrapper. Standard fonts are referenced by name, not embedded — rejected under PDF/A and PDF/X conformance.
Public methodAdd(PdfSystemFont) Resolves the system font described by systemFont to its installed TrueType / OpenType file, subset-embeds it into the document, and returns the resulting PdfFont.
Public methodAdd(Stream) Adds a TrueType / OpenType font loaded from a Stream. The stream is read synchronously from its current position to end.
Public methodAdd(String) Adds a TrueType / OpenType font loaded from a file. The font is subset-embedded into the output document — use this path for PDF/A / PDF/X output from scratch.
Public methodAdd(PdfSystemFont, Boolean) Resolves the system font described by systemFont and adds it to the collection.
Top
See Also