Jim:

The TCPDF software library does not need php pdf functions. Is 100% php
code.
To use only put a require_once '/tcpdf/tcpdf.php'; lik this.

Create a new instance:
$pdf = new TCPDF( 'P', 'mm', 'A4', true, 'UTF-8', false);

And call the methods.

The library has a folder with a lot of examples.

Alejandro MS

-----Mensagem original-----
De: Jim Giner [mailto:jim.gi...@albanyhandball.com] 
Enviada em: quinta-feira, 5 de janeiro de 2012 17:13
Para: Alejandro Michelin Salomon
Assunto: Re: [PHP] Printing

I don't know what you mean.  How do I create a pdf with php?  Do I have to
have my host install a package or something?
----- Original Message -----
From: "Alejandro Michelin Salomon" <amichel...@hotmail.com>
To: "'Jim Giner'" <jim.gi...@albanyhandball.com>
Sent: Thursday, January 05, 2012 2:01 PM
Subject: RES: [PHP] Printing


> Jim:
>
> You do not need PDF printer drivers.
>
> This lib create a PDF file with 100% PHP code.
>
> When the creation is done, you chose what to do:
>
> Save a file to download or send directly to the browser.
>
> Example;
>
> // reset pointer to the last page
> $pdf->lastPage();
>
> //Close and output PDF document
>
> if ( trim( $sFile ) != '' )
>    $pdf->Output( $sFile, 'F' ); // Save to file else
>    $pdf->Output(); // Send to browser directly
>
>
> Alejandro MS
> -----Mensagem original-----
> De: Jim Giner [mailto:jim.gi...@albanyhandball.com]
> Enviada em: quinta-feira, 5 de janeiro de 2012 16:55
> Para: Alejandro Michelin Salomon
> Assunto: Re: [PHP] Printing
>
> I have several pdf printer drivers.  HOw do I use them in a hosted php
> script?
> ----- Original Message -----
> From: "Alejandro Michelin Salomon" <amichel...@hotmail.com>
> To: "'Jim Giner'" <jim.gi...@albanyhandball.com>
> Cc: "Pgsql-General" <pgsql-gene...@postgresql.org>
> Sent: Thursday, January 05, 2012 1:50 PM
> Subject: RES: [PHP] Printing
>
>
>> Jim :
>>
>> TCPDF software library has excellent examples to teach you how to do
>> the work
>>
>> http://www.tcpdf.org/
>>
>> My legal documents mix images, barcode, etc. All the problems printing
>> go to space!!!!
>>
>> Alejandro MS
>>
>>
>> -----Mensagem original-----
>> De: Jim Giner [mailto:jim.gi...@albanyhandball.com]
>> Enviada em: quinta-feira, 5 de janeiro de 2012 16:46
>> Para: Alejandro Michelin Salomon
>> Assunto: Re: [PHP] Printing
>>
>> a pdf would solve the problem.
>> ----- Original Message -----
>> From: "Alejandro Michelin Salomon" <amichel...@hotmail.com>
>> To: "'Jim Giner'" <jim.gi...@albanyhandball.com>
>> Cc: "Pgsql-General" <pgsql-gene...@postgresql.org>
>> Sent: Thursday, January 05, 2012 1:43 PM
>> Subject: RES: [PHP] Printing
>>
>>
>>> Jim:
>>>
>>> I think the problems is that trying to print directly from PHP is not
>>> a good idea.
>>>
>>> Example:
>>> My system is in a host that is located in other city, so the printer
>>> is near my, but the PHP code is running in other place almost 1800kms
>>> between the printer and the PHP system.
>>>
>>> My customer use the system a prints from html page generated. When a
>>> need specific printing, I create a PDF file on the fly with TCPDF
>>> software library.
>>> I use this lib to create a printable version of a legal document as
>>> PDF on the fly, open directly in the Firefox o IE
>>>
>>> Is your server running near the printer?
>>>
>>> Is so specific that create a PDF file does not resolve the problem?
>>>
>>> Alejandro MS
>>>
>>> -----Mensagem original-----
>>> De: Jim Giner [mailto:jim.gi...@albanyhandball.com]
>>> Enviada em: quinta-feira, 5 de janeiro de 2012 13:55
>>> Para: php-general@lists.php.net
>>> Assunto: Re: [PHP] Printing
>>>
>>>>
>>>
>>> I can't tell you much on this, because I don't use windows. You have
>>> to get the source at http://pecl.php.net/printer and compile it. I
>>> don't know the procedure, etc.
>>>
>>> --
>>> Nilesh Govindarajan
>>> http://nileshgr.com
>>>
>>> That was a short trip.  Clicked on the link for documentation and it
>>> takes me right back to the php manual pages that I'd already read.
>>> Clicked on the link to download the latest and it's a dead link.
>>>
>>> Does anyone print from their php websites??
>>>
>>>
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
>>> http://www.php.net/unsub.php
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>
>
>
> 




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

Reply via email to