+
+ if(isrc->config_full_bitmap_optimizing) {
+ FullBitmapOutputDev*outputDev = new FullBitmapOutputDev(i->info, i->doc);
+ i->outputDev = (CommonOutputDev*)outputDev;
+ } else if(isrc->config_bitmap_optimizing) {
+ BitmapOutputDev*outputDev = new BitmapOutputDev(i->info, i->doc);
+ i->outputDev = (CommonOutputDev*)outputDev;
+ } else {
+ GFXOutputDev*outputDev = new GFXOutputDev(i->info, i->doc);
+ i->outputDev = (CommonOutputDev*)outputDev;
+ }
+
+ /* pass global parameters to PDF driver*/
+ parameter_t*p = device_config;
+ while(p) {
+ i->outputDev->setParameter(p->name, p->value);
+ p = p->next;
+ }
+
+ i->middev = 0;
+ if(multiply>1) {
+ i->middev = (gfxdevice_t*)malloc(sizeof(gfxdevice_t));
+ gfxdevice_rescale_init(i->middev, 0x00000000, 0, 0, 1.0 / multiply);
+ }