PdfPageTexture class abstract
Object containing a rendered image of PdfPage
Constructors
- PdfPageTexture.new({required int id, required String? pageId, required int pageNumber})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasUpdatedTexture → bool
-
no setter
- id → int
-
Page unique id. Needed for rendering and closing page.
Generated when render page.
final
- pageId → String?
-
final
- pageNumber → int
-
Page number. The first page is 1.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textureHeight → int?
-
Height of the rendered area in pixels.
no setter
- textureWidth → int?
-
Width of the rendered area in pixels.
no setter
Methods
-
dispose(
) → Future< void> - Release the object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
updateRect(
{required String documentId, int destinationX = 0, int destinationY = 0, int? width, int? height, int sourceX = 0, int sourceY = 0, int? textureWidth, int? textureHeight, double? fullWidth, double? fullHeight, String? backgroundColor, bool allowAntiAliasing = true}) → Future< bool> -
Update texture's sub-rectangle
(
destinationX
,destinationY
,width
,height
) with the sub-rectangle (sourceX
,sourceY
,width
,height
) of the PDF page scaled tofullWidth
xfullHeight
size. The method can also resize the texture if you specifytextureWidth
andtextureHeight
. Returns true if succeeded.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override