pdf_doc_internal_t*pi = (pdf_doc_internal_t*)page->parent->internal;
gfxsource_internal_t*i = (gfxsource_internal_t*)pi->parent->internal;
+ if(pi->nocopy) {
+ msg("<fatal> PDF disallows copying");
+ exit(0);
+ }
+
CommonOutputDev*outputDev = 0;
if(pi->config_full_bitmap_optimizing) {
FullBitmapOutputDev*d = new FullBitmapOutputDev(pi->info, pi->doc);
outputDev->setParameter(p->name, p->value);
p = p->next;
}
+ p = pi->parameters.device_config;
+ while(p) {
+ outputDev->setParameter(p->name, p->value);
+ p = p->next;
+ }
+
outputDev->setPageMap(pi->pagemap, pi->pagemap_pos);
outputDev->setMove(x,y);
outputDev->setClip(x1,y1,x2,y2);
pi->doc->processLinks((OutputDev*)outputDev, page->nr);
outputDev->finishPage();
outputDev->setDevice(0);
+ delete outputDev;
if(middev) {
gfxdevice_rescale_setdevice(middev, 0x00000000);
middev->finish(middev);
}
+
}