X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=pdf-tools.h;h=46430f4bd426d9f9835b5db7b6ba1ec6127dfa14;hb=c3e865fc387ff75bc960a63f0bc434765c41b6eb;hp=132062d16135d2293bd7b6581ab6d3ec6c1a386f;hpb=65a19b7c5297c12b66fc870e01e5c6ac7bf734fc;p=paperjam.git diff --git a/pdf-tools.h b/pdf-tools.h index 132062d..46430f4 100644 --- a/pdf-tools.h +++ b/pdf-tools.h @@ -129,7 +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); }; @@ -138,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