php-general Digest 6 May 2013 19:30:06 -0000 Issue 8219

Topics (messages 321014 through 321018):

Re: generate onfly PDF
        321014 by: Rafnews
        321015 by: Tim Behrendsen
        321016 by: Ashley Sheridan
        321017 by: Bastien

Re: Need a tool to minimize HTML before storing in memecache
        321018 by: Daevid Vincent

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 05.05.2013 07:45, tamouse mailing lists wrote:
On Sat, May 4, 2013 at 3:31 PM, Rafnews <raf.n...@gmail.com> wrote:
On 04.05.2013 23:05, Tedd Sperling wrote:
On May 4, 2013, at 5:00 PM, Ashley Sheridan <a...@ashleysheridan.co.uk>
wrote:
Rafnews <raf.n...@gmail.com> wrote:
Is there a solution to generate onfly PDF from HTML page, and from data
user typed in form (let's say like a template) without using PECL ?
i read that is hosting does not allow such extension, we can not
generate PDF, so i would rather get a solution without such library.

Moreover i'm searching a solution free and that i can supply with my
web
components.
I created a component that should be able to generate PDF files quite
often as service for user.
Have a look at fpdf, its a class that doesn't need any special
server-side support. Its basic, but is pretty good.

Thanks,
Ash
Ash is right, here's an example I provide my students:

http://rebel.lcc.edu/sperlt/citw185/examples/pdf/

Everything is there.

Cheers,

tedd

AFAIK fpdf needs zlib and gd extensions.
gd extension is almost everywhere enabled as extension, however i'm not sur
zlib is enabled on most of servers...

What do you think about that ?
I would think zlib is even more ubiquitous than gd; it's used all over
the place.

and what about TCPDF librairy ?
have you already use it ?
how are its performances ?

--- End Message ---
--- Begin Message ---
I have had outstanding success with wkhtmltopdf:

https://code.google.com/p/wkhtmltopdf/

It's a self-contained standalone program that you can call from PHP. It
uses a full-bodied HTML interpreter based on Webkit. Highly recommended, I've 
been using it for years. It's open source and free.

I should say, I've used the Linux version. It looks like there's a Windows 
version, but I have no experience with that, if that's what you need.

Tim

Rafnews<raf.n...@gmail.com>  wrote:

Hi,

Is there a solution to generate onfly PDF from HTML page, and from data

user typed in form (let's say like a template) without using PECL ?
i read that is hosting does not allow such extension, we can not
generate PDF, so i would rather get a solution without such library.

Moreover i'm searching a solution free and that i can supply with my
web
components.
I created a component that should be able to generate PDF files quite
often as service for user.

thx

Al.


--- End Message ---
--- Begin Message ---

Tim Behrendsen <t...@behrendsen.com> wrote:

>I have had outstanding success with wkhtmltopdf:
>
>https://code.google.com/p/wkhtmltopdf/
>
>It's a self-contained standalone program that you can call from PHP. It
>uses a full-bodied HTML interpreter based on Webkit. Highly
>recommended, I've been using it for years. It's open source and free.
>
>I should say, I've used the Linux version. It looks like there's a
>Windows version, but I have no experience with that, if that's what you
>need.
>
>Tim
>
>Rafnews<raf.n...@gmail.com>  wrote:
>
>> Hi,
>>
>>Is there a solution to generate onfly PDF from HTML page, and from
>data
>>
>>user typed in form (let's say like a template) without using PECL ?
>>i read that is hosting does not allow such extension, we can not
>>generate PDF, so i would rather get a solution without such library.
>>
>>Moreover i'm searching a solution free and that i can supply with my
>>web
>>components.
>>I created a component that should be able to generate PDF files quite
>>often as service for user.
>>
>>thx
>>
>>Al.

I think that requires external libraries that are not part of a typical shared 
hosting installation, which is what it sounds like the OP has. 

I've used it before myself though , and aside from some oddities, works very 
well.

Thanks,
Ash
http://www.ashleysheridan.co.uk

--- End Message ---
--- Begin Message ---



On 2013-05-05, at 8:10 AM, Rafnews <raf.n...@gmail.com> wrote:

> On 05.05.2013 07:45, tamouse mailing lists wrote:
>> On Sat, May 4, 2013 at 3:31 PM, Rafnews <raf.n...@gmail.com> wrote:
>>> On 04.05.2013 23:05, Tedd Sperling wrote:
>>>> On May 4, 2013, at 5:00 PM, Ashley Sheridan <a...@ashleysheridan.co.uk>
>>>> wrote:
>>>>> Rafnews <raf.n...@gmail.com> wrote:
>>>>> Is there a solution to generate onfly PDF from HTML page, and from data
>>>>>> user typed in form (let's say like a template) without using PECL ?
>>>>>> i read that is hosting does not allow such extension, we can not
>>>>>> generate PDF, so i would rather get a solution without such library.
>>>>>> 
>>>>>> Moreover i'm searching a solution free and that i can supply with my
>>>>>> web
>>>>>> components.
>>>>>> I created a component that should be able to generate PDF files quite
>>>>>> often as service for user.
>>>>> Have a look at fpdf, its a class that doesn't need any special
>>>>> server-side support. Its basic, but is pretty good.
>>>>> 
>>>>> Thanks,
>>>>> Ash
>>>> Ash is right, here's an example I provide my students:
>>>> 
>>>> http://rebel.lcc.edu/sperlt/citw185/examples/pdf/
>>>> 
>>>> Everything is there.
>>>> 
>>>> Cheers,
>>>> 
>>>> tedd
>>> AFAIK fpdf needs zlib and gd extensions.
>>> gd extension is almost everywhere enabled as extension, however i'm not sur
>>> zlib is enabled on most of servers...
>>> 
>>> What do you think about that ?
>> I would think zlib is even more ubiquitous than gd; it's used all over
>> the place.
> 
> and what about TCPDF librairy ?
> have you already use it ?
> how are its performances ?
> 
> 

I've been using dompdf for years. Does a good representation of the HTML as PDF

Bastien

> 

--- End Message ---
--- Begin Message ---

> -----Original Message-----
> From: Marco Behnke [mailto:ma...@behnke.biz]
> Sent: Friday, May 03, 2013 12:56 PM
> >
> >> Maybe google page speed is worth a look for you too?
> >
> > We have over 1,000 servers in house and also distributed across nodes in
> various cities and countries.
> 
> Don't know if this is an answer to my question? You know what google
> page speed is about?

At first I thought it was just like Y-slow which we already use, but that's 
orthogonal to what we're trying to achieve by minimizing the code. Then this 
caught my eye as we use both of these servers and any kind of automated module 
is preferred over manually re-writing pages:

https://developers.google.com/speed/pagespeed/mod

https://developers.google.com/speed/pagespeed/ngx

thanks, I'll look into that as well.


--- End Message ---

Reply via email to