473,480 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to convert php files into pdf, onfly?

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.............

Aug 16 '07 #1
7 22307
chandoo wrote:
Is there any chance of converting, php files into pdf dynamically
Can you explain please somewhat more exactly? Normally there is no
difference between showing PHP-Code or text within a pdf.

May you are searching for FPDF. =http://www.fpdf.org/
It comes with a lot of examples.

Ulf

--
_,
_(_p Ulf [Kado] Kadner
\<_)
Aug 16 '07 #2
NC
On Aug 16, 4:02 am, chandoo <vamsi.chan...@gmail.comwrote:
>
Is there any chance of converting, php files into pdf
dynamically,i need it urgently,can any body help me!
Check out dompdf:

http://www.digitaljunkies.ca/dompdf/

Cheers,
NC

Aug 16 '07 #3
On Aug 17, 3:07 am, NC <n...@iname.comwrote:
On Aug 16, 4:02 am, chandoo <vamsi.chan...@gmail.comwrote:
Is there any chance of converting, php files into pdf
dynamically,i need it urgently,can any body help me!

Check out dompdf:

http://www.digitaljunkies.ca/dompdf/

Cheers,
NC
Thank u
but...........!

apart of it do u know any other,i did it but it had some probs with
converting the source code..

Aug 17 '07 #4
On Aug 16, 7:02 am, chandoo <vamsi.chan...@gmail.comwrote:
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

Sep 3 '07 #5
Pragnesh wrote:
On Aug 16, 7:02 am, chandoo <vamsi.chan...@gmail.comwrote:
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/pdffunctions, or you can try
FPDF. <http://www.fpdf.org/>

- the DtTvB

Sep 3 '07 #6
On Sep 3, 8:55 am, the DtTvB <mechako...@gmail.comwrote:
Pragnesh wrote:
On Aug 16, 7:02 am, chandoo <vamsi.chan...@gmail.comwrote:
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/pdffunctions, 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.

Sep 4 '07 #7
ST
On Sep 4, 11:23 pm, Aaron Saray <102degr...@102degrees.comwrote:
On Sep 3, 8:55 am, the DtTvB <mechako...@gmail.comwrote:
Pragnesh wrote:
On Aug 16, 7:02 am, chandoo <vamsi.chan...@gmail.comwrote:
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/pdffunctions, 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.


Sep 5 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4432
by: Swarup | last post by:
I am reading a file (txt, xml, gif, ico, bmp etc) byte by byte and filling it into a byte arry. Now i have to convert it into a string to store it in the database. I use...
5
3887
by: bbb | last post by:
Hi, I need to convert XML files from Japanese encoding to UTF-8. I was using the following code: using ( FileStream fs = File.OpenRead(fromFile) ) { int fileSize = (int)fs.Length; int buffer...
3
13691
by: GM | last post by:
Dear all, Could you all give me some guide on how to convert my big5 string to unicode using python? I already knew that I might use cjkcodecs or python 2.4 but I still don't have idea on what...
2
8703
by: Craig | last post by:
Hi there, I'm trying to convert some PNG files to bitmap files which can then be converted to X11 bitmaps using the im.tobitmap() function. But the error I get when using the im.tobitmap()...
10
15751
by: gokul | last post by:
Hi, Before i convert .doc binary format files to .txt files and i added some content to .txt files. Now i again convert back to .doc binary format. Pls Help Me How to Convert .txt files to...
6
6431
by: leonel.gayard | last post by:
Hi, Does anyone know a good python library to convert a RTF file into PDF ? This should be done automaticaly: I have a web page that takes some values and inserts them into a RTF template,...
1
3558
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
2
12624
by: edw | last post by:
I want to convert rfc822 (.eml) files to MAPI (.msg) files. I do not need to log in to Outlook to retrieve the messages, since the messages have all been downloaded from the exchange server and...
0
10702
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
7037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6732
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5324
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4768
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.