PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawString Method / drawString(String,PDFStringAppearanceOptions,PDFStringLayoutOptions) Method
String to draw.
Options that determine the string visual appearance.
Options that determine the text layout.
Collapse All Expand All
In This Topic

drawString(String,PDFStringAppearanceOptions,PDFStringLayoutOptions) Method
In This Topic
Draws the specified text string with the specified appearance and layout options.
Syntax

    public void drawString(
       java.lang.String s,
       PDFStringAppearanceOptions stringAppearanceOptions,
       PDFStringLayoutOptions stringLayoutOptions
    )

#### Parameters

s
  String to draw.
stringAppearanceOptions
  Options that determine the string visual appearance.
stringLayoutOptions
  Options that determine the text layout.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When s is null or stringAppearanceOptions is null or stringLayoutOptions is null.

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.