I haven't used pdflib but I did find the following reference:

http://www.php.net/manual/en/faq.using.php#faq.using.freepdf

I have used html2doc with success.

Regards,

Rich


On Tue, 17 Aug 2004 05:59:34 +0930 "Luke (Terry) Vanderfluit" <[EMAIL PROTECTED]> wrote:
Hi Rich,

I've been able to install php with both gd and pdflib compiled in,
however when I run a php page testing pdflib I get an error.
This is the php page file I use to test pdf functionality:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<?PHP
$file = fopen("testPDF.pdf", "w");
$dokument = pdf_open($file);
pdf_begin_page($dokument, 200, 100);
pdf_set_font($dokument,"Times-Roman",14, "winansi");
pdf_set_text_pos($dokument,20,50);
pdf_show($dokument,"PDFLib is working");
pdf_end_page($dokument);
$dokument = pdf_close($dokument);
fclose($file);
header("location:php.pdf\n\n");
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and this is the error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fatal error: PDFlib error: [1102] PDF_begin_page: Parameter 'width' must
be positive in /var/www/htdocs/testPDF.php on line 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




On Tue, 2004-08-17 at 01:53, Willis, Rich wrote:
I don't know if this would help but why not try to load the newest Redhat 9 version of libpng and libpng-devel and reload gd and then check to see if /usr/lib/libpng.a and libpng.so exist and redo php configure and install

ftp://ftp.redhat.com/pub/redhat/linux/updates/9/en/os/i386/
rpm -Uvh libpng-1.2.2-20.i386.rpm
rpm -Uvh libpng-devel-1.2.2-20.i386.rpm

ftp://ftp.redhat.com/pub/redhat/linux/9/en/os/i386/RedHat/RPMS/
rpm -Uvh gd-1.8.4-11.i386.rpm
rpm -Uvh gd-devel-1.8.4-11.i386.rpm
rpm -Uvh gd-progs-1.8.4-11.i386.rpm

Hope this helps

Regards,

Rich

On Sat, 14 Aug 2004 19:57:02 +0930
"Luke (Terry) Vanderfluit" <[EMAIL PROTECTED]> wrote:
> Hi,
> > I'm installing php4.3.8 on a RedHat 9 system.
> I'd like to compile gd and pdflib in.
> > my configure line looks like this:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-mysql=/usr/local/mysql/ --with-pgsql=/usr/local/pgsql/
> --with-pdflib=/usr/local/pdfLib --with-zlib-dir=/usr/lib/
> --enable-versioning --enable-track-vars=yes --enable-url-includes
> --enable-sysvshm=yes --enable-sysvsem=yes --enable-ftp
> --with-config-file-path=/etc --with-gd
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > The 'configure' scripts chokes on gd
> I get the following error output.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> checking for GD support... yes
> checking for the location of libjpeg... no
> checking for the location of libpng... no
> checking for the location of libXpm... no
> checking for FreeType 1.x support... no
> checking for FreeType 2... no
> checking for T1lib support... no
> checking whether to enable truetype string function in GD... no
> checking whether to enable JIS-mapped Japanese font support in GD... >no
> checking for fabsf... yes
> checking for floorf... yes
> If configure fails try --with-jpeg-dir=<DIR>
> configure: error: libpng.(a|so) not found
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > I have checked that I have the following RPMs installed
> libjpeg-6b-26
> libpng-1.2.2-16
> libtiff-3.5.7-11
> libpng10-1.0.13-8
> gd-1.8.4-11
> > obviously that isn't enough: either I have to tell the compiler >where to
> find stuff or I'd have to install these libraries from source
> > I don't know...
> anyone have a clue?
> > TIA,
> kind regards,
> Luke
> > -- > ========================
> Luke (Terry) Vanderfluit > Mobile: 0421 276 282 > ========================
--
========================
Luke (Terry) Vanderfluit Mobile: 0421 276 282 ========================



Regards,

Rich

Reply via email to