moved convert to pdf to its own function, now calling from mailer so that
its not converted if the editor tries to get it