template works, test with pdf output