Skip to content

Commit

Permalink
use manual bbox in context for semi-automatic bbox finding
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox committed Jul 9, 2013
1 parent efeaab3 commit 7602748
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,13 @@ static int getAutoBBox(lua_State *L) {

fz_var(pix);

bounds = fz_bound_page(page->doc->xref, page->page);
//bounds = fz_bound_page(page->doc->xref, page->page);
// use manual bbox in context for semi-automatic bbox finding
bounds.x0 = kctx->bbox.x0;
bounds.y0 = kctx->bbox.y0;
bounds.x1 = kctx->bbox.x1;
bounds.y1 = kctx->bbox.y1;

bounds2 = fz_transform_rect(fz_identity, bounds);
bbox = fz_round_rect(bounds2);

Expand Down

0 comments on commit 7602748

Please sign in to comment.