Forum How do I...?

Installing and use prince.php class within php files

Christian
Hi Michael, thanks for your helpfulness. Ok! So I downloaded PrinceXML setup, I installed in C: root of my test machine. In my test machine I use windows vista and PHP 5.2.3. First I use command line, all ok!! Now I try to use the php class inside a php file. And I don't get anything. So what is the right procedure to install or use prince.php? Now I simple include prince.php in my file. I try with some echoes e I think the flow is correct. If I omit a parameter, for example using convert2 function, I obtain an error.

Any ideas? Where I make an error?

Christian
Christian
Hi to all!!!!

I solve it, sorry for my previous question. So the solution. Before I use

$pdf->convert2('lettera.html','c:\Temp\lettera.pdf');

next this one:

$pdf->convert2('C:\xampp\htdocs\christian_test\dev\prince\lettera.html','c:\Temp\lettera.pdf');

It's really quickly!!!


Bye Christian