HTML to ZPL

FREEMIUM
By DAB Labs Inc | Updated 17 days ago | Video, Images
Popularity

9.6 / 10

Latency

2,396ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Bad request when printing A4 PDF

Rapid account: Integrationsopposuits

Hi,

I am trying to convert a base64 string based on a PDF which has A4 sizing. When trying to run this through the API, I get the following error:

400 Bad Request
server: RapidAPI-1.2.8
x_rapidapi_version: 1.2.8
x_rapidapi_region: AWS - us-east-1

<!DOCTYPE html>
<html lang=“en”>
<head>
<meta charset=“utf-8”>
<title>Error</title>
</head>
<body>
<pre>Bad Request</pre>
</body>
</html>

When trying to use the API on RapidAPI with the same code, I get the following error: Parameter pdfBase64 must be base64 encoded

However, when I test my code online through different Base64 code checks, all checks give a positive result (for example, via https://onlinebase64tools.com/validate-base64)

Why doesn’t this work via this API? Is this limited to A5 formats only? Thanks!

Rapid account: Dablabs
dablabs Commented 6 months ago

Hi @integrationsopposuits,

There is no limit specifically to page size. A4 PDFs should convert just fine. Would you be able to email the PDF to support@htmltozpl.com so I can run a test here?

Also, could you please include the code you used to convert to base64? There are sometimes subtle problems related to that.

Thanks!

Join in the discussion - add comment below:

Login / Signup to post new comments