Home » Tools and Utilities » PhpDocumentor » Bug #8773
PDF Convertor fails due to being unable to find fonts
Details
| Submitted | 2006-09-23 15:54 UTC |
|---|---|
| From | phpdoc at ryanwilliams dot org |
| Assigned | cellog |
| Status | Closed |
| Package | PhpDocumentor |
| PHP Version | 5.1.6 |
| OS | Linux / 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