diff options
author | Jay Berkenbilt <ejb@ql.org> | 2017-08-12 19:22:46 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2017-08-13 04:57:38 +0200 |
commit | cfa2eb97fb9b38d62fd2cd8d54ab59bac503967f (patch) | |
tree | e29e4276b80b9fda4049017cdbe8e8bc01b8aa05 /include | |
parent | d926d7805963901d2c7cd10198f2cb125e363210 (diff) | |
download | qpdf-cfa2eb97fb9b38d62fd2cd8d54ab59bac503967f.tar.zst |
Add page rotation (fixes #132)
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 7 |
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. |