pdfSetRotation

Set the image rotation.
void pdfSetRotation(PDFHandle pdf, int rotation)
This function sets the image rotation to 0, 90, 180, or 270 degrees, clockwise. The rotation setting affects all image generation functions.

The pdfResetBitmapParams function resets the rotation to its default value of 0.

C:
pdfSetRotation(pdf, 270);
pdfResetBitmapParams