-static void
-set_page_orientation (PdfDocument *pdf_document, PopplerPage *page, int rotation)
-{
- PopplerOrientation orientation;
-
- switch (rotation) {
- case 90:
- orientation = POPPLER_ORIENTATION_LANDSCAPE;
- break;
- case 180:
- orientation = POPPLER_ORIENTATION_UPSIDEDOWN;
- break;
- case 270:
- orientation = POPPLER_ORIENTATION_SEASCAPE;
- break;
- default:
- orientation = POPPLER_ORIENTATION_PORTRAIT;
- }
-
- poppler_page_set_orientation (page, orientation);
-}
-