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 "loading" message below the logo.
[swftools.git]
/
pdf2swf
/
SWFOutputDev.cc
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
1ac8940
..
78be919
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-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);
}
}