X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=pdf2swf%2Fswfoutput.cc;h=330c89064a59aecd31b1db1626b20ad37c5b9b9e;hp=2161d9e3fed2e074857df4a99a4204a7030207d0;hb=16a1056ad5c25f12f7c9b291fcc78dd1f594671c;hpb=602d0f0a1c8ad614029f235cc6ff38bfe26334e8 diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 2161d9e..330c890 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -36,6 +36,7 @@ int drawonlyshapes=0; int jpegquality=85; int storeallcharacters=0; int enablezlib=0; +int insertstoptag=0; static int flag_protected = 0; typedef unsigned char u8; @@ -969,6 +970,14 @@ static void endpage(struct swfoutput*obj) endtext(); while(clippos) swfoutput_endclip(obj); + + if(insertstoptag) { + ActionTAG*atag=0; + atag = action_Stop(atag); + atag = action_End(atag); + tag = swf_InsertTag(tag,ST_DOACTION); + swf_ActionSet(tag,atag); + } tag = swf_InsertTag(tag,ST_SHOWFRAME); }