PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.text Package / PDFTextEngine Class / getStringHeight Method / getStringHeight(String,PDFFont,PDFStringLayoutOptions) Method
String to measure.
Font used to draw the string.
Layout options that affect the string
Collapse All Expand All
In This Topic

getStringHeight(String,PDFFont,PDFStringLayoutOptions) Method
In This Topic
Gets the height of the string wrapped at the specified width.
Syntax

    public static double getStringHeight(
       java.lang.String s,
       PDFFont font,
       PDFStringLayoutOptions slo
    )

#### Parameters

s
  String to measure.
font
  Font used to draw the string.
slo
  Layout options that affect the string

#### Return Value

The total height of the text lines.
See Also

#### Reference

PDFTextEngine Class
PDFTextEngine Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.