DocController
The DocController object includes an API that allows you to configure main PDF document properties (font, margins, page width and height).
Adds a custom font to the PDF Generator.
- Type:
 - (fontName: string, base64: string, fontStyle: "normal" | "bold" | "italic" | "bolditalic") => void
 
- Parameters:
 - 
                fontName, type: string ,
A custom name that you will use to apply the custom font.
base64, type: string ,The custom font as a Base64-encoded string. To encode your font to Base64, obtain it as a TTF file and use any TTF-to-Base64 online converter.
fontStyle, type: "normal" | "bold" | "italic" | "bolditalic" ,The style of the custom font:
"normal","bold","italic", or"bolditalic". 
- Implemented in:
 - DocController
 
Copyright © 2025 Devsoft Baltic OÜ. All rights reserved.