added support for get(..,"width"), get(..,"height")
authorkramm <kramm>
Sat, 10 Sep 2005 12:31:45 +0000 (12:31 +0000)
committerkramm <kramm>
Sat, 10 Sep 2005 12:31:45 +0000 (12:31 +0000)
pdf2swf/swfoutput.cc

index 3861be7..569aef0 100644 (file)
@@ -1215,6 +1215,10 @@ void* swfresult_get(gfxresult_t*gfx, char*name)
        return (void*)(swf->movieSize.xmax/20);
     } else if(!strcmp(name, "ymax")) {
        return (void*)(swf->movieSize.ymax/20);
+    } else if(!strcmp(name, "width")) {
+       return (void*)((swf->movieSize.xmax - swf->movieSize.xmin)/20);
+    } else if(!strcmp(name, "height")) {
+       return (void*)((swf->movieSize.ymax - swf->movieSize.ymin)/20);
     }
     return 0;
 }