From cfa2eb97fb9b38d62fd2cd8d54ab59bac503967f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 12 Aug 2017 13:22:46 -0400 Subject: Add page rotation (fixes #132) --- include/qpdf/QPDFObjectHandle.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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. -- cgit v1.2.3-54-g00ecf