Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

PHP for PDF
Installing PDFLib and PHP with PDF Support
Requirements
  1. PHP 4.02+ from http://php.net
  2. PDFLib 3.0.1 from http://www.pdflib.com
This is a little recipe to get PDFlib 3.0.1 working with PHP4:
  1. download PHP directly from http://php.net Uwe Steinman patched ext/pdf/pdf.c to support PDFLib v 3.0.1

  2. download PDFLib 3.0.1 from http://www.pdflib.com
    1. apply every patch you find at http://www.pdflib.com/pdflib/patches.html
    2. Configure, Make & install PDFLib
      #./configure --enabled-shared-pdflib
      #make
      #make install
    You'll get PDFLib installed in /usr/local/lib .

  3. Configure PHP
           #./configure --with-apxs=/usr/bin/apxs \
              --with-gd  --with-pdflib=/usr/local --with-mysql=/usr/local \
              --with-config-file-path=/etc/httpd  --with-zlib-dir=/usr    \
              --with-ttf=/usr/local/include             \
              --with-jpeg-dir=/usr --with-tiff-dir=/usr \
              --with-system-regex=yes --enable-debug=no
    
           #make
           #make install
        

  4. Update System Library
           Insert  /usr/local/lib in  /etc/ld.so.conf
    
           #/sbin/ldconfig
        

  5. Test & Hack
    Now you need to restart Apache
           #apachectl restart
        
    Copy pdfclock.php in your httpd directory... test... and That's all.
Important Notes
To get working PDFLib with fonts you must pay attention to the UPR section of the PDFLib manual.
A simple way to use fonts with PDFLib is to copy the standard UPR description file included in PDFLib tarball, (fonts/pdflib.upr) into your working directory.
[ Next Page ]

[Page 1]  [Page 2]  


Comments:
RE: PDF for PHPmrudula02/16/09 06:15
generate pdfs without an extensionblacklight33211/06/08 23:26
RE: pdf formatted php material to downloadmayank tripathi04/17/07 05:12
RE: pdf formatted php material to downloaddeepthi02/13/06 06:16
pdflib.upr problemmohan02/01/06 04:47
ClibPDFVinodhini12/22/05 02:26
RE: know about how to insert image into mysqlada10/11/05 13:01
RE: Opening a PDF file from within a PHP scriptEric Bernal10/06/05 14:05
php materialbhaskar07/20/05 03:49
Could not install pdflib correctly on xpChunHung07/18/05 03:54
inserting image using FDF format in pdf formSRS06/24/05 10:50
RE: php and crystal reportskeitty04/18/05 16:08
how to insert image into DB2vijay04/01/05 07:21
php and crystal reportsImran Ali04/01/05 03:23
Diplay content in pdf fileSaravanan03/13/05 02:58
Macs/PCs print PDF differently?Mark Arenz03/08/05 10:20
RE: ps2pdfShiv02/16/05 05:20
RE: pdflibMads Møllegaard02/02/05 06:19
php form to pdf- multipe line textSaravanan01/25/05 14:24
RE: as/400 and linux and php for pdf?katrien01/18/05 08:22
RE: Mixed text (reqular mixed with bold)EH Canadian12/12/04 02:05
RE: Force Download of .pdf filesMark Malone10/13/04 20:22
Create PDFs with PHP on www.fpdf.orgTed04/27/03 09:42
Re: PHP/PDF "Options must match" on Win 2000orionk_albanian11/29/02 19:10
Dynamic concatenation of PDF files containingDlamotte10/24/02 11:38
ASCII text and magstripe encoding.Ben10/17/02 18:43
ImagesGeorge Predrovic10/14/02 20:14
RE: Pdflib &lib PDI: APPENDGunnerX10/04/02 10:42
RE: Uhm, is this going to work with Windows?Rocky Essing09/30/02 00:40
how configure php on Linux?dexter09/25/02 11:54
pdf formatted php material to downloadsrikanth09/24/02 02:25
Re: PHP/PDF "Options must match" on Win 2000evrard09/07/02 05:47
BackFilling PDF-Forms from databaseGareth09/01/02 01:46
PDF for PHPPadma08/23/02 13:21
Create arc using pdflibFrans Gunawan08/22/02 04:03
dynamic imagesjan jansen08/17/02 06:08
Relatorios em pdf com php!!Sérgio Vanderlei08/15/02 09:32
Problemtarun chopra08/14/02 07:10
RE: PDF FOR PHPelion08/11/02 08:31
how use chinese in pdflib with phpshomain08/09/02 12:56
RE: ligar dois ficheiros de phpPaulo Graça08/08/02 18:17
configurar clib en windowsluis lopez08/07/02 18:18
RE: Pdflib &lib PDI: APPENDEugene Murai07/30/02 05:14
Possible to output pdf without PDFlib?zugdud07/17/02 19:01
RE: Uhm, is this going to work with Windows?hans07/16/02 16:02
Pdflib &lib PDI: APPENDRhod06/27/02 16:29
ligar dois ficheiros de phpacosta04/28/02 19:39
PDF_add_weblink - has anyone used this?Bill Duncan04/19/02 13:56
What are the files to install PHP4?Guilherme04/09/02 08:57
Mixed text (reqular mixed with bold)Bjarke Bruun04/05/02 13:13
FPDF.org as an altBastien04/03/02 10:24
RE: Exist a free version???Kelly Khoo03/23/02 12:50
MySQL -> PHP -> PDFMichael03/17/02 12:25
PDF sizeDaniel Bass02/28/02 10:04
PDFLIB on win32 with ApacheJames Ferguson02/25/02 20:11
RE: Just generate pdf and save itNoizee02/21/02 10:43
search pdf for stringJason02/13/02 17:09
Another example?Nicki02/12/02 12:27
Just generate pdf and save itGerardo Amaya02/01/02 09:58
how to use php 'n pdf in windowlabby01/29/02 15:30
Opening a PDF file from within a PHP scriptMichael Mann01/13/02 23:16
how can i load *.eps files into my pdf?Ben01/11/02 09:40
RE: Multiple page PDFGeorge Petrineanu01/07/02 10:36
Exist a free version???Arcangelo12/12/01 07:41
2 requestsEric Huwaert12/03/01 09:25
RE: TUTORIAL TO CREATE PDF USING PHPBernhard Bauder11/30/01 17:35
TUTORIAL TO CREATE PDF USING PHPLUIS11/30/01 11:47
PDFlib & MySQL Binary Image DataYudha11/30/01 00:26
and on windows ?Neutje11/26/01 11:09
pdf file namebobby11/26/01 10:27
RE: Multiple page PDFube11/06/01 14:21
Tables in PDFfilip wolak11/05/01 12:14
Did I setup correctlyCraig Bender10/28/01 01:44
PDF Thumbnails on WebpageBiscutty10/25/01 12:56
RE: Pdflib, PHP, and Internet Explorerkagy10/24/01 13:34
Use of image file in pdf by using phpNarender Poonia10/13/01 06:22
Call to undefined function for PDFJabro10/12/01 16:53
Multiple page PDFEunice10/10/01 19:19
WHY DO I NEED TO APPLY A PATCHKARTHIKRAJ10/09/01 02:12
RE: pdf file formatOlivier10/05/01 16:53
RE: How can I install PDFLIB 3.0.2?intergenie09/27/01 03:00
chinese words problem Mike09/25/01 15:42
single page pdftarkpea09/19/01 11:59
pdf file formatskumar09/19/01 09:18
RE: as/400 and linux and php for pdf?UP AFEGANISTÃO09/18/01 12:14
Save a PDF-file to a directory (PDFLib)Carl09/12/01 15:21
RE: know about how to insert image into mysqlTristan Bennett09/04/01 23:21
RE: How can I install PDFLIB 3.0.2?isaac08/31/01 10:47
know about how to insert image into mysqlrupak sinha08/29/01 22:26
PHP Version 4.0.1pl2Dustin L.08/21/01 15:51
PDF FOR PHPDarivaldo08/17/01 15:11
PDF with local charset supportSezer Yalcin08/17/01 13:05
pdflibChris Vogel08/07/01 09:31
Force Download of .pdf filesJoe08/06/01 11:08
RE: pdflib 401 with php 405 ???Anton Heckmeier08/02/01 05:44
Fatal error on Win 32vince07/25/01 12:24
PHP abbrivationprabhakar07/23/01 06:11
as/400 and linux and php for pdf?jose07/21/01 10:46
Remove Image from Existing PDF?Ryan Beck07/06/01 11:26
Flex and BisonKeith Hutchison06/29/01 06:45
pdflib 401 with php 405 ???Keith Wilson06/20/01 23:45
template in pdflouise06/20/01 05:56
RE: Pdflib, PHP, and Internet ExplorerMartin Burger06/19/01 09:13
RE: ps2pdfMichael Mann06/17/01 13:35
windows install problemrosie06/12/01 12:48
RE: ps2pdfcasebell06/12/01 02:35
Pdflib, PHP, and Internet ExplorerOscar Lopez06/11/01 16:10
Can PHP create Powerpoint file?chouzhi06/10/01 03:38
mySQL LONGBLOB typeST CHAN05/28/01 05:28
RE: Trying with pdflib version 4Igor Kryltsov05/18/01 05:35
RE: Problems in WindowsAndreas Rainer05/18/01 04:08
RE: How to configureIgor Kryltsov05/17/01 20:20
PDI & PDFlibJPM05/06/01 13:44
RE: PHP for PDFGNU-Lover04/30/01 05:55
RE: PHP for PDFpeter04/23/01 02:52
RE: Building on existing pdfsManolo04/10/01 18:44
RE: adding fonts in pdflib.upralain04/10/01 18:06
Trying with pdflib version 4Pete Lancashire04/07/01 16:46
Debian InstallRoger Hales04/02/01 12:31
PDF - searchable with php?Florian Oszwald03/31/01 13:44
Building on existing pdfsØystein Ørnegård03/27/01 04:16
PHP for PDF: A QuestionMihir Mahajan03/13/01 00:44
adding fonts in pdflib.uprpascall03/06/01 04:45
Add PDF Page to other PDF DocumentGilles03/05/01 17:52
RE: Embedd fontsAlvin Koh03/02/01 21:58
RE: Images in pdf-libAlvin Koh03/02/01 21:49
From xls to pdf using PHPYoann03/01/01 07:47
RE: PDF to HTML?Fabio02/15/01 10:01
How to configureutsab02/15/01 02:47
PHP for PDFArijit Chaudhuri02/08/01 12:03
PDF to HTML?WJ GIlmore02/08/01 09:30
Images in pdf-libAlf Magne Kalleland02/08/01 00:20
Embedd fontsSteve02/06/01 14:42
RE: How can i apply a patch?Joeri Cornelissens02/06/01 09:36
How can i apply a patch?Arnold02/05/01 23:34
RE: pdf_open_gif($im, "pic.gif") does not workNathan Reeves02/05/01 17:04
How can I install PDFLIB 3.0.2?Bui Huu Thuan01/31/01 23:32
How to create Non-Editable PDFChee Khar Chit01/28/01 23:34
RE: Problems in WindowsBard01/18/01 08:11
pdf_findfontsteffen01/10/01 03:04
RE: Problem with pdf_open() - fixedAlf Magne Kalleland01/08/01 09:20
Problem with pdf_open()Alf Magne Kalleland01/05/01 03:28
TIFFLib & JPEGLibAndrew12/31/00 23:23
RE: pdf_open_jpeg() doesn't work in WindowsAlvin K CM12/22/00 23:22
RE: Font insatllingcriptos12/17/00 06:38
Font insatllingSvetoslav12/16/00 09:41
RE: Mnagement of several pagesAaron Oathout12/15/00 00:33
Valid PDF for Acrobat ReaderJoeri Cornelissens12/11/00 10:32
RE: pdf_open() error (fixed!)fred12/07/00 11:29
pdf_open() errorfred12/06/00 23:46
RE: installation incorrect?Joeri Cornelissens12/06/00 06:19
Script error:alain12/04/00 20:50
RE: pdf_open_jpeg() doesn't work in Windowsalain12/04/00 20:47
installation incorrect?Thomas Horner11/27/00 19:13
Compiling PHP with pdflib supportluke chasteen11/27/00 14:22
header _ footerreg11/23/00 10:10
RE: pdf_open_gif($im, "pic.gif") does not workreg11/23/00 09:54
pdflib 0.6reg11/23/00 07:33
RE: Mnagement of several pagesAlex11/22/00 14:55
image _ sizereg11/22/00 06:13
RE: japanese charactersBreughel M. Macabuhay11/16/00 03:37
pdf_open_gif($im, "pic.gif") does not workWojtek11/15/00 15:53
pdf_open_jpeg() doesn't work in WindowsAnoiksi Alekhine11/15/00 09:16
RE: Apache won't restartSam Barnum11/13/00 14:31
Apache won't restartSam Barnum11/13/00 13:27
RE: Where am I after a pdf_show_boxed?Stefan - Zipkid - Goethals11/13/00 09:51
RE: PHP compile error and pdflibJoel11/09/00 07:47
Problems in WindowsLars Houmark Pedersen11/07/00 20:37
Where am I after a pdf_show_boxed?Ola St11/07/00 18:08
japanese charactersBreughel M. Macabuhay11/06/00 19:30
PHP-pdflib RPMTroels Arvin11/05/00 14:43
PHP compile error and pdflibWayne11/02/00 17:09
RE: Why not CLIBPDF ???Breughel M. Macabuhay11/01/00 19:47
RE: combining existting pdfsPavel Hofman11/01/00 03:54
RE: Why not CLIBPDF ???Roberto Fernandez11/01/00 00:18
Why not CLIBPDF ???Thomas10/31/00 17:37
combining existting pdfsNathan Vandenbroek10/31/00 09:22
RE: Uhm, is this going to work with Windows?Tobias Einarsson10/31/00 02:53
Deprecated FunctionsTim Frank10/30/00 21:29
RE: Where I can find pdflib 3.0.1Luca Perugini10/30/00 20:41
RE: PDF ClockLuca Perugini10/30/00 20:40
RE: WonderFulLuca Perugini10/30/00 20:38
Please send paper PHP for PDF to me.Chut Sangngamsom10/30/00 20:36
an EPS background?Arlo Leach10/30/00 19:26
Solution for complex textsPavel Hofman10/30/00 13:00
PDF ClockErick10/30/00 12:43
ps2pdfCarlo Ackermann10/28/00 16:55
Where I can find TIFF and JPEG lib for Win32Vladimir Novakovic10/28/00 06:09
Where I can find pdflib 3.0.1Vladimir Novakovic10/28/00 05:54
WonderFulRizwan Aslam10/28/00 02:52
RE: Mnagement of several pagesLuca Perugini10/27/00 14:41
RE: in 3.0.2 its --enable not --enabledLuca Perugini10/27/00 14:36
RE: pdflib 3.0.1???Luca Perugini10/27/00 12:37
Mnagement of several pagesDominique10/27/00 10:39
Uhm, is this going to work with Windows?Simon10/27/00 10:33
in 3.0.2 its --enable not --enabledPhilipp Wanning10/27/00 06:20
pdflib 3.0.1???Breughel M. Macabuhay10/27/00 00:31
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.