PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Tools and Utilities » PhpDocumentor » Bug #8773

PDF Convertor fails due to being unable to find fonts

Details

Submitted2006-09-23 15:54 UTC
Fromphpdoc at ryanwilliams dot org
Assignedcellog
StatusClosed
PackagePhpDocumentor
PHP Version5.1.6
OSLinux / FreeBSD
Roadmaps(Not assigned)

Comments

[2006-09-23 15:54 UTC] phpdoc at ryanwilliams dot org

Description:
------------
PDF:default:default causes a lot of undefined index errors
when trying to output a PDF. The resulting file is screwed up.

The cause is due to the class.pdf.php file looking in a
relative directory for the fonts "./templates/fonts". The full
path being:
/usr/local/share/pear/PhpDocumentor/phpDocumentor/Converters/
PDF/default/templates/fonts/

This fails because pear has placed the fonts in the following
directory
/usr/local/share/pear/data/PhpDocumentor/phpDocumentor/
Converters/PDF/default/templates/fonts/

A simple symlink to the templates directory fixes the issue.

Test script:
---------------
Just output any documentation as PDF:default:default

Expected result:
----------------
A working PDF file

Actual result:
--------------
Screwed up PDF as the convertor is unable to work out the
height of the fonts and prints every line of text directly on
top of the next