EXAM Attendance PDF

This commit is contained in:
rajasekar 2019-03-06 17:26:47 +05:30
parent 5b3b856897
commit 25c74661a1
2 changed files with 19 additions and 13 deletions

View File

@ -283,14 +283,18 @@ $scope.isLoaderTxt = "Loading...";
var doc1 = new jsPDF('l', 'pt');
// doc1.setPage(10);
doc1.autoTableSetDefaults({
styles: {cellPadding: 3.0, fontSize: 12, width: 7 },
// rowWidth: 'wrap',
columnWidth: 'wrap',
styles: {cellPadding: 3.0, fontSize: 7, height:70, overflow: 'linebreak',columnWidth: 'wrap'},
headerStyles: {fillColor: [245, 245, 240], textColor: 0}
});
var doc2 = new jsPDF('l', 'pt');
// doc2.setPage(10);
doc2.autoTableSetDefaults({
styles: {cellPadding: 5.0, fontSize: 7.5, height:70 },
// rowWidth: 'wrap',
columnWidth: 'wrap',
styles: {cellPadding: 5.0, fontSize: 7, height:70},
headerStyles: {fillColor: [245, 245, 240], textColor: 0}
});
@ -313,8 +317,8 @@ $scope.isLoaderTxt = "Loading...";
var heading = $rootScope.pdfuname+' '+$rootScope.pdfbatch+' Examination'+' '+'Center'+' '+$rootScope.pdfcenter['CenterName']+' Attendance of '+ $scope.pdfExamDateToDisplay+' Forenoon Session ';
// var heading1='Attendance of '+$scope.pdfExamDateToDisplay+'Forenoon Session';
doc1.setFontSize(12);
doc1.setFontStyle('bold');
doc1.setFontSize(9);
doc1.setFontStyle('bold');
//doc1.text(60,30,heading);
var heading_length = heading.length;
console.log(heading_length);
@ -338,7 +342,7 @@ $scope.isLoaderTxt = "Loading...";
doc1.text(heading_start_point,30,heading);
doc1.setFontSize(12);
doc1.setFontSize(9);
doc1.setFontStyle('bold');
//doc1.text(70,45,heading1);
// doc1.text(heading1_start_point,45,heading1);
@ -350,8 +354,9 @@ $scope.isLoaderTxt = "Loading...";
var heading = $rootScope.pdfuname+' '+$rootScope.pdfbatch+' Examination'+' '+'Center'+' '+$rootScope.pdfcenter['CenterName']+' Attendance of '+ $scope.pdfExamDateToDisplay+' After Noon Session';
// var heading1='Attendance of '+$scope.pdfExamDateToDisplay+'After Noon Session';
doc2.setFontSize(12);
doc2.setFontStyle('bold');
doc2.setFontSize(9);
doc2.setFont("helvetica");
//doc2.setFontStyle('bold');
var heading_length = heading.length;
console.log(heading_length);
var heading_start_point = 0;
@ -369,8 +374,9 @@ $scope.isLoaderTxt = "Loading...";
console.log('else');
}
doc2.text(heading_start_point,30,heading);
doc2.setFontSize(12);
doc2.setFontStyle('bold');
doc2.setFontSize(9);
doc2.setFont("helvetica");
//doc2.setFontStyle('bold');
// doc2.text(heading1_start_point,45,heading1);
};

View File

@ -26,10 +26,10 @@
<div ng-if="ExamAttens != 'AfterNoon'">
<div id="attendance_header">
<table width="102%" border="1" id = "" style="background-color:#fff;">
<table width="100%" border="1" id = "" style="background-color:#fff;">
<tbody>
<tr>
<td><center> <h3 class="ng-binding" >{{pdfuname}} {{ pdfbatch }}- Examination {{pdfcenter.CenterName}} Center Morning Attendance - {{pdfexamdate | date:"dd-MM-yyyy"}} </h3></center></td>
<td><center> <h4 class="ng-binding" >{{pdfuname}} {{ pdfbatch }}- Examination {{pdfcenter.CenterName}} Center Morning Attendance - {{pdfexamdate | date:"dd-MM-yyyy"}} </h4></center></td>
</tr>
</tbody>
@ -77,10 +77,10 @@
<div ng-if="ExamAttens != 'Morning'">
<div id="attendance_header">
<table width="102%" border="1" id = "" style="background-color:#fff;">
<table width="100%" border="1" id = "" style="background-color:#fff;">
<tbody>
<tr>
<td><center> <h3 class="ng-binding">{{pdfuname}} {{ pdfbatch }}- Examination {{pdfcenter.CenterName}} Center AfterNoon Attendance - {{pdfexamdate | date:"dd-MM-yyyy"}} </h3></center></td>
<td><center><b> <h4 class="ng-binding">{{pdfuname}} {{ pdfbatch }}- Examination {{pdfcenter.CenterName}} Center AfterNoon Attendance - {{pdfexamdate | date:"dd-MM-yyyy"}} </h4></b></center></td>
</tr>
</tbody>