{
double x1,y1,x2,y2;
laststate = state;
- msg("<debug> startPage %d\n", pageNum);
+ msg("<verbose> startPage %d (%f,%f,%f,%f)\n", pageNum, crop_x1, crop_y1, crop_x2, crop_y2);
msg("<notice> 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;
if(y2<y1) {double y3=y1;y1=y2;y2=y3;}
if(!outputstarted) {
- msg("<verbose> 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("<verbose> 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