简体   繁体   中英

Is it possible to get print version of website as PDF in byte array using javascript

I'm writing a web application where you can print receipt for what your buying. I also want to be able to get the receipt via E-mail. I'm wondering, is there any way to get the print version of the page as byte array so I can send the PDF(as byte array) to my server and send the e-mail.

Thanks

There are libraries as http://parall.ax/products/jspdf That allow to you create a PDF in client side.

However, I think that do it in server side It could be a better solution for this case. But, It depends...

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