export from html to pdf

is it possible to stream html-output to pdf (including images, tables, ...)?
I have tried fpdf but it cannot stream html to pdf. It has own syntax.
I cannot install perl or ghostscript.
I wanted to use dompdf, but i've heard it has leaks and conflicts with domxml.

Can anyone help me?
worxstevenAsked:
Who is Participating?
 
worxstevenConnect With a Mentor Author Commented:
i managed to use dompdf, so problem solved.
0
 
hernst42Commented:
If you can't install an external program like htmldoc it is not possible via php.

Also never heard of a class which support rendering html to pdf and works with images, ...
0
 
worxstevenAuthor Commented:
ok, so what do you suggest as the easiest and best solution to render html to pdf? (on linux)
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
hernst42Commented:
install htmldoc and let html do create the pdf via exec
http://www.htmldoc.org/
0
 
nplibCommented:
0
 
nplibCommented:
fdpf allows you to make pdfs using php and html
more so html inside php.
0
 
worxstevenAuthor Commented:
so if i add a background to the html, tables, font sizes + colors, ... the fpdf can convert this to pdf with some single commands? What do i have to do to create this: http://www.worx.be/test.html
0
 
nplibCommented:
That you will have to download the class first, I've never used it personally, I know of a lot of people who have used it, and I have participated in a lot of discussions on the subject.

After you download the file, and check out the doc, I can help you after that,
0
 
worxstevenAuthor Commented:
what class?
0
 
nplibCommented:
the fpdf class from http://www.fpdf.org/
0
 
worxstevenAuthor Commented:
i already knew that, but it can't just convert html (tables, backgrounds, fonts, ...) into pdf. You need to use the fpdf-syntax right? Isn't there another way?
0
 
nplibCommented:
well No,

but if you look at the tutorial, you will see how they converted html into "fpdf syntax".

if your html is static code, you can always use file_get_contents() function to place your html into a working variable.
http://www.php.net/manual/en/function.file-get-contents.php
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.