Endpoint Information

Category API calls
Description Convert a PDF label to ZPL
Endpoint https://api.rm-nl.nl/api/rm/pdf2zpl
Method POST

Request Headers

Type Parameter Required Default Example Description
string Content-Type Required application/json - The type of content present in the request payload.
string Authorization Required - Bearer your-access-token The bearer token used for authentication.

Request Body Parameters

Type Parameter Required Default Example Description Carrier
string
pdf
pdf
Required - JVBERi0xLjQ... The Base64-encoded PDF label. The decoded PDF may not exceed 20 MB or 50 pages.
integer
dpi
dpi
Optional 203 - The rendering resolution in DPI. Defaults to 203.

Response: 200

OK

Type Parameter Default Example Description
boolean
success
- 1 Indicates whether the conversion succeeded.
string
zpl
- - The converted ZPL commands for all PDF pages.
integer
pages
- 1 The number of converted PDF pages.
integer
dpi
- 203 The DPI used for rendering.

Response: 403

Forbidden

Response: 422

Unprocessable Content

Response: 503

Service Unavailable

Request Example

{
    "pdf": "JVBERi0xLjQ...",
    "dpi": "203"
}