Re: [PHP] PDF Printing instead?

2012-01-10 Thread Tedd Sperling
On Jan 5, 2012, at 3:14 PM, Jim Giner wrote:

 ok - somebody has advised that I should not be trying to print to a printer 
 from my website php script.
 
 The suggestion of creating a pdf and sending to the client was made.  How do 
 I install the pdf functions?  I've never had to install a package before or 
 is that something my hoster does? 
 

Do you mean something like this:

http://webbytedd.com/bb/pdf/

If so, Google pdf php and then look at the manual:

http://php.net/manual/en/book.pdf.php

OR you can try different libraries, such as:

http://ros.co.nz/pdf/  -- nice demo there

Cheers,

tedd

_
t...@sperling.com
http://sperling.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF Printing instead?

2012-01-06 Thread Robert Williams
On 1/5/12 14:40, Paul M Foster pa...@quillandmouse.com wrote:


The fpdf and/or tcpdf libraries are the standard answers to this.

Depending on requirements, another good option may be Pdftk. Where TCPDF
is focused on document creation, Pdftk is focused on document
manipulation, and because it's a compiled binary that you install, it's
very fast (and easily used from PHP via exec() and family).


Regards,
Bob
--
Robert E. Williams, Jr.
Associate Vice President of Software Development
Newtek Businesss Services, Inc. -- The Small Business Authority
https://www.newtekreferrals.com/rewjr
http://www.thesba.com/







Notice: This communication, including attachments, may contain information that 
is confidential. It constitutes non-public information intended to be conveyed 
only to the designated recipient(s). If the reader or recipient of this 
communication is not the intended recipient, an employee or agent of the 
intended recipient who is responsible for delivering it to the intended 
recipient, or if you believe that you have received this communication in 
error, please notify the sender immediately by return e-mail and promptly 
delete this e-mail, including attachments without reading or saving them in any 
manner. The unauthorized use, dissemination, distribution, or reproduction of 
this e-mail, including attachments, is prohibited and may be unlawful. If you 
have received this email in error, please notify us immediately by e-mail or 
telephone and delete the e-mail and the attachments (if any).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PDF Printing instead?

2012-01-05 Thread Jim Giner
ok - somebody has advised that I should not be trying to print to a printer 
from my website php script.

The suggestion of creating a pdf and sending to the client was made.  How do 
I install the pdf functions?  I've never had to install a package before or 
is that something my hoster does? 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF Printing instead?

2012-01-05 Thread Dan Joseph
On Thu, Jan 5, 2012 at 3:14 PM, Jim Giner jim.gi...@albanyhandball.comwrote:

 ok - somebody has advised that I should not be trying to print to a printer
 from my website php script.

 The suggestion of creating a pdf and sending to the client was made.  How
 do
 I install the pdf functions?  I've never had to install a package before or
 is that something my hoster does?


If you're on shared hosting, it'd be something your hosting company does.
I used fpdf for my last pdf job.  Although, I personally do not see a
problem with having people just print a nicely formatted web page out.

-- 
-Dan Joseph

http://www.danjoseph.me


Re: [PHP] PDF Printing instead?

2012-01-05 Thread Davo Smith
On Thu, Jan 5, 2012 at 8:26 PM, Dan Joseph dmjos...@gmail.com wrote:
 On Thu, Jan 5, 2012 at 3:14 PM, Jim Giner jim.gi...@albanyhandball.comwrote:

 ok - somebody has advised that I should not be trying to print to a printer
 from my website php script.

 The suggestion of creating a pdf and sending to the client was made.  How
 do
 I install the pdf functions?  I've never had to install a package before or
 is that something my hoster does?


 If you're on shared hosting, it'd be something your hosting company does.
 I used fpdf for my last pdf job.  Although, I personally do not see a
 problem with having people just print a nicely formatted web page out.

I've used TCPDF in some projects - does not need much in the way of
installing, just stick all the TCPDF files in a subfolder on your
website then include the main php file.

As an added hint, if you don't need lots of fonts, you can safely
delete all the ones you don't want to reduce the disk usage
considerably.

Davo

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF Printing instead?

2012-01-05 Thread Bastien

On 2012-01-05, at 3:14 PM, Jim Giner jim.gi...@albanyhandball.com wrote:

 ok - somebody has advised that I should not be trying to print to a printer 
 from my website php script.
 
 The suggestion of creating a pdf and sending to the client was made.  How do 
 I install the pdf functions?  I've never had to install a package before or 
 is that something my hoster does? 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

Also try dompdf from digitaljunkies.ca. It allows you to pass an HTML doc to 
the code to provide a PDF

Bastien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF Printing instead?

2012-01-05 Thread Marc Guay
 Also try dompdf from digitaljunkies.ca. It allows you to pass an HTML doc to 
 the code to provide a PDF

I think in this case it should say It doesn't work!.  :)

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF Printing instead?

2012-01-05 Thread Govinda
 Also try dompdf from digitaljunkies.ca. It allows you to pass an HTML doc to 
 the code to provide a PDF
 
 I think in this case it should say It doesn't work!.  :)


maybe this:

http://code.google.com/p/dompdf/

-G
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF Printing instead?

2012-01-05 Thread Paul M Foster
On Thu, Jan 05, 2012 at 03:14:58PM -0500, Jim Giner wrote:

 ok - somebody has advised that I should not be trying to print to a printer 
 from my website php script.
 
 The suggestion of creating a pdf and sending to the client was made.  How do 
 I install the pdf functions?  I've never had to install a package before or 
 is that something my hoster does? 
 

The fpdf and/or tcpdf libraries are the standard answers to this. The
fpdf library is more primitive, but if your needs are simple, it's
considerably less bulky than tcpdf. Installation on either one should
be very simple, as in, download the package, put it in a subdirectory,
read the documentation, and start.

I use fpdf constantly for printing invoices, reports, etc. Once you've
built a PDF (by following the instructions for the specific package),
dump it in a subdirectory and provide a link to it on a webpage. The
user can then simply click on the link and their browser will open it
and provide the native (usually Adobe Reader) interface for viewing and
printing it.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php