Easy fix for printing DHL Express ZPL labels
The reason for this is because DHL Express labels default to 4x7 instead of 4x6. In order to fix this you will need to specify the attributes in Shipment options
label_size to "4x6" and
label_format to "ZPL". You can see an example of how to specify shipment options .