PDF Form Submission

PDF Form Submissions
Ninja Forms PDF Form Submissions allows you to convert form submissions into a PDF file.

Converting Form Submission to PDFs

There are two main ways to convert form submissions into PDFs.

  1. You can automatically convert the form results into a PDF and send it to the site admin.
  2. You can manually download any form submission as a PDF.

1. Convert Form Submission to PDF and Send to Admin

To attach a PDF to your form submission you just need to check the box in your email notification on the  Emails & Actions tab.

2. Download Form Submission as a PDF

Go to the  Form Submissions page under Forms > Submissions, hover over the submission you want to download,  then press the Export to PDF link.

Now you can share your form submission as a PDF with anyone you want!

3. Add Ninja Forms Sequential Number to PDF

You can accomplish this by adding this action to your themes functions.php file or a custom plugin.

add_filter( 'ninja_forms_submission_pdf_fetch_sequential_number', '__return_true' );

4. Add Submission Date to PDF

You can accomplish this by adding this action to your themes functions.php file or a custom plugin.

add_filter( 'ninja_forms_submission_pdf_fetch_date', '__return_true' );

5. Change the default PDF name

You can accomplish this by adding this action to your themes functions.php file or a custom plugin.

function custom_pdf_name( $name, $sub_id ) { 
     $name = 'my-awesome-contact-form' . $sub_id; 
     return $name; 
  } 
add_filter( 'ninja_forms_submission_pdf_name', 'custom_pdf_name', 20, 2 );

Customizing the PDF Template

This plugin includes a templating system so you can customize the PDF template.   Any customizations to the PDF template are not supported with the product license.  If you need help with customizing your PDF template, we have third party developers who may be able to assist here: http://ninjaforms.com/about/ Please do not contact support with issues related to custom template development.

Copy the ‘wp-content/plugins/ninja-forms-pdf-submissions/templates/pdf.php’ file to ‘wp-content/your-theme/ninja-forms-pdf-submissions/pdf.php’.

You can modify this HTML to add whatever you want in there.

The document root is set to ‘wp-content/plugins/ninja-forms-pdf-submissions/include/’ so if you want to include a stylesheet or image from your theme you’d have to do it like this:

‘<link type=”text/css” href=”../../../themes/twentytwelve/css/test.css” rel=”stylesheet” />’

For more information on customizing the PDF template,  click here.