pdfSetEmbedOutputProfile

Control embedding of ICC profile in output image.
void pdfSetEmbedOutputProfile(PDFHandle pdf, int embed)
If this flag is set to non-zero, the current gray/RGB/CMYK output profile will be embedded in the generated image file. This is supported for PNG, TIFF, and JPEG output.

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

C:
pdfSetEmbedOutputProfile(pdf, 1);
pdfResetBitmapParams