[Top][All Lists]

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

RE: [Swftools-common] Re: Help

From: Imran Malik
Subject: RE: [Swftools-common] Re: Help
Date: Tue, 25 Aug 2009 17:46:01 +0000

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: address@hidden
> To: address@hidden
> Subject: Re: [Swftools-common] Re: Help
> 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

Windows Live: Make it easier for your friends to see what you’re up to on Facebook. Find out more.

reply via email to

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