Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am looking for some examples and best strategies to make a custom pdf invoice with WP plugin contact form 7 data.

For this, i am trying out the tcpdf library as i need to create a simple barcode per invoice as well.

Any tips or info?


share|improve this question

closed as off-topic by toscho Jul 28 at 7:46

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

The bast way to do that is: wordpress.org/support/topic/… I hope it helps! –  chaim Mar 16 '13 at 4:47

1 Answer 1

Without seeing your code, or knowing exactly what data you are trying use (and from where) within your generated PDF its a little hard to help. We need more information...

However, I've recently worked with both, TCPDF and HTML2PDF (which uses TCPDF internally) and I preferred TCPDF directly because HTML2PDF was giving me a hard time when working with HTML5 markup.

Despite all this, I switched over to DOMPDF on a current project and am quite happy with the results.

You might not need anything like DOMPDF or HTML2PDF if you want to generate PDF documents from data strictly contained within the database. TCPDF should be ok, DOMPDF is also acceptable too.

For TCPDF barcode generation see this example use;

http://www.tcpdf.org/examples/example_027.phps (1D barcode)
http://www.tcpdf.org/examples/example_050.phps (2D barcode)

For DOMPDF barcode generation you need this class;


share|improve this answer
hi tx, i am going to play around with TCPDF. I using WPCF7 to collect some data and with $wpcf7_data->posted_data i like to populate the invoice pdf, which should emailed as an attachment. –  alex Feb 15 '13 at 14:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.