You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Creation > Low-level Functions > PdfAddTrueTypeFont Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PdfAddTrueTypeFont Method

Adds a TrueType font to a PDF.

C#
public int PdfAddTrueTypeFont(
    int PdfID, 
    String FontName, 
    Boolean Bold, 
    Boolean Italic
);
Visual Basic
Public Function PdfAddTrueTypeFont(
    ByVal PdfID As Integer, 
    ByVal FontName As String, 
    ByVal Bold As Boolean, 
    ByVal Italic As Boolean
) As Integer
Parameters
Parameters 
Description 
PdfID 
A PDF identifier returned by the PdfNewPdf(), PdfOCRStart(), PdfOcrStartStream(), TwainPDFStart() or TwainPdfStartStream() function. 
FontName 
The font name to add.
 
Bold 
True to set the font bold else False.  
Italic 
True to set the font italic else False.  
Returns

A Font ID value > 0, or 0 if the font can't be added to the PDF.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.