1
#ifndef QPDF_PDFTOPDF_H
2
#define QPDF_PDFTOPDF_H
4
#include <qpdf/QPDFObjectHandle.hh>
9
PageRect getBoxAsRect(QPDFObjectHandle box);
10
QPDFObjectHandle getRectAsBox(const PageRect &rect);
12
// Note that PDF specification is CW, but our Rotation is CCW
13
Rotation getRotate(QPDFObjectHandle page);
14
QPDFObjectHandle makeRotate(Rotation rot); // Integer
16
double getUserUnit(QPDFObjectHandle page);
22
Matrix(QPDFObjectHandle ar);
24
Matrix &rotate(Rotation rot);
25
Matrix &rotate_move(Rotation rot,double width,double height);
26
Matrix &rotate(double rad);
27
// Matrix &rotate_deg(double deg);
29
Matrix &translate(double tx,double ty);
30
Matrix &scale(double sx,double sy);
31
Matrix &scale(double s) { return scale(s,s); }
33
Matrix &operator*=(const Matrix &rhs);
35
QPDFObjectHandle get() const;
36
std::string get_string() const;