PDF File Writer Class Library - Author Uzi Granot
PdfContentsDrawTextWithAnnotation Method (PdfPage, PdfFont, Double, Double, Double, TextJustify, DrawStyle, Color, String, AnnotAction) |
Draw text with annotation action
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

C#
public double DrawTextWithAnnotation( PdfPage Page, PdfFont Font, double FontSize, double TextAbsPosX, double TextAbsPosY, TextJustify Justify, DrawStyle DrawStyle, Color TextColor, string Text, AnnotAction AnnotAction )
Parameters
- Page
- Type: PdfFileWriterPdfPage
Current page - Font
- Type: PdfFileWriterPdfFont
Font - FontSize
- Type: SystemDouble
Font size - TextAbsPosX
- Type: SystemDouble
Text absolute position X - TextAbsPosY
- Type: SystemDouble
Text absolute position Y - Justify
- Type: PdfFileWriterTextJustify
Text justify enumeration. - DrawStyle
- Type: PdfFileWriterDrawStyle
Draw style enumeration - TextColor
- Type: System.DrawingColor
Color - Text
- Type: SystemString
Text - AnnotAction
- Type: PdfFileWriterAnnotAction
Annotation action
Return Value
Type: DoubleText width

The position arguments are in relation to the
bottom left corner of the paper.
