On Jul 9, 3:15 pm, Carlos <
carl...@hkusua.hku.hk> wrote:
> I did check the error log, it reports
> ----------------
> PDFlib exception (fatal): [1202] PDF_set_parameter: Unknown key
> 'objorient'
> :
> :
> PHP Warning: Module 'pdf' already loaded in Unknown on line 0
This could be PHP loading PDFLib then attempting to load PDFLib lite
later on, but I'm not positive about that.
> So the problem lies at the installation of PDFLib I am guessing.
>
> I am on apache xampp 1.7.1. The phpinfo() shows
> -----------
> PDF Support enabled
> PDFlib GmbH Version 5.0.3
> -----------
>
> And I also had PDFLib Lite installed. Still no sign that it is
> working.............
>
> Additional info
> ===========
> I had PDFlib lite installed and made the following change in
> dompdf_config.inc
> 1. define("TTF2AFM", "C:/Progra~1/GnuWin32/bin/ttf2pt1.exe");
> 2. define("DOMPDF_PDF_BACKEND", "PDFLib");
So it does look like DOMPDF is trying to use PDFLib, but not the lite
version since you're getting a licensing error. I would try define
("DOMPDF_PDF_BACKEND","CPDF") to tell DOMPDF to use the built-in back-
end. This should avoid the licensing errors with PDFLib.
> I notice in the installation guide that "domxml PECL extenstion
> conflicts must be disabled".
> Could this be the problem?
> How do I disable it?
I doubt this is installed, but if it is I would think you would see it
in the output from phpinfo(). The most recent version of PHP has DOM
and XML support built in, so don't confuse the built-in support with
the PECL extension. PECL is a command-line tool to install extensions
to PHP.
> [Fri Jul 10 02:17:37 2009] [notice] Parent: child process exited with
> status 99 -- Restarting.
This could be related to the PDFLib issues or it could be something
more serious. If you're still having problems after you change the
back end see if this message is still showing up.