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:
48a2b9c
)
proper finish pages (close all clipping boxes)
author
kramm
<kramm>
Wed, 9 May 2007 11:14:38 +0000
(11:14 +0000)
committer
kramm
<kramm>
Wed, 9 May 2007 11:14:38 +0000
(11:14 +0000)
lib/pdf/GFXOutputDev.cc
patch
|
blob
|
history
lib/pdf/pdf.cc
patch
|
blob
|
history
diff --git
a/lib/pdf/GFXOutputDev.cc
b/lib/pdf/GFXOutputDev.cc
index
5f4b111
..
56257a5
100644
(file)
--- a/
lib/pdf/GFXOutputDev.cc
+++ b/
lib/pdf/GFXOutputDev.cc
@@
-791,8
+791,6
@@
void GFXOutputDev::endframe()
device->endclip(device);
outer_clip_box = 0;
}
-
- device->endpage(device);
}
void GFXOutputDev::finish()
diff --git
a/lib/pdf/pdf.cc
b/lib/pdf/pdf.cc
index
eba2a67
..
13957de
100644
(file)
--- a/
lib/pdf/pdf.cc
+++ b/
lib/pdf/pdf.cc
@@
-89,6
+89,7
@@
void render2(gfxpage_t*page, gfxdevice_t*output)
pi->outputDev->setXRef(pi->doc, pi->doc->getXRef());
pi->doc->displayPage((OutputDev*)pi->outputDev, page->nr, zoom, zoom, /*rotate*/0, true, true, /*doLinks*/(int)1);
pi->doc->processLinks((OutputDev*)pi->outputDev, page->nr);
+ pi->doc->endframe();
}