Changed invoice2pdf interface to more vaadin agnostic approach