From 9765f3a480506eea5247a0801d21976e2b32c1e1 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 10 Sep 2005 12:31:45 +0000 Subject: [PATCH] added support for get(..,"width"), get(..,"height") --- pdf2swf/swfoutput.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 3861be7..569aef0 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -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; } -- 1.7.10.4