]> mj.ucw.cz Git - paperjam.git/blobdiff - pdf-tools.h
Cropmarks mark=bg
[paperjam.git] / pdf-tools.h
index 132062d16135d2293bd7b6581ab6d3ec6c1a386f..0225e9c457f951806aa07129c9a692ab55856f9e 100644 (file)
@@ -129,6 +129,7 @@ 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 join(BBox &with);
 private:
        bool parse(QPDFObjectHandle h);
@@ -138,5 +139,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