Skip to content

Commit 79cb215

Browse files
committed
Add handy method to set page rotation. Correct some samples
1 parent e8c7d98 commit 79cb215

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/com/itextpdf/core/pdf/PdfPage.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ public int getRotation() {
8989
}
9090
}
9191

92+
public void setRotation(int degAngle) {
93+
getPdfObject().put(PdfName.Rotate, new PdfNumber(degAngle));
94+
}
95+
9296
public PdfStream getContentStream(int index) {
9397
int count = getContentStreamCount();
9498
if (index >= count)

0 commit comments

Comments
 (0)