git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added getLogLevel() function.
[swftools.git]
/
pdf2swf
/
xpdf
/
Gfx.cc
diff --git
a/pdf2swf/xpdf/Gfx.cc
b/pdf2swf/xpdf/Gfx.cc
index
a52aa02
..
e86d6b1
100644
(file)
--- a/
pdf2swf/xpdf/Gfx.cc
+++ b/
pdf2swf/xpdf/Gfx.cc
@@
-424,7
+424,7
@@
Gfx::Gfx(XRef *xrefA, OutputDev *outA, int pageNum, Dict *resDict,
fontChanged = gFalse;
clip = clipNone;
ignoreUndef = 0;
fontChanged = gFalse;
clip = clipNone;
ignoreUndef = 0;
- out->startPage(pageNum, state);
+ out->startPage(pageNum, state, cropBox->x1,cropBox->y1,cropBox->x2,cropBox->y2);
out->setDefaultCTM(state->getCTM());
out->updateAll(state);
for (i = 0; i < 6; ++i) {
out->setDefaultCTM(state->getCTM());
out->updateAll(state);
for (i = 0; i < 6; ++i) {
@@
-435,7
+435,7
@@
Gfx::Gfx(XRef *xrefA, OutputDev *outA, int pageNum, Dict *resDict,
abortCheckCbkData = abortCheckCbkDataA;
// set crop box
abortCheckCbkData = abortCheckCbkDataA;
// set crop box
- if (crop) {
+ /*if (crop) {
state->moveTo(cropBox->x1, cropBox->y1);
state->lineTo(cropBox->x2, cropBox->y1);
state->lineTo(cropBox->x2, cropBox->y2);
state->moveTo(cropBox->x1, cropBox->y1);
state->lineTo(cropBox->x2, cropBox->y1);
state->lineTo(cropBox->x2, cropBox->y2);
@@
-444,7
+444,7
@@
Gfx::Gfx(XRef *xrefA, OutputDev *outA, int pageNum, Dict *resDict,
state->clip();
out->clip(state);
state->clearPath();
state->clip();
out->clip(state);
state->clearPath();
- }
+ }*/
}
Gfx::Gfx(XRef *xrefA, OutputDev *outA, Dict *resDict,
}
Gfx::Gfx(XRef *xrefA, OutputDev *outA, Dict *resDict,
@@
-1581,6
+1581,8
@@
void Gfx::doFunctionShFill1(GfxFunctionShading *shading,
// center of the rectangle
xM = 0.5 * (x0 + x1);
yM = 0.5 * (y0 + y1);
// center of the rectangle
xM = 0.5 * (x0 + x1);
yM = 0.5 * (y0 + y1);
+
+ out->useGradients();
// the four corner colors are close (or we hit the recursive limit)
// -- fill the rectangle; but require at least one subdivision
// the four corner colors are close (or we hit the recursive limit)
// -- fill the rectangle; but require at least one subdivision
@@
-1799,6
+1801,9
@@
void Gfx::doAxialShFill(GfxAxialShading *shading) {
vy0 = ty + sMax * dx;
i = 0;
vy0 = ty + sMax * dx;
i = 0;
+ if(i < axialMaxSplits)
+ out->useGradients();
+
while (i < axialMaxSplits) {
// bisect until color difference is small enough or we hit the
while (i < axialMaxSplits) {
// bisect until color difference is small enough or we hit the
@@
-2009,6
+2014,9
@@
void Gfx::doRadialShFill(GfxRadialShading *shading) {
shading->getColor(ta, &colorA);
}
shading->getColor(ta, &colorA);
}
+ if(ia < radialMaxSplits)
+ out->useGradients();
+
while (ia < radialMaxSplits) {
// go as far along the t axis (toward t1) as we can, such that the
while (ia < radialMaxSplits) {
// go as far along the t axis (toward t1) as we can, such that the