Could you please explain the following command? pdf2swf -s breakonwarning a.pdf -o page%.swf || pdf2swf -s poly2bitmap a.pdf -o page%.swf
How will this command run? Will it convert all remaining pages after getting a warning? Please let me know? > Date: Tue, 25 Aug 2009 17:59:18 +0200 > From: [email protected] > To: [email protected] > Subject: Re: [Swftools-common] Re: Help > > On Tue, Aug 25, 2009 at 02:06:57PM +0000, Imran Malik > <[email protected]> wrote: > > First i want to convert pages without poly2bitmap. And on error, > > pdf2swf should auto-covnert single page with poly2bitmap and move to > > next page without poly2bitmap. > > Try something like this: > > pagenum=`pdfinfo file.pdf | grep Pages | sed 's/^[^0-9]*\([0-9]\+\)$/\1/'` > for i in `seq $num_pages`;do (pdf2swf -s breakonwarning -p$i file.pdf -o > page$i.swf || \ > pdf2swf -s poly2bitmap -p$i file.pdf -o page$i.swf); \ > done > swfcombine --cat page*.swf -o file.swf > > Be aware that the output file might be larger, as you run single > conversion processes for each page, hence fonts and bitmaps are > duplicated. > > Matthias > > > > _________________________________________________________________ Windows Live: Make it easier for your friends to see what you’re up to on Facebook. http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009
