Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Rotate Pages

This example shows how to rotate pages:

swift
let page = document?.page(at: 0)
// Rotate the first page 90 degrees clockwise
page?.rotation += 90
objective-c
CPDFPage *page = [document pageAtIndex:0];
// Rotate the first page 90 degrees clockwise
page.rotation += 90;