 |
PdfFontCreateFromBytes Method |
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic static PdfFont CreateFromBytes(
byte[] fontData,
float size
)
Public Shared Function CreateFromBytes (
fontData As Byte(),
size As Single
) As PdfFont
Parameters
- fontData Byte
- The raw TrueType / OpenType font file bytes.
- size Single
- The font size in points.
Return Value
PdfFontA new
PdfFont backed by the embedded TrueType font.
Exceptions| Exception | Condition |
|---|
| PdfDocumentException | Thrown when the bytes do not contain a valid TrueType / OpenType font. |
See Also