So here is what I got.
> ldd swf2pdf
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x0000002a9566e000)
libz.so.1 => /usr/lib/libz.so.1 (0x0000002a95790000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x0000002a958a5000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x0000002a95a33000)
libm.so.6 => /lib/libm.so.6 (0x0000002a95c10000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0000002a95d93000)
libc.so.6 => /lib/libc.so.6 (0x0000002a95ea0000)
/lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
This is for root and non-root.
The -vvv starts to differ when the first font is included.
Root:
VERBOSE Updating font to LWBHYX+Tele-Grotesk-Halb-2449-0
VERBOSE =========== Tele-Grotesk-Halb (ID:2449,0) ==========
VERBOSE | Tag: LWBHYX+Tele-Grotesk-Halb-2449-0
VERBOSE | Type: TrueType
VERBOSE | Embedded id: LWBHYX+Tele-Grotesk-Halb id: 2455
TRACE 26 glyphs.
DEBUG Font LWBHYX+Tele-Grotesk-Halb-2449-0
DEBUG | ID: 5
DEBUG | Version: 2
DEBUG | Name: LWBHYX+Tele-Grotesk-Halb-2449-0
DEBUG | Numchars: 26
DEBUG | Maxascii: 253
Non-Root:
VERBOSE Updating font to LWBHYX+Tele-Grotesk-Halb-2449-0
VERBOSE =========== Tele-Grotesk-Halb (ID:2449,0) ==========
VERBOSE | Tag: LWBHYX+Tele-Grotesk-Halb-2449-0
VERBOSE | Type: TrueType
VERBOSE | Embedded id: LWBHYX+Tele-Grotesk-Halb id: 2455
TRACE 0 glyphs.
DEBUG Font LWBHYX+Tele-Grotesk-Halb-2449-0
DEBUG | ID: 5
DEBUG | Version: 2
DEBUG | Name: LWBHYX+Tele-Grotesk-Halb-2449-0
DEBUG | Numchars: 0
DEBUG | Maxascii: 0
Somehow there are no glyphs and chars found.
The root version is then continuing with listing / adding glyphs, then
rendering then drawing.
The non-root versions immediately renders and starts to complain like this
ERROR Invalid charid 50 for font (0 characters)
MfG
Michael
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Matthias Kramm
Gesendet: Freitag, 21. November 2008 09:07
An: [email protected]
Betreff: Re: [Swftools-common] pdf2swf only works for root
On Fri, Nov 21, 2008 at 08:59:16AM +0100, Geisser, Michael <[EMAIL PROTECTED]>
wrote:
> I'll attached one verbose file. You'll see that the fonts are added,
> but I still got the same result.
This is pretty weird. The best explanation I can come up with right now
is that pdf2swf might be linking against a different freetype library
when you're root- do you run pdf2swf in a chroot environment?
Could you try running "ldd pdf2swf" with both root and non-root?
Also, if you run pdf2swf with the "-vvv" option, at which point exactly
do the two log outputs (root and non-root) start to differ?
Schöne Grüsse
Matthias