简体   繁体   中英

Javascript and PHP to generate “live” print preview

I want to be able to enter data and use Javascript onChange/onBlur/etc to render a "live" print preview; with page breaks. The ultimate goal is to have a PDF file that can be saved/emailed/etc that will be identical to the "preview". The data is to be stored in a MySQL database, I'm figuring AJAX to write it while entry.

Has anyone heard of a library (ideally free; purchase is an option) that can do this? If not, can you point me towards what can help me write something?

There are tons of PDF creation libraries for the PHP, you can easily google it.
http://www.fpdf.org/ for example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM