change to support universal pdf render

Mooved pdf document setting in invoice view.html