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:
6b4c9d7
)
cleared up.
author
kramm
<kramm>
Thu, 1 Nov 2001 01:15:23 +0000
(
01:15
+0000)
committer
kramm
<kramm>
Thu, 1 Nov 2001 01:15:23 +0000
(
01:15
+0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
bffb3b5
..
122e000
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-235,6
+235,8
@@
public:
int t1id;
int jpeginfo; // did we write "Page contains jpegs" yet?
int pbminfo; // did we write "Page contains jpegs" yet?
int t1id;
int jpeginfo; // did we write "Page contains jpegs" yet?
int pbminfo; // did we write "Page contains jpegs" yet?
+
+ GfxState *laststate;
};
char mybuf[1024];
};
char mybuf[1024];
@@
-619,6
+621,7
@@
void SWFOutputDev::endString(GfxState *state)
void SWFOutputDev::startPage(int pageNum, GfxState *state)
{
double x1,y1,x2,y2;
void SWFOutputDev::startPage(int pageNum, GfxState *state)
{
double x1,y1,x2,y2;
+ laststate = state;
logf("<debug> startPage %d\n", pageNum);
logf("<notice> processing page %d", pageNum);
logf("<debug> startPage %d\n", pageNum);
logf("<notice> processing page %d", pageNum);
@@
-645,16
+648,16
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
rgb.r = 0;
rgb.g = 0;
rgb.b = 1;
rgb.r = 0;
rgb.g = 0;
rgb.b = 1;
- cvtu2d(this, x1, y1, &x, &y);
+ cvtUserToDev(x1, y1, &x, &y);
points[0].x = points[4].x = (int)x;
points[0].y = points[4].y = (int)y;
points[0].x = points[4].x = (int)x;
points[0].y = points[4].y = (int)y;
- cvtu2d(this, x2, y1, &x, &y);
+ cvtUserToDev(x2, y1, &x, &y);
points[1].x = (int)x;
points[1].y = (int)y;
points[1].x = (int)x;
points[1].y = (int)y;
- cvtu2d(this, x2, y2, &x, &y);
+ cvtUserToDev(x2, y2, &x, &y);
points[2].x = (int)x;
points[2].y = (int)y;
points[2].x = (int)x;
points[2].y = (int)y;
- cvtu2d(this, x1, y2, &x, &y);
+ cvtUserToDev(x1, y2, &x, &y);
points[3].x = (int)x;
points[3].y = (int)y;
points[3].x = (int)x;
points[3].y = (int)y;
@@
-759,7
+762,7
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
{
swfoutput_linktourl(&output, url, points);
}
{
swfoutput_linktourl(&output, url, points);
}
- logf("<notice> \"%s\" link to \"%s\" (%d)\n", type, s, page);
+ logf("<verbose> \"%s\" link to \"%s\" (%d)\n", type, s, page);
}
}
}
}