I'm trying to generate static pdf files on node save/update (with hook_node_presave).
The problem is that print pdf did not recognize template.
Template file is not missing and it works well when I'm sending node's PDF by email (as it is described here: https://www.drupal.org/node/190173#pdf_via_mail).
I'm out of ideas why template file is not working on hook_node_presave.
So any ideas?