X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2FSWFOutputDev.cc;h=db114bc2deba97b10af9091885c62932c188e38c;hb=9a82ed9f9c7189bc59a84a1326dc4a7e9d06ee0e;hp=ea190167f47a05dcccb273560eb10773de5c604c;hpb=2942f8214e8462e14d6ef74bc82076b12b46131a;p=swftools.git diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index ea19016..db114bc 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -704,11 +704,12 @@ void SWFOutputDev::startPage(int pageNum, GfxState *state, double crop_x1, doubl { double x1,y1,x2,y2; laststate = state; - msg(" startPage %d\n", pageNum); + msg(" startPage %d (%f,%f,%f,%f)\n", pageNum, crop_x1, crop_y1, crop_x2, crop_y2); msg(" processing page %d", pageNum); - /*state->transform(state->getX1(),state->getY1(),&x1,&y1); + /* state->transform(state->getX1(),state->getY1(),&x1,&y1); state->transform(state->getX2(),state->getY2(),&x2,&y2); + Use CropBox, not MediaBox, as page size */ x1 = crop_x1; y1 = crop_y1; @@ -719,8 +720,8 @@ void SWFOutputDev::startPage(int pageNum, GfxState *state, double crop_x1, doubl if(y2 Bounding box is (%f,%f)-(%f,%f)", crop_x1,crop_y1,crop_x2,crop_y2); - swfoutput_init(&output, swffilename,(int)crop_x1,(int)crop_y1,(int)crop_y2,(int)crop_y2); + msg(" Bounding box is (%f,%f)-(%f,%f)", x1,y1,x2,y2); + swfoutput_init(&output, swffilename,(int)x1,(int)y1,(int)x2,(int)y2); outputstarted = 1; } else