]> mj.ucw.cz Git - paperjam.git/blobdiff - jam.h
Automatic page rotation based on the /Rotate key
[paperjam.git] / jam.h
diff --git a/jam.h b/jam.h
index ae563337e7ca890a9af239951a694de64dd6404f..33626040cc3ed58bd70349406f3a0480e7b1d0d9 100644 (file)
--- a/jam.h
+++ b/jam.h
@@ -1,7 +1,7 @@
 /*
  *     PaperJam -- Common declarations
  *
 /*
  *     PaperJam -- Common declarations
  *
- *     (c) 2018 Martin Mares <mj@ucw.cz>
+ *     (c) 2018--2022 Martin Mares <mj@ucw.cz>
  */
 
 #include <vector>
  */
 
 #include <vector>
@@ -152,6 +152,7 @@ extern const char *in_name, *out_name;
 extern bool recalc_bbox;
 extern int debug_level;
 extern int debug_indent;
 extern bool recalc_bbox;
 extern int debug_level;
 extern int debug_indent;
+extern bool no_auto_transforms;
 
 class paperjam_error : public exception {
   string message;
 
 class paperjam_error : public exception {
   string message;
@@ -175,3 +176,13 @@ void debug_pages(vector<page *> &pages);
 void process(list<cmd *> &cmds);
 vector<page *> run_command_list(list<cmd *> &cmds, vector<page *> &pages);
 vector<BBox> gs_bboxes(const char *in);
 void process(list<cmd *> &cmds);
 vector<page *> run_command_list(list<cmd *> &cmds, vector<page *> &pages);
 vector<BBox> gs_bboxes(const char *in);
+
+class xform_page : public page {
+  page *orig_page;
+  pdf_matrix xform;
+  const char *description;
+public:
+  void render(out_context *out, pdf_matrix xform) override;
+  void debug_dump() override;
+  xform_page(page *p, const char *desc, pdf_matrix xf);
+};