From: kramm Date: Sun, 18 Jul 2004 12:25:50 +0000 (+0000) Subject: enabled cropbox again, so the PDF will look right even if the SWFs X-Git-Tag: release-0-6-0~66 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=0ba151b10c92f7494482875acf9ed3632adf749b enabled cropbox again, so the PDF will look right even if the SWFs bounding box is modified. --- diff --git a/pdf2swf/xpdf/Gfx.cc b/pdf2swf/xpdf/Gfx.cc index 81d164e..ba5981b 100644 --- a/pdf2swf/xpdf/Gfx.cc +++ b/pdf2swf/xpdf/Gfx.cc @@ -405,7 +405,7 @@ Gfx::Gfx(XRef *xrefA, OutputDev *outA, int pageNum, Dict *resDict, double dpi, } // set crop box - /*if (crop) { + if (crop) { state->moveTo(cropBox->x1, cropBox->y1); state->lineTo(cropBox->x2, cropBox->y1); state->lineTo(cropBox->x2, cropBox->y2); @@ -414,7 +414,7 @@ Gfx::Gfx(XRef *xrefA, OutputDev *outA, int pageNum, Dict *resDict, double dpi, state->clip(); out->clip(state); state->clearPath(); - }*/ + } } Gfx::Gfx(XRef *xrefA, OutputDev *outA, Dict *resDict,