]> mj.ucw.cz Git - paperjam.git/blobdiff - pdf-tools.h
TODO
[paperjam.git] / pdf-tools.h
index 132062d16135d2293bd7b6581ab6d3ec6c1a386f..46430f4bd426d9f9835b5db7b6ba1ec6127dfa14 100644 (file)
@@ -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