module Dradis module Plugins module PdfExport class BaseController < Dradis::Plugins::Export::BaseController # This method cycles throw the notes in the reporting category and creates # a simple PDF report with them. def index exporter = Dradis::Plugins::PdfExport::Exporter.new(export_options) pdf = exporter.export send_data pdf.render, filename: "dradis_report-#{Time.now.to_i}.pdf", type: 'application/pdf', disposition: 'inline' end end end end end