How to Rotate Barcodes with PDF.co API using the ‘Angle’ Parameter
To change the orientation of barcodes/QR codes using PDF.co API’s /v1/barcode/generate
endpoint, you can modify the Profiles
parameter to include the Angle
parameter with the desired value. For example, if you want to rotate the barcode/QR code 90 degrees clockwise, set the “Angle” parameter to 1:
"Profiles":"{\"Angle\":1}"
Here are the availabe values for the Angle
parameter:
No. | Value | Description |
---|---|---|
1: | 0 | 0 degrees clockwise |
2: | 1 | 90 degrees clockwise |
3: | 2 | 180 degrees clockwise |
4: | 3 | 270 degrees clockwise |
To rotate the barcode/QR code to a different angle, update the value of the Angle
parameter accordingly.
Copyright © 2016 - 2023 PDF.co