X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=pdf-tools.h;h=46430f4bd426d9f9835b5db7b6ba1ec6127dfa14;hb=ecef4671aafd32e3a00a834cdafa2c5af4bbb33c;hp=18aac2476761ef8ed7ff31674d154eb1fe60e272;hpb=367bdc00abaaad2d13b77705d8f1ba493e371c63;p=paperjam.git diff --git a/pdf-tools.h b/pdf-tools.h index 18aac24..46430f4 100644 --- a/pdf-tools.h +++ b/pdf-tools.h @@ -129,6 +129,11 @@ struct BBox { double width() { return x_max - x_min; } double height() { return y_max - y_min; } void transform(pdf_matrix &m); + BBox transformed(pdf_matrix &m); + void enlarge(double by); + BBox enlarged(double by); + void join(BBox &with); + void intersect(BBox &with); private: bool parse(QPDFObjectHandle h); }; @@ -137,5 +142,6 @@ private: QPDFObjectHandle unicode_string(std::string s); QPDFObjectHandle page_to_xobject(QPDF *out, QPDFObjectHandle page); +string pdf_coord(double x, uint digits=1); #endif