X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2Fpdf.cc;h=71e7cfae1e1eacc9649be3368388527232852d8b;hb=436555dc8bf656819b5bbc528ab75161508e7e0b;hp=189a05cadae723f39673cf2a3148191d60c22114;hpb=5f1e7e9ebbac00effaae0545c32fe9060215d125;p=swftools.git diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index 189a05c..71e7cfa 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -150,6 +150,12 @@ static void render2(gfxpage_t*page, gfxdevice_t*dev, int x,int y, int x1,int y1, 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); @@ -182,11 +188,13 @@ static void render2(gfxpage_t*page, gfxdevice_t*dev, int x,int y, int x1,int y1, pi->doc->processLinks((OutputDev*)outputDev, page->nr); outputDev->finishPage(); outputDev->setDevice(0); + delete outputDev; if(middev) { gfxdevice_rescale_setdevice(middev, 0x00000000); middev->finish(middev); } + }