feat: show field coordinates in devmode (#1802)

Show the fields coordinates when the `devmode` search param is present.
It's meant to help API users understand where to position the fields.
This commit is contained in:
Catalin Pit
2025-06-11 05:28:39 +03:00
committed by GitHub
parent b1127b4f0d
commit d11ec8fa2a
5 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,18 @@
---
title: Field Coordinates
description: Learn how to get the coordinates of a field in a document.
---
## Field Coordinates
Field coordinates represent the position of a field in a document. They are returned in the `pageX` and `pageY` properties of the field.
To enable field coordinates, you can use the `devmode` query parameter.
```bash
https://app.documenso.com/documents/<document-id>/edit?devmode=true
```
You should then see the coordinates on top of each field.
![Field Coordinates](/developer-mode/field-coordinates.webp)