I would like to know , can we use a pdf file as template to write the content using WickedPDF using Ruby on Rails. That means i will be accessing a PDF file with Header and footer on it and WickedPdf will use that template to write text on it.
开发者_C百科https://github.com/mileszs/wicked_pdf
Thanks Nishant
No, you write your template like any standard view in Rails, i.e. html.erb
or haml
, and this will be served up as a downloadable PDF to the user.
If you create your view (as I detailed in your earlier SO question), and pass that view to WickedPDF, you will have your text-on image output served as a PDF.
精彩评论