change margins in template for PDF rendering