diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1999-08-06 00:14:27 (GMT) |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-08-06 00:14:27 (GMT) |
commit | 50e9d31c05e9ca11ad43cc570556094782c1b956 (patch) | |
tree | e8d30241d1f97d7a52ad4486089a74e55160ad78 /pdf/xpdf/Page.h | |
parent | bd7dce23fec36adeb1713c164d594bbc0436b346 (diff) |
Painful merge.
Painful merge.
I merged the latest release into the CVS.
This version supports the regular xpdf or gpdf if the GNOME libraries
are found.
Miguel.
Diffstat (limited to 'pdf/xpdf/Page.h')
-rw-r--r-- | pdf/xpdf/Page.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pdf/xpdf/Page.h b/pdf/xpdf/Page.h index c74f0b5..6c020c7 100644 --- a/pdf/xpdf/Page.h +++ b/pdf/xpdf/Page.h @@ -35,10 +35,10 @@ public: ~PageAttrs(); // Accessors. - double getX1() { return x1; } - double getY1() { return y1; } - double getX2() { return x2; } - double getY2() { return y2; } + double getX1() { return limitToCropBox ? cropX1 : x1; } + double getY1() { return limitToCropBox ? cropY1 : y1; } + double getX2() { return limitToCropBox ? cropX2 : x2; } + double getY2() { return limitToCropBox ? cropY2 : y2; } GBool isCropped() { return cropX2 > cropX1; } double getCropX1() { return cropX1; } double getCropY1() { return cropY1; } @@ -52,6 +52,7 @@ private: double x1, y1, x2, y2; double cropX1, cropY1, cropX2, cropY2; + GBool limitToCropBox; int rotate; Object resources; }; |