search for: download_pdf

Displaying 1 result from an estimated 1 matches for "download_pdf".

Did you mean: download_pda
2008 Oct 26
2
use Prawn to generate pdf
Hello: when i use Prawn to generate pdf file for download, i got a blank pdf file, can someone tell me why? require ''prawn'' class DownloadController < ApplicationController def download_pdf send_data(generate_pdf, :filename => ''test.pdf'', :type => ''application/pdf'') end private def generate_pdf Prawn::Document.new do |p| p.text ''Document Name'', :align => ''center'' p.text '...