Automatically Generate PDF from Webform Submission First off, this is under Drupal 7.  I'm looking to have the server save a PDF of the submitted webform when a user submits it or updates it (overwriting the old one on update).  So far I've had no success with fill2pdf, views pdf, or entity print modules in getting this accomplished.

I do have the Print module working where I can click a link and download the PDF, but that's only if I take the action.

I figure the easiest way at this point would just be to have a Rules action execute some custom PHP code using the PDF that the Print module is generating.

I'm just not sure what that code would look like.  Basically, upon submission, the Rule would Execute Custom PHP code.  That code would user the PDF generated by the URL (www.example.com/printpdf/[nid]/submission[sid]) and would save that file to a location on the server (going to that URL would save it on the user's local machine) that I would like to use some tokens from the webform for (private files/year/username/node title.pdf).  Preferrably this would all be done in the background so the user wouldn't see it, but if that's not possible redirect the user after saving the webform.

Anyone know how I can accomplish this?  Thanks!
It seems like the entity_print module does exactly what you want.

From the docs:


  Entity Print allows you to print any Drupal entity (Drupal 7 and 8) or View (Drupal 8 only) to PDF.


The module is weel maintained with more then 5K websites using it.