git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement -t (--stop) option.
[swftools.git]
/
pdf2swf
/
swfoutput.cc
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
2161d9e
..
330c890
100644
(file)
--- 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 jpegquality=85;
int storeallcharacters=0;
int enablezlib=0;
+int insertstoptag=0;
static int flag_protected = 0;
typedef unsigned char u8;
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);
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);
}
tag = swf_InsertTag(tag,ST_SHOWFRAME);
}