From 4d723e43e9b8145a50bc1ff8e4c8a1c0f0364404 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 14 Jun 2018 15:52:23 +0530 Subject: [PATCH] pdf allign fix --- application/views/BatchcardMaintListing.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/views/BatchcardMaintListing.php b/application/views/BatchcardMaintListing.php index e7558de3..9c0cfb1b 100755 --- a/application/views/BatchcardMaintListing.php +++ b/application/views/BatchcardMaintListing.php @@ -175,10 +175,12 @@ font-size:13px; buttons: [ { - extend: 'pdf', + orientation: 'potrait', + pageSize: 'LEGAL', + customize: function(doc) { - doc.content[1].margin = [ -25, 0, -25, 0 ] //left, top, right, bottom + doc.content[1].margin = [ -11, 0,-75, 0 ] //left, top, right, bottom }, text: 'PDF',