PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawFormattedContent Method / drawFormattedContent(PDFFormattedContent,double,double,double,double,double) Method
The formatted content.
X coordinate of the box left margin.
Y coordinate of the box top margin.
Box width
Box height
Rotation angle.
Collapse All Expand All
In This Topic

drawFormattedContent(PDFFormattedContent,double,double,double,double,double) Method
In This Topic
Draws the formatted content on the graphics surface in the specified box.
Syntax

    public void drawFormattedContent(
       PDFFormattedContent formattedContent,
       double x,
       double y,
       double width,
       double height,
       double rotation
    )

#### Parameters

formattedContent
  The formatted content.
x
  X coordinate of the box left margin.
y
  Y coordinate of the box top margin.
width
  Box width
height
  Box height
rotation
  Rotation angle.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When formattedContent is null or width is less than 0 or height is less than 0.

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.