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
@@ -5,6 +5,7 @@
"title": "Development & Deployment"
},
"local-development": "Local Development",
"developer-mode": "Developer Mode",
"self-hosting": "Self Hosting",
"contributing": "Contributing",
"-- API & Integration Guides": {
@@ -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)
Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB