DynaPDF.SetLineAnnotPoints
--------------------------

Changes the start and or end point of a line annotation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [14.3](newinversion143.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SetLineAnnotPoints"; PDF; AnnotationHandle { ; P1X; P1Y; P2X; P2Y } ) 

**MBS**( **"DynaPDF.SetLineAnnotPoints";** /\* Changes the start and or end point of a line annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$P1X**; /\* Optional; The x coordinate for the first point.  
Can be empty if P1 should not be changed. \*/   
**$P1Y**; /\* Optional; The y coordinate for the first point.  
Can be empty if P1 should not be changed. \*/   
**$P2X**; /\* Optional; The x coordinate for the second point.  
Can be empty if P2 should not be changed. \*/   
**$P2Y**) /\* Optional; The y coordinate for the second point.  
Can be empty if P2 should not be changed. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |  |
| AnnotationHandle | The annotation index. | 5 |  |
| P1X | The x coordinate for the first point.   Can be empty if P1 should not be changed. |  | Optional |
| P1Y | The y coordinate for the first point.   Can be empty if P1 should not be changed. |  | Optional |
| P2X | The x coordinate for the second point.   Can be empty if P2 should not be changed. |  | Optional |
| P2Y | The y coordinate for the second point.   Can be empty if P2 should not be changed. |  | Optional |

### Result

Returns OK or error.

### Description

Changes the start and or end point of a line annotation.   
P1 or P2 can be empty (but not both), if only the start or end point should be changed.  
See also [SetLineAnnotPoints](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetLineAnnotPoints.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetPageAnnotCount](DynaPDFGetPageAnnotCount.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 14.3**
    - Added [DynaPDF.SetLineAnnotPoints](https://www.mbsplugins.eu/DynaPDFSetLineAnnotPoints.shtml) and [DynaPDF.EnableImageCache](https://www.mbsplugins.eu/DynaPDFEnableImageCache.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 14.3 News](https://www.mbsplugins.de/archive/2024-07-17/MBS_FileMaker_Plugin_143_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.3pr3](https://www.mbsplugins.de/archive/2024-06-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 14th June 2024 , last changed 14th June 2024

  
[DynaPDF.SetLeading](DynaPDFSetLeading.md) - [DynaPDF.SetLineJoinStyle](DynaPDFSetLineJoinStyle.md)

[HTML Version](DynaPDFSetLineAnnotPoints.shtml)