key must to passed to invoice.pdf method