RE: [PHP-WIN] can't run pdflib

From: Date: Mon, 25 Dec 2000 23:12:50 +0000
Subject: RE: [PHP-WIN] can't run pdflib
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4659@lists.php.net to get a copy of this message
From the PDFLib manual: [Start quote] Searching for the UPR resource file. If only the built-in resources are to be used (PDF core fonts with host encoding),a UPR configuration file is not required,since PDFlib contains all necessary resources. If other resources are to be used,PDFlib will search several places for a resource file. The process is configurable and consists of the following steps: >The PD lib ActiveX component checks a registry entry to find the file pdflib.upr in the fonts subdirectory of the PDFlib installation directory.The search process stops here for the ActiveX version of PD lib. >On Unix and Windows systems,the environment variable PDFLIBRESOURCE is exam- ined and used as a resource file name. >If no file name is found,the client-settable resourcefile parameter (which may be set using PDF_set_parameter())is examined and used as a resource file name,if set. >If no file name is found,the file name pdflib.upr in the current directory is used. >If this file can ’t be opened,an IOError is raised. >If a resource file can be opened during any of the above steps,but a required resource category cannot be found,a SystemError is raised. Note Don ’t forget to set the prefix entry in the upr file accordingly.The path to the upr file is not automatically prepended to the resource file names listed in the upr file. [End quote] I never used the UPR file, for the reason found above. I think that you are using the wrong test file if it is the first time that you are trying the PDFLib extension. Alain Message from Alain Samoun alain@samoun.com HEAR ME>> http://pagoo.com/signature/alain -----Original Message----- From: Helio [mailto:helio@helio.com.br] Sent: Monday, December 25, 2000 1:42 PM To: php-windows@lists.php.net Subject: [PHP-WIN] can't run pdflib Hi, I'm trying to use pdflib from php4win.de binaries and I get this error: Fatal error: Internal pdflib error: Resource configuration file 'pdflib.upr' not found in C:\aplic\php\pdf-related\testepdf.php on line 11 I already put pdflib.upr in the \windows\system\ in the same place of my script and so on. Does anybody knows where I have to put this file ? Regards, Hélio S. Silva Guia do Bairro : http://www.guiadobairro.com.br Uso Linux : http://www2.uol.com.br/info/aberto/linux Sao Paulo,SP - BRASIL helio@helio.com.br - Tel +55 11 9999-2889 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#4659) next »