Home > Archive > PHP Programming > March 2008 > PDF generation from HTML
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PDF generation from HTML
|
|
|
| Hi,
I hav created a newsletter creator, that will will the out put as a
PDF to the user
User can select some articles with one template
And we will merge the articles with templates to generate simple HTML
(using Table in HTML)
First i went with FPDF
it given almost fine result except two problems
1) We cant give ant font or CSS for the whole pdf everything will be
in same font ( can negotiate though)
2) i created the article in row wise. so each article content will
come in each row
but its breaking(Skipping) the page when it found that it will not be
fit in the remaining part of the current page
Then i went for html2ps
It is working quit well with all the above two problems
But it giving an error when i go for little bit large contents ( we
may able to fix if we got the server with us)
the second error is with images . they are told that we may need to
give absolute path if inserts images
but still we arn't
Please help me out of this two
in which i should go with..??
and where i should be concentrated more??
Regards
Anees
| |
| Álvaro G. Vicario 2008-03-28, 7:08 pm |
| *** Anees escribió/wrote (Fri, 28 Mar 2008 06:16:49 -0700 (PDT)):
> I hav created a newsletter creator, that will will the out put as a
> PDF to the user
> User can select some articles with one template
[...]
> Then i went for html2ps
One more option is dompdf:
http://www.digitaljunkies.ca/dompdf/
However, it's still version 0.5 and it hasn't had important releases in two
years. It may suit your needs or not.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
|
|
|
|
|