swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Re: Help


From: Matthias Kramm
Subject: Re: [Swftools-common] Re: Help
Date: Tue, 25 Aug 2009 17:59:18 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Tue, Aug 25, 2009 at 02:06:57PM +0000, Imran Malik <address@hidden> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]