From: kramm Date: Sat, 10 Sep 2005 12:31:45 +0000 (+0000) Subject: added support for get(..,"width"), get(..,"height") X-Git-Tag: xpdf-3-01~65 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=9765f3a480506eea5247a0801d21976e2b32c1e1 added support for get(..,"width"), get(..,"height") --- 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; }