Pdf with password protected in rails
In previous article we have seen that how pdf is generated using act_as_flying_saucer plugin. Now act_flying_saucer has added support for password protected pdf.
To generate PDF with password protection just pass :password=>”xxx” to render_pdf method.
You can install act_as_flying_saucer plugin
script/plugin install firstname.lastname@example.org:amardaxini/acts_as_flying_saucer.git
For further details you can visit article or visit http://github.com/amardaxini/act_as_flying_saucer