git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a65926
)
pass per-document parameters to the output device, too
author
Matthias Kramm
<kramm@quiss.org>
Thu, 22 Jan 2009 02:38:19 +0000
(18:38 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Thu, 22 Jan 2009 02:38:19 +0000
(18:38 -0800)
lib/pdf/pdf.cc
patch
|
blob
|
history
diff --git
a/lib/pdf/pdf.cc
b/lib/pdf/pdf.cc
index
ed10e20
..
71e7cfa
100644
(file)
--- 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);