Read the printed words on a page

The words, drawn lines and boxes printed on one page of the template's PDF, read from the PDF's own text. A scanned PDF has no text: hasText is false and words is empty.

Permission: signing:read @ workspace/{workspaceId}/signingTemplate/{signingTemplateId}

Authorization

ServiceAccountKey
AuthorizationBearer <token>

A service account API key, sent whole as a bearer token: hsk_<40 hex>.hss_<64 hex>.

In: header

Path Parameters

signingTemplateId*string

The template to act on. IDs come from List templates.

page*integer

0-based page number.

Range0 <= value

Query Parameters

workspaceId*string

The workspace the template or document belongs to. Send it in the query string on every call, including the PDF upload. IDs come from List workspaces.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

GETRead the printed words on a page
curl -X GET "https://example.com/signing/templates/RVeFlYdDGgoESUXespsR/pages/0/text?workspaceId=ws_a1b2c3"
{  "success": true,  "hasText": true,  "page": {    "page": 0,    "size": {      "w": 0,      "h": 0    },    "words": [      {        "text": "string",        "x": 0,        "y": 0,        "w": 0,        "h": 0      }    ],    "lines": [      {        "dir": "h",        "x": 0,        "y": 0,        "w": 0,        "h": 0      }    ],    "rects": [      {        "x": 0,        "y": 0,        "w": 0,        "h": 0      }    ]  }}
GET
/signing/templates/{signingTemplateId}/pages/{page}/text