From 0ba151b10c92f7494482875acf9ed3632adf749b Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 18 Jul 2004 12:25:50 +0000 Subject: [PATCH] enabled cropbox again, so the PDF will look right even if the SWFs bounding box is modified. --- pdf2swf/xpdf/Gfx.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 1.7.10.4