Most questions in stackoverflow or other forums show how to create submissions and send them by email.
But my goal is to create a PDF file from a view in the format media=print and send it in the application by email.
I have a view that displays a report. I am using CSS Print to display this report in print format. (Basically I display some elements and hide others).
How can I generate a PDF from this view (with media=print format) and send it by email in the application.
I use ActionMailer to send emails and iTextSharp to create PDF files
source share