X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=pdf2swf%2Fswfoutput.cc;h=5d1c10f7a94dfa9535e0017e9be2bb56dd180471;hp=797488fcf1bedbbd3d88cf5aad9b174e359098a6;hb=5eb026e91bef063b683796fbbc03158d5711a4e4;hpb=37a3dacfc10c7cf5cdcec652cbd0c3f515a16c32 diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 797488f..5d1c10f 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -1339,7 +1339,8 @@ static void endpage(struct swfoutput*obj) static int firstpage = 1; void swfoutput_newpage(struct swfoutput*obj, int pageNum, int x1, int y1, int x2, int y2) { - endpage(obj); + if(!firstpage) + endpage(obj); for(depth--;depth>=startdepth;depth--) { tag = swf_InsertTag(tag,ST_REMOVEOBJECT2);