]> mj.ucw.cz Git - paperjam.git/blobdiff - pdf-tools.h
Allow bare identifiers as values of string arguments
[paperjam.git] / pdf-tools.h
index 132062d16135d2293bd7b6581ab6d3ec6c1a386f..de79f534565d51476914470bb74755712754975f 100644 (file)
@@ -129,6 +129,9 @@ 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);
 private:
        bool parse(QPDFObjectHandle h);
@@ -138,5 +141,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