PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.fonts Package / PDFFont Class / encodeString Method
String to convert.
Collapse All Expand All
In This Topic

encodeString Method
In This Topic
Encodes the given text to a byte array based on font's encoding.
Syntax

    public byte[] encodeString(
       java.lang.String text
    )

#### Parameters

text
  String to convert.

#### Return Value

An array of bytes representing the string according to font encoding.
See Also

#### Reference

PDFFont Class
PDFFont Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.