added http style function calling.
authorkramm <kramm>
Sat, 4 Jan 2003 17:27:34 +0000 (17:27 +0000)
committerkramm <kramm>
Sat, 4 Jan 2003 17:27:34 +0000 (17:27 +0000)
pdf2swf/swfoutput.cc

index 407907b..38a2711 100644 (file)
@@ -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();