[Ilugc] PHP - system command
baskar k
baskar91066 at rediffmail.com
Wed Aug 4 08:50:21 IST 2004
An HTML attachment was scrubbed...
URL: http://www.ae.iitm.ac.in/pipermail/ilugc/attachments/20040804/a1cfd6ae/attachment.htm
-------------- next part --------------
On Thu, 29 Jul 2004 Karthikeyan wrote :
>Hi Baskar,
>
>>Dear Friends
>>
>>I wanted to convert xml file to pdf using php. But without installing JDK. I got an example which says to convert xml to LaTex then using pdflatex convert to pdf.
>>However, the problem here is I am unable to run the command 'system' in PHP.
>>Please give me your suggestions.
>>
>>Thanking you,
>>
>>K.BASKAR
>>
>
>Parse your xml and then use PDFLib extension for pdf generation.
>
>Here are some tutorials on that
>
>http://www.codehelp.co.uk/php/xmlparse1.php
>http://www.devshed.com/c/a/PHP/PDF-Generation-With-PHP
>
>HTH
>
>Karthikeyan B
Dear Karthik
Thanks, I am able to convert the xml to pdf as per your suggestion. But I am download the generated pdf file.
My code as shown below.
$buf=pdf_get_buffer($pdf);
$len=strlen($buf);
header("Content-type: application/pdf");
header("Content-Disposition: inline; filename=foo.pdf");
header("Content-Length: $len");
print $buf;
Any suggestions please
K.BASKAR
More information about the ilugc
mailing list