简体   繁体   中英

rails form to pdf and save to amazon s3

I have a form for users to fill out about specific attributes first_name,last_name etc. I need to generate a pdf from this form and also send an email with the pdf of the form as an attachment.

My approach was to save it to Amazon S3 and somehow attach it in the create method in my controller.

Any input would be greatly appreciated!

You will probably need to use something like the prawn gem https://github.com/prawnpdf/prawn . This will allow you to generate a PDF file from within your application. Your question is somewhat vague though, but you should be able to generate the PDF fairly easily using prawn

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