added swf_SetDefineBBox().
[swftools.git] / pdf2swf / swfoutput.h
index 364c961..50ee1c9 100644 (file)
@@ -44,6 +44,8 @@ struct swfoutput
     RGBA strokergb;
     RGBA fillrgb;
     int drawmode;
+    int x1,y1,x2,y2;
+    void*internal;
 };
 
 /* outline definition, adapted from t1lib.h */
@@ -93,12 +95,15 @@ typedef SWF_PATHSEGMENT  SWF_OUTLINE;
 #define DRAWMODE_CLIP 4
 #define DRAWMODE_EOCLIP 5
 
-void swfoutput_init(struct swfoutput*, char*filename, int x1, int y1, int x2, int y2);
 void swfoutput_setparameter(char*name, char*value);
 
-void swfoutput_setprotected(); //write PROTECT tag
-
-void swfoutput_newpage(struct swfoutput*);
+void swfoutput_init(struct swfoutput*);
+int swfoutput_save(struct swfoutput*, char*filename);
+SWF* swfoutput_get(struct swfoutput*);
+void swfoutput_getdimensions(struct swfoutput*, int*x1, int*y1, int*x2, int*y2);
+    
+void swfoutput_pagefeed(struct swfoutput*obj);
+void swfoutput_newpage(struct swfoutput*, int pageNum, int movex, int movey, int x1, int y1, int x2, int y2);
 
 void swfoutput_setfont(struct swfoutput*, char*fontid, char*filename);
 int swfoutput_queryfont(struct swfoutput*, char*fontid);