Link Search Menu Expand Document

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.ValueDescription
1:00 degrees clockwise
2:190 degrees clockwise
3:2180 degrees clockwise
4:3270 degrees clockwise

To rotate the barcode/QR code to a different angle, update the value of the Angle parameter accordingly.