PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.text Package / PDFTextEngine Class / measureString Method
String to measure.
Font used to display the string.
Collapse All Expand All
In This Topic

measureString Method
In This Topic
Measures the specified string.
Syntax

    public static PDFSize measureString(
       java.lang.String s,
       PDFFont font
    )

#### Parameters

s
  String to measure.
font
  Font used to display the string.

#### Return Value

The size of the string when displayed using the font.
See Also

#### Reference

PDFTextEngine Class
PDFTextEngine Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.