- virtual void render(page_out *out UNUSED, pdf_matrix xform UNUSED) { abort(); }
- page(double _w=0, double _h=0) : width(_w), height(_h) { }
+ BBox image_box; // Bounds useful contents
+ virtual void render(out_context *out UNUSED, pdf_matrix xform UNUSED) { abort(); }
+ page(double _w=0, double _h=0) : index(0), width(_w), height(_h), image_box() { }
+ page(page *p)
+ {
+ index = p->index;
+ width = p->width;
+ height = p->height;
+ image_box = p->image_box;
+ }
+};
+
+struct empty_page : public page {
+ void render(out_context *out UNUSED, pdf_matrix xform UNUSED) { }
+ empty_page(double _w=0, double _h=0) : page(_w, _h) { };