PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawString Method / drawString(String,PDFFont,PDFBrush,PDFDisplayRectangle) Method
String to draw.
that defines the text format of the string.
that determines the color and texture of the drawn text.
Object that specifies the location of the drawn text.
Collapse All Expand All
In This Topic

drawString(String,PDFFont,PDFBrush,PDFDisplayRectangle) Method
In This Topic
Draws the specified text string in the specified rectangle with the specified and @see com.o2sol.pdf4java.graphics.PDFFont Objects.
Syntax

    public void drawString(
       java.lang.String s,
       PDFFont font,
       PDFBrush brush,
       PDFDisplayRectangle rectangle
    )

#### Parameters

s
  String to draw.
font
  that defines the text format of the string.
brush
  that determines the color and texture of the drawn text.
rectangle
  Object that specifies the location of the drawn text.

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.