PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.formattedcontent Package / PDFFormattedContent Class / PDFFormattedContent Constructor / PDFFormattedContent Constructor(String,PDFFont)
Paragraph text.
Font used for displaying the text.
Collapse All Expand All
In This Topic

PDFFormattedContent Constructor(String,PDFFont)
In This Topic
Initializes a new PDFFormattedContent object with a text paragraph.
Syntax

    public PDFFormattedContent(
       java.lang.String text,
       PDFFont font
    )

#### Parameters

text
  Paragraph text.
font
  Font used for displaying the text.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When text is null.

See Also

#### Reference

PDFFormattedContent Class
PDFFormattedContent Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.