kit = PDFKit.new(html, :page_size => 'Letter') pdf = kit.to_pdf # Get an inline PDF file = kit.to_file('/path/to/pdf') # Save the PDF to a file ...
確定! 回上一頁