Hi,
i just stumbled over the same issue on FreeBSD 8.1.
First I realized that I did not have any true type fonts installed on the machine. On my system OTRS was set up to use DejaVu as its default font (See Core::PDF module in the SysConfig module).
The font is available in the ports:
Code: Select all
cd /usr/ports/x11-fonts/dejavu
make install clean
The second problem was that PDF::API2 did not find the font. The port installs the font in /usr/local/lib/X11/fonts/dejavu. On my machine PDF::API2 searches
Code: Select all
../..//PDF/API2/fonts
/usr/local/otrs/bin/Custom/PDF/API2/fonts
/usr/local/otrs/bin/Kernel/cpan-lib/PDF/API2/fonts
/usr/local/otrs/bin/PDF/API2/fonts
/usr/local/otrs/bin/cgi-bin/../../Kernel/cpan-lib/PDF/API2/fonts
/usr/local/otrs/bin/cgi-bin/../../PDF/API2/fonts
/usr/local/lib/perl5/5.8.9/BSDPAN/PDF/API2/fonts
/usr/local/lib/perl5/site_perl/5.8.9/mach/PDF/API2/fonts
/usr/local/lib/perl5/site_perl/5.8.9/PDF/API2/fonts
/usr/local/lib/perl5/5.8.9/mach/PDF/API2/fonts
/usr/local/lib/perl5/5.8.9/PDF/API2/fonts
./PDF/API2/fonts|/usr/share/fonts
/usr/local/share/fonts|c:/windows/fonts|c:/winnt/fonts
Since I only have one font installed I decided to symlink /usr/local/lib/X11/fonts/dejavu to /usr/local/share/fonts.
Code: Select all
cd /usr/local/share
ln -s /usr/local/lib/X11/fonts/dejavu fonts
PDF::API2 is now happy and OTRS creates PDF without problems.