SetAnnotQuadPoints
Version history
This function was introduced in Quick PDF Library version 7.21.
Description
Sets the co-ordinates of the specified quad (rectangular area) contained within the specified annotation. If the QuadNumber is higher than the number of quads that the annotation already has then a new quad will be added to the annotation.
From version 7.25 the order of the co-ordinates has changed for consistency between GetPageText and GetAnnotQuadPoints.
Syntax
Delphi
function TQuickPDF0813.SetAnnotQuadPoints(Index, QuadNumber: Integer; X1, Y1, X2,
Y2, X3, Y3, X4, Y4: Double): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::SetAnnotQuadPoints(Index As Long,
QuadNumber As Long, X1 As Double, Y1 As Double, X2 As Double,
Y2 As Double, X3 As Double, Y3 As Double, X4 As Double,
Y4 As Double) As Long
DLL
int QuickPDFSetAnnotQuadPoints(int InstanceID, int Index, int QuadNumber, double X1,
double Y1, double X2, double Y2, double X3, double Y3, double X4,
double Y4)
Parameters
| Index | The index of the annotation. The first annotation on the page has an index of 1. |
| QuadNumber | The index of the annotation's quad to set. The first quad has a QuadNumber of 1. If QuadNumber is greater than the number of existing quads then a new quad will be added to the annotation. |
| X1 | The horizontal co-ordinate of the bottom-left corner. |
| Y1 | The vertical co-ordinate of the bottom-left corner. |
| X2 | The horizontal co-ordinate of the bottom-right corner. |
| Y2 | The vertical co-ordinate of the bottom-right corner. |
| X3 | The horizontal co-ordinate of the top-right corner. |
| Y3 | The vertical co-ordinate of the top-right corner. |
| X4 | The horizontal co-ordinate of the top-left corner. |
| Y4 | The vertical co-ordinate of the top-left corner. |
Return values
| 0 | The QuadNumber parameter was less than 1. |
| 1 | The quad was changed or a new quad was added. |