I got a 22 MB combined SWF for a 6 MB PDF that has multibyte (Japanese)
fonts.

Thanks,
Saravanan

On Thu, May 6, 2010 at 3:17 PM, Chris Pugh <[email protected]> wrote:

> Glad the workaround got you sort of where you wnated to be.. ;o)
>
> I am not familiar enough with the codebase to tell you exaclty what happens
> during file combination.  Experiment with the various options,
>
>   http://www.swftools.org/swfcombine.html
>
> and see what happens.   Font's may well be duplicated, and  symbols
> probably
> renamed and reused, both of which would probably increase file size.
>  Something
> you may hjave to live with for now.
>
> When you say significant, how significant?
>
>
> Chris.
>
> On 4 May 2010 21:38, Saravanan Ganesan <[email protected]>
> wrote:
> > Thank you Chris for your suggestions. I tried running pdf2swf splitting
> in
> > multiple page ranges and it worked fine for all the pdfs that crashed
> > pdf2swf earlier. So, I am assuming the problem could be due to low on
> > system/memory resources when converting the entire pdf.
> >
> > I then used swfcombine to concatenate the seperate swfs into one file.
> The
> > only disadvantage I see in generating multiple swfs by page ranges and
> then
> > concatenating them is that the final swf file size is signifacantly
> bigger
> > than what it could have been if pdf2swf generated as a single swf. Is
> this
> > because the fonts and symbols are duplicated in each of the swfs?
> >
> > Thanks,
> > Saravanan
> >
> > On Wed, Apr 28, 2010 at 8:31 PM, Chris Pugh <[email protected]>
> wrote:
> >>
> >> Could easily be that the pdf is too complex, and/or pdf2swf itself is
> >> running low on system resources and memory.
> >>
> >> Try using one of the various levels of verbose, i.e. -v[v][v][v] in your
> >> command..  It should give you a rough idea of what pdf2swf was actually
> >> doing when it bailed out, or got stuck thinking.
> >>
> >> You could also try running pdf2swf with increased privileges, with no
> >> other
> >> ( or minimal ) programs running, compatibility mode, or even  in Safe
> >> Mode,
> >> It may help.  No guarantees though, there. ;o)
> >>
> >> To get round the issue with the problem page(s), try converting them
> >> separately
> >> from the rest of the document by judicious use of the page range option,
> >>
> >>    -p, --pages range
> >>
> >> i.e. split the document into sections.
> >>
> >> pdf2swf quite often behaves much better, under Linux.
> >>
> >> HTH.
> >>
> >> Regards,
> >>
> >>
> >>
> >> Chris.
> >>
> >> On 28 April 2010 07:01, Saravanan Ganesan <[email protected]>
> >> wrote:
> >> > Hello,
> >> >
> >> > I recently started to use pdf2swf for a custom viewer and it worked
> >> > brilliantly with most pdfs I have converted.
> >> >
> >> > Currently I have couple of pdfs that I am unable to convert because
> the
> >> > tool
> >> > simply crashes while processing a certain page in each of these pdfs
> >> > without
> >> > any error message. I tried on Windows XP and Vista and the Command
> >> > window
> >> > simply crashes on both OS after the tool gets struck on those pages. I
> >> > also
> >> > tried with -O1 but it did not help.
> >> >
> >> > This occurs on a English text pdf and also with another one that has
> >> > Japanese characters.
> >> >
> >> > Has anyone had the same issue and found a solution? Any help is
> greatly
> >> > appreciated.
> >> >
> >> >
> >> > Thanks,
> >> > Saravanan
> >
> >
>

Reply via email to