Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Rotate Pages

This example shows how to rotate pages:

C#
// Rotate the first page 90 degrees clockwise, with each unit of rotation representing a 90-degree clockwise turn.
document.RotatePage(0, 1);