swftools-common
[Top][All Lists]
Advanced

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

RE: [Swftools-common] pdf2swf quits without converting or warning at 'Ge


From: Eric Adriaans | Dsens
Subject: RE: [Swftools-common] pdf2swf quits without converting or warning at 'Generating info structure'
Date: Tue, 9 Feb 2010 13:27:40 +0100

Hey Joseph,

I think all dependencies are ok now, though I'm a bit confused about what
the 'linux-gate.so.1' dependency is, since by the looks of it, it doesn't
point anywhere.

ldd /usr/local/bin/pdf2swf
        linux-gate.so.1 =>  (0x00beb000)
        libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0x00cbf000)
        libungif.so.4 => /usr/lib/libungif.so.4 (0x00dbf000)
        libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 (0x00c01000)
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00755000)
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x006cd000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00991000)
        libm.so.6 => /lib/libm.so.6 (0x00519000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0079d000)
        libc.so.6 => /lib/libc.so.6 (0x003b1000)
        libgif.so.4 => /usr/lib/libgif.so.4 (0x002bd000)
        /lib/ld-linux.so.2 (0x0038e000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00110000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x003ac000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00213000)
        libdl.so.2 => /lib/libdl.so.2 (0x004f9000)

What I noticed now though, is that the output generated by my php-script,
doesn't show the error which is generated by pdf2swf. When I execute pdf2swf
in the shell, it shows:

address@hidden eric]# pdf2swf -vv -T9 LB5a_Compl_FC.pdf -o
/eric/pdf2swftest/LB5a_Compl_FC.swf
VERBOSE setting parameter flashversion to "9"
VERBOSE Generating info structure for page 1
VERBOSE Generating info structure for page 2
Floating point exception

I checked the mailinglist, and I found one similar problem. I'll reply to
that thread too :)

Eric

-----Oorspronkelijk bericht-----
Van: Joseph Masoud [mailto:address@hidden 
Verzonden: maandag 8 februari 2010 23:05
Aan: Eric Adriaans | Dsens
Onderwerp: Re: [Swftools-common] pdf2swf quits without converting or warning
at 'Generating info structure'

On 08/02/10 21:27, Eric Adriaans | Dsens wrote:
> Thanx for helping me out :) I really appreciate it :)
>
> address@hidden bin]# ldd pdf2swf
>          linux-gate.so.1 =>   (0x001fe000)
>          libz.so.1 =>  /usr/local/lib/libz.so.1 (0x00e30000)
>          libfreetype.so.6 =>  /usr/local/lib/libfreetype.so.6 (0x00c4b000)
>          libstdc++.so.6 =>  /usr/lib/libstdc++.so.6 (0x00110000)
>          libm.so.6 =>  /lib/libm.so.6 (0x008c5000)
>          libgcc_s.so.1 =>  /lib/libgcc_s.so.1 (0x00d4e000)
>          libc.so.6 =>  /lib/libc.so.6 (0x005a1000)
>          /lib/ld-linux.so.2 (0x00cff000)
>
> Greetings,
> Eric
>
> -----Oorspronkelijk bericht-----
> Van: Joseph Masoud [mailto:address@hidden
> Verzonden: maandag 8 februari 2010 20:36
> Aan: Eric Adriaans | Dsens
> Onderwerp: Re: [Swftools-common] pdf2swf quits without converting or
warning
> at 'Generating info structure'
>
> On 08/02/10 17:05, Eric Adriaans | Dsens wrote:
>    
>> Hi Joseph,
>>
>> I just installed the corefonts, but it doesn't make any difference. But
>> shouldn't pdf2swf be able to use the fonts in the pdf?
>>
>> Eric
>>
>> -----Oorspronkelijk bericht-----
>> Van: Joseph Masoud [mailto:address@hidden
>> Verzonden: maandag 8 februari 2010 17:09
>> Aan: Eric Adriaans | Dsens
>> Onderwerp: Re: [Swftools-common] pdf2swf quits without converting or
>>      
> warning
>    
>> at 'Generating info structure'
>>
>> Our CentOS systems are identical, so I think it's very likely that
>> you're having glyph / font issues.
>>
>> Have you installed Microsoft's TrueType core fonts?
>>
>> http://corefonts.sourceforge.net/
>>
>> Make sure you support all the fonts that are included in your file.
>>
>> This is another possible starting point.
>>
>> Thanks,
>> Joseph
>>
>>
>>      
> Hi Eric,
> You need to have all the fonts that use in your font path.
>
> In the FAQ, http://wiki.swftools.org/index.php/FAQ
>
> Read the section:
>
> "The fonts in the SWFs generated by pdf2swf are wrong!"
>
> "Provided you actually own the font in question (here:
> Myriad-Roman.ttf), you can copy that fonts into your current directory
> and pass the "-F ./" (--fontpath ./) option to pdf2swf. If you use a
> font in several PDFs, you can also simply copy it to (on Windows)
> C:\SWFTools\Fonts\, or (on Unix) /usr/local/share/swftools/fonts to make
> it work all the time."
>
> I had lots of issues with glyphs and fonts when I first started using
> Swftools on Cent OS.  I have converted your file on my CentOS server so
> it is doable.
>
> Can you go to /usr/local/bin and issue:
>
> ldd pdf2swf
>
> Paste the results back.
>
> Thanks,
> Joseph
>
>
>    
Hi Eric,
So you have quite a few dependencies missing:

1. Install libjpeg and libjpeg-devel
2. Install giflib, giflib-utils and giflib-devel
3. Install libXdmcp and libXdmcp-devel
4. Install libXau and libXau-devel
5. Install libX11 and libX11-devel

I have a headless server.  The libraries above are required to process 
images effectively.

After you're done, download swftools 0.9.0 and install again.

Make sure your ldd looks like mine:

     libungif.so.4 => /usr/lib64/libungif.so.4 (0x00002ad1ef8a0000)
     libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00000038f7200000)
     libz.so.1 => /usr/lib64/libz.so.1 (0x00000038f1a00000)
     libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x000000322ea00000)
     libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002ad1efaa2000)
     libm.so.6 => /lib64/libm.so.6 (0x00002ad1efda2000)
     libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002ad1f0026000)
     libc.so.6 => /lib64/libc.so.6 (0x00002ad1f0234000)
     libgif.so.4 => /usr/lib64/libgif.so.4 (0x00002ad1f058b000)
     /lib64/ld-linux-x86-64.so.2 (0x00002ad1ef683000)
     libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002ad1f0794000)
     libXau.so.6 => /usr/lib64/libXau.so.6 (0x00000038fd200000)
     libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00000038f9600000)
     libdl.so.2 => /lib64/libdl.so.2 (0x00002ad1f0aa1000)


Then get back to me.  Some of these maybe more than you need, but better 
safe than sorry.

Thanks,
Joseph






reply via email to

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