static int outline_start_x = 0;
static int console_start_y = 0;
-static int oldbox = FZ_MEDIA_BOX, currentbox = FZ_MEDIA_BOX;
+static int oldbox = FZ_CROP_BOX, currentbox = FZ_CROP_BOX;
static int oldtint = 0, currenttint = 0;
static int oldinvert = 0, currentinvert = 0;
static int oldicc = 1, currenticc = 1;
}
public Rect getBounds() {
- return getBoundsNative(Page.MEDIA_BOX);
+ return getBoundsNative(Page.CROP_BOX);
}
public native void run(Device dev, Matrix ctm, Cookie cookie);
fz_bound_page(fz_context *ctx, fz_page *page)
{
if (page && page->bound_page)
- return page->bound_page(ctx, page, FZ_MEDIA_BOX);
+ return page->bound_page(ctx, page, FZ_CROP_BOX);
return fz_empty_rect;
}
static fz_context *ctx;
static fz_document *doc;
static fz_document_writer *out;
-static fz_box_type page_box = FZ_MEDIA_BOX;
+static fz_box_type page_box = FZ_CROP_BOX;
static int count;
static int usage(void)
static int width = 0;
static int height = 0;
static int fit = 0;
-static int page_box = FZ_MEDIA_BOX;
+static int page_box = FZ_CROP_BOX;
static float layout_w = FZ_DEFAULT_LAYOUT_W;
static float layout_h = FZ_DEFAULT_LAYOUT_H;
int extra = js_isdefined(J, 4) ? js_toboolean(J, 4) : 1;
const char *usage = js_isdefined(J, 5) ? js_tostring(J, 5) : "View";
const char *box_name = js_isdefined(J, 6) ? js_tostring(J, 6) : NULL;
- fz_box_type box = FZ_MEDIA_BOX;
+ fz_box_type box = FZ_CROP_BOX;
fz_pixmap *pixmap = NULL;
if (box_name) {
int code = EXIT_SUCCESS;
int exclude = 0;
const char *boxname = NULL;
- fz_box_type box = FZ_MEDIA_BOX;
+ fz_box_type box = FZ_CROP_BOX;
int fallback = 0;
float margins[4] = { 0 };
int c;