PDF4Java Reference Documentation
com.o2sol.pdf4java.flowdocument Package / PDFFlowImageContent Class / setImageWidth Method
The width of the image drawn on the page.
Collapse All Expand All
In This Topic

setImageWidth Method
In This Topic
Sets the image width.
The value of this property represents either a percentage (0 to 100) or an absolute value based on the value of method.
Syntax

    public void setImageWidth(
       double width
    )

#### Parameters

width
  The width of the image drawn on the page.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | Thrown when width is set to a value less than 0.

See Also

#### Reference

PDFFlowImageContent Class
PDFFlowImageContent Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.