Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82339 - clibpdf support for php is not enabled, even if the lib is installed ! (or maybe a new useflag shuld created?)
Summary: clibpdf support for php is not enabled, even if the lib is installed ! (or ma...
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 60438
  Show dependency tree
 
Reported: 2005-02-17 04:13 UTC by Daniel Heule
Modified: 2005-08-25 12:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Heule 2005-02-17 04:13:47 UTC
no useflag or detection of clibpdf is made during the ebuild install.

Reproducible: Always
Steps to Reproduce:
1. emerge clibpdf, emerge mod_php-4.3.10


Actual Results:  
no clibpdf support in php

Expected Results:  
php with clibpdf support.
Comment 1 Daniel Heule 2005-02-17 05:27:08 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)
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2005-08-25 12:27:16 UTC
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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-08-25 12:30:50 UTC
Feel free to reopen when a PECL package is available for this.