Creates a new font using provided font bytes and adds the new font to the
end of the collection of document fonts.
Namespace:
BitMiracle.Docotic.Pdf
Assembly:
BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)
Syntax
C#
public PdfFont AddFont(
byte[] fontBytes
)
VB
Public Function AddFont (
fontBytes As Byte()
) As PdfFont
Parameters
- fontBytes
- Type: System.Byte[]
The buffer with the font bytes.
Return Value
Type:
PdfFontThe newly added
PdfFont.
Remarks
This method accepts OpenType, TrueType, and Type1 font files.
See Also