setasign\SetaPDF2\Core\Document\Page\Annotation

QuadPointsTrait Trait for handling the QuadPoints property in Annotations

File: /SetaPDF v2/Core/Document/Page/Annotation/QuadPointsTrait.php
Old class name (alias): \SetaPDF_Core_Document_Page_Annotation_QuadPointsTrait

Used in

Summary

Methods

getQuadPoints()

public QuadPointsTrait::getQuadPoints (
void
): array

Get the quad points.

setQuadPoints()

public QuadPointsTrait::setQuadPoints (
int[]|float[] $quadPoints
): void

Set the quad points.

Parameters
$quadPoints : int[]|float[]

An array of quad points (multiple of 8 values: TopLeft x/y, TopRight x/y, BottomLeft x/y, BottomRight x/y - which is a contradiction to the PDF specification but used by all common PDF viewer applications).