Summary: | clibpdf support for php is not enabled, even if the lib is installed ! (or maybe a new useflag shuld created?) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Heule <nerve> |
Component: | Eclasses | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED LATER | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | 2004.3 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 60438 |
Description
Daniel Heule
2005-02-17 04:13:47 UTC
Please also add the patch from "http://mpex.net/software/mirror/cpdf_patch" to the lib, which brings the function cpdf_textbox from the lib to php. Here is the description of the patch : Then recompile php with cpdf support and use the new function. It has to be called in between the cpdf_begin_text and cpdf_end_text tags cpdf_textbox(int pdfdoc, double x-koor, double y-koor, double width, double height, double angle, double linespace, string text [, int alignmode [, float paragraphspacing [, int newlinemode]]]); Notes: Alignmode aligns the text within the box: 0 -- left (default) 1 -- center 2 -- right 3 -- justify Newline mode: if non-zero, NL ("\n") is a line break, if 0 reformatted (default 0) Actually we have no plans to support clibpdf on Gentoo's PHP for now. PHP 5.1 will drop support for clibpdf also, so we neither have plans to include it in the PHP overlay (link: http://svn.gnqs.org/projects/gentoo-php-overlay/ ), please use pdflib as alternative, in the overlay pdflib works flawlessy. clibpdf will maybe be added sometimes in the future as a PECL package, since upstream recently moved it to PECL and it should be made available there soon. Feel free to reopen when a PECL package is available for this. |