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 subdir bladeenc
[swftools.git]
/
pdf2swf
/
SWFOutputDev.cc
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
1ac8940
..
6af4102
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);
}
}
@@
-1528,7
+1534,7
@@
void pdfswf_performconversion()
for(t=0;t<pagepos;t++)
{
currentpage = pages[t];
for(t=0;t<pagepos;t++)
{
currentpage = pages[t];
- doc->displayPage((OutputDev*)output, currentpage, /*zoom*/100, /*rotate*/0, /*doLinks*/(int)1);
+ doc->displayPage((OutputDev*)output, currentpage, /*dpi*/72, /*rotate*/0, /*doLinks*/(int)1);
}
}
}
}