0

What I am wanting to do is create a PDF ideally from HTML code. I found a class called dompdf but I'm having issues with font and page breaks.

Does anyone know of another script or even a better way in general to generate PDF files?

The reason why I am converting HTML to PDF is because I want someone to use a WYSIWYG editor to create the contents and click save to generate their PDF file...

Any input would be greatly apprecaited

4 Answers 4

2

Due to the different nature of PDF and HTML you'll always have to make a few comprimises when trying to convert HTML into PDF.

If this doesn't bother you too much, I'd get started with TCPDF. Its easy to use and has a fairly good grasp of colors, sizes and some other style related HTML attributes.

Sign up to request clarification or add additional context in comments.

Comments

1

i use this class TCPDF :

http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf

Comments

0

If you don't mind a bit of work then you can use Cairo to generate PDFs.

Comments

0

You can take a look at html2fpdf. It can accept very basic html and css.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.