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

Draws a text using specified font into the current page of a PDF.

C#
public PdfDrawText(
    int PdfID, 
    Single DstX, 
    Single DstY, 
    String Text, 
    int FontID, 
    Single FontSize, 
    Color TextColor, 
    int Rotation
);
Visual Basic
Public Sub PdfDrawText(
    ByVal PdfID As Integer, 
    ByVal DstX As Single, 
    ByVal DstY As Single, 
    ByVal Text As String, 
    ByVal FontID As Integer, 
    ByVal FontSize As Single, 
    ByVal TextColor As Color, 
    ByVal Rotation As Integer
)
Parameters
Parameters 
Description 
PdfID 
A PDF identifier returned by the PdfNewPdf(), PdfOCRStart(), PdfOcrStartStream(), TwainPDFStart() or TwainPdfStartStream() function. 
DstX 
The X destination in current unit defined by the PdfSetMeasurementUnit() function.  
DstY 
The Y destination (from the bottom) in current unit defined by the PdfSetMeasurementUnit() function.  
Text 
The text to draw.  
FontID 
The Font ID. Value returned by the PdfAddTrueTypeFont() function.  
FontSize 
The font size in point. 1 point = 1/72 inch.  
TextColor 
Color Object. You can build a Color Object using the ARGB() function. Color of the text.  
Rotation 
If <> 0, defines a rotation of the text in degrees.  
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.