# Path
Class Inherits PDFObject
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | x as Double <br> y as Double | (None) | Creates a new instance of the class. |
| CurveTo | x2 as Double <br> y2 as Double <br> x3 as Double <br> y3 as Double <br> x4 as Double <br> y4 as Double | (None) | Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x3, y3), using (x1, y1) and (x2, y2) as Bézier control points. The new current point shall be (x3, x3). |
| LineTo | x as Double <br> y as Double | (None) | Append a straight line segment from the current point to the point (x, y). The PDF "l" operator. |
| Attributes | Hidden | toJavaScript | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AutoClose | Boolean | False | When True, the path will automatically close if not closed by the added operations. |
| ScaleX | Double | 1 | Horizontal scale applied to the drawn path. |
| ScaleY | Double | 1 | Vertical scale applied to the drawn path. |
| X | Double | -1 | Starting position of the path. Value of -1 uses global current document coordinates. |
| Y | Double | -1 | Starting position of the path. Value of -1 uses global current document coordinates. |