git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generated by PreLoaderTemplate.c
[swftools.git]
/
pdf2swf
/
SWFOutputDev.cc
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
a3077a4
..
78be919
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-548,7
+548,7
@@
void SWFOutputDev::beginString(GfxState *state, GString *s)
state->getFontTransMat(&m11, &m12, &m21, &m22);
m11 *= state->getHorizScaling();
m21 *= state->getHorizScaling();
state->getFontTransMat(&m11, &m12, &m21, &m22);
m11 *= state->getHorizScaling();
m21 *= state->getHorizScaling();
- swfoutput_setfontmatrix(&output, m11, -m12, m21, -m22);
+ swfoutput_setfontmatrix(&output, m11, -m21, m12, -m22);
}
int charcounter = 0;
}
int charcounter = 0;
@@
-631,6
+631,7
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
char*s = "-?-";
char*type = "-?-";
char*url = 0;
char*s = "-?-";
char*type = "-?-";
char*url = 0;
+ char*named = 0;
int page = -1;
switch(action->getKind())
{
int page = -1;
switch(action->getKind())
{
@@
-666,6
+667,7
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
GString*name = l->getName();
if(name) {
s = name->lowerCase()->getCString();
GString*name = l->getName();
if(name) {
s = name->lowerCase()->getCString();
+ named = name->getCString();
if(strstr(s, "next") || strstr(s, "forward"))
{
page = currentpage + 1;
if(strstr(s, "next") || strstr(s, "forward"))
{
page = currentpage + 1;
@@
-732,6
+734,10
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
{
swfoutput_linktourl(&output, url, points);
}
{
swfoutput_linktourl(&output, url, points);
}
+ else if(named)
+ {
+ swfoutput_namedlink(&output, named, points);
+ }
logf("<verbose> \"%s\" link to \"%s\" (%d)\n", type, s, page);
}
}
logf("<verbose> \"%s\" link to \"%s\" (%d)\n", type, s, page);
}
}