From 09d5981b80d20359c61b6e163daeb6d62567a3b4 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 4 Jan 2003 17:27:34 +0000 Subject: [PATCH] added http style function calling. --- pdf2swf/swfoutput.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); -- 1.7.10.4