From: kramm Date: Sat, 4 Jan 2003 17:27:34 +0000 (+0000) Subject: added http style function calling. X-Git-Tag: old_makefiles2~2 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=09d5981b80d20359c61b6e163daeb6d62567a3b4;p=swftools.git added http style function calling. --- diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 407907b..38a2711 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -1166,6 +1166,15 @@ static void drawlink(struct swfoutput*obj, ActionTAG*,ActionTAG*, swfcoord*point void swfoutput_linktourl(struct swfoutput*obj, char*url, swfcoord*points) { ActionTAG* actions; + if(!strncmp("http://pdf2swf:", url, 15)) { + char*tmp = strdup(url); + int l = strlen(tmp); + if(tmp[l-1] == '/') + tmp[l-1] = 0; + swfoutput_namedlink(obj, tmp+15, points); + free(tmp); + return; + } if(shapeid>=0) endshape();