# PathPdfObject.PathInput

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/annotation/content/PathPdfObject.kt+class:androidx.pdf.annotation.content.PathPdfObject.PathInput) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
class PathPdfObject.PathInput
```

<br />

*** ** * ** ***

Data model for a single path operation and coordinate in a `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject`.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#LINE_TO()` Draws a line from the previous point to the given coordinate. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#MOVE_TO()` Starts a new sub-path from the given coordinate. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#PathInput(kotlin.Float,kotlin.Float,kotlin.Int)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, command: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#command()` The type of path operation (e.g., `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#MOVE_TO()` or `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#LINE_TO()`). |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#x()` The x-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#y()` The y-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page. |

## Constants

### LINE_TO

```
const val LINE_TO: Int
```

Draws a line from the previous point to the given coordinate.

### MOVE_TO

```
const val MOVE_TO: Int
```

Starts a new sub-path from the given coordinate.

## Public constructors

### PathInput

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
PathInput(x: Float, y: Float, command: Int)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### command

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val command: Int
```

The type of path operation (e.g., `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#MOVE_TO()` or `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PathPdfObject.PathInput#LINE_TO()`).

Value is one of the following:

- `0`
- `1`

<br />

### x

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val x: Float
```

The x-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.

### y

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val y: Float
```

The y-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.