Link Search Menu Expand Document

How to resize QRCode

You can change the QR Code dimension using the FitInto() property and the white padding around it using the DrawQuietZones. Below is a sample property to resize the QR Code to 111 x 111 pixel without white padding. Size can be set in Pixel, Inch, Millimeter.

POST /v1/barcode/generate HTTP/1.1
Host: api.pdf.co
Content-Type: application/json
x-api-key: YOUR_API_KEY
Content-Length: 184

{
    "name": "barcode.png",
    "value": "abcdef123456",
    "type": "QRCode",
    "inline": false,
    "profiles": "{ 'DrawQuietZones': false, 'FitInto()': [ 111, 111, 'Pixel' ] }"
}

Zapier

To set the QR Code size in Zapier, please open the PDF.co action step and copy-paste the following snippet to the Custom Profiles field.

{ 'DrawQuietZones': false, 'FitInto()': [ 111, 111, 'Pixel' ] }

Integromat/Make

To set the QR code size in Integromat/Make, please open the PDF.co module and copy-paste the following snippet to the Custom Profiles field.

{ 'DrawQuietZones': false, 'FitInto()': [ 111, 111, 'Pixel' ] }