PdfContents.DrawTextWithAnnotation Method (PdfPage, PdfFont, Double, Double, Double, TextJustify, DrawStyle, Color, String, AnnotAction)

PDF File Writer

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)
Syntax
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: Double
Text width
Remarks
The position arguments are in relation to the bottom left corner of the paper.
See Also