aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-12 19:22:46 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-13 04:57:38 +0200
commitcfa2eb97fb9b38d62fd2cd8d54ab59bac503967f (patch)
treee29e4276b80b9fda4049017cdbe8e8bc01b8aa05 /include
parentd926d7805963901d2c7cd10198f2cb125e363210 (diff)
downloadqpdf-cfa2eb97fb9b38d62fd2cd8d54ab59bac503967f.tar.zst
Add page rotation (fixes #132)
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 456dade4..fbe02ba8 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -507,6 +507,13 @@ class QPDFObjectHandle
QPDF_DLL
void addPageContents(QPDFObjectHandle contents, bool first);
+ // Rotate a page. If relative is false, set the rotation of the
+ // page to angle. Otherwise, add angle to the rotation of the
+ // page. Angle must be a multiple of 90. Adding 90 to the rotation
+ // rotates clockwise by 90 degrees.
+ QPDF_DLL
+ void rotatePage(int angle, bool relative);
+
// Initializers for objects. This Factory class gives the QPDF
// class specific permission to call factory methods without
// making it a friend of the whole QPDFObjectHandle class.