You are here: Re: How to convert php files into pdf, onfly? « PHP Programming Language « IT news, forums, messages
Re: How to convert php files into pdf, onfly?

Posted by ST on 09/05/07 23:16

On Sep 4, 11:23 pm, Aaron Saray <102degr...@102degrees.com> wrote:
> On Sep 3, 8:55 am, the DtTvB <mechako...@gmail.com> wrote:
>
>
>
> > Pragnesh wrote:
> > > On Aug 16, 7:02 am, chandoo <vamsi.chan...@gmail.com> wrote:
> > > > Is there any chance of converting, php files into pdf dynamically,i
> > > > need it urgently,can any body help me!
> > > > With snippets of code or by url or by sending files?
> > > > thank u with Regards.............
>
> > > hi u got any solution for it??
> > > i also need the same help..........
>
> > > thanks
>
> > > Pragnesh
>
> > Read about the PDF <http://php.net/pdf> functions, or you can try
> > FPDF. <http://www.fpdf.org/>
>
> > - the DtTvB
>
> Are you trying to display the CONTENT of the php file to a PDF using
> PHP? If so, you might try using the highlight_file() or equivalent
> function and then piping it to one of the above PDF libraries.

Try http://sourceforge.net/projects/pdf-php

I use it on 2 sites to generate brochures (properties for sale and
rent) - email me and ill return the URLS so you can take a look to see
them). You should just be able to use php to read the php file in as
text and dump it out to the pdf file which can then be streamed. Be
careful of passing in the file to output as PDF via a GET/POST request
though, as it would leave the system wide open to abuse (eg someone
generating a PDF file containing your database connection scripts,
with usernames and passwords). Just a thought.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация