CPDFEdgeInsets class

CPDFEdgeInsets defines the padding for a PDF document.

  • On Android, you can set individual margins for top, bottom, left, and right. To adjust the spacing between pages, use the setPageSpacing() method.

  • On iOS, you can also configure top, bottom, left, and right margins. The spacing between pages is equal to the top margin.

Constructors

CPDFEdgeInsets.all(int value)
const
CPDFEdgeInsets.only({required int left, required int top, required int right, required int bottom})
const
CPDFEdgeInsets.symmetric({required int horizontal, required int vertical})
const

Properties

bottom int
final
hashCode int
The hash code for this object.
no setterinherited
left int
final
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited