diff --git a/Apollo/assets/js/controllers/studentCtrl.js b/Apollo/assets/js/controllers/studentCtrl.js
index d5b15040..1b8ec2b4 100755
--- a/Apollo/assets/js/controllers/studentCtrl.js
+++ b/Apollo/assets/js/controllers/studentCtrl.js
@@ -1130,6 +1130,28 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
}
}
+
+ $scope.printPdf = function (file_Uid){
+ alert(file_Uid);
+ $http({
+ url : 'http://localhost/apollo_New_Update_20_02_2018/apollodec/Apollo/images/'+ file_Uid,
+ method : 'GET',
+ headers : {
+ 'Content-type' : 'application/pdf'
+ },
+ responseType : 'arraybuffer'
+ }).success(function(data, status, headers, config) {
+ var pdfFile = new Blob([ data ], {
+ type : 'application/pdf'
+ });
+ var pdfUrl = URL.createObjectURL(pdfFile);
+ var printwWindow = $window.open(pdfUrl);
+ // printwWindow.print();
+ }).error(function(data, status, headers, config) {
+ alert('Sorry, something went wrong')
+ });
+ };
+
// end : entrollment document upload ====================================
$scope.stepsModelEdit = [];
@@ -2709,4 +2731,27 @@ app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "Wor
};
-}]);
\ No newline at end of file
+}]);
+
+
+// Hook in a directive
+app.directive('fileDownload', function(){
+ return {
+ restrict: 'E', // applied on 'element'
+ scope: {
+ fileurl: '@fileurl',
+ linktext: '@linktext'
+ },
+ template: '', // need this so that the inner HTML can be re-used
+ link: function(scope, elem, attrs) {
+ /* Ref: https://thinkster.io/egghead/isolate-scope-at
+ * This block is used when we have
+ * scope: {
+ fileurl: '=fileurl',
+ linktext: '=linktext'
+ }
+ scope.fileurl = attrs.fileurl;
+ scope.linktext = attrs.linktext;*/
+ }
+ }
+})
diff --git a/Apollo/assets/views/student/editStudentDetails.html b/Apollo/assets/views/student/editStudentDetails.html
index e3ab5dc9..2e162257 100755
--- a/Apollo/assets/views/student/editStudentDetails.html
+++ b/Apollo/assets/views/student/editStudentDetails.html
@@ -396,7 +396,7 @@
-
+
@@ -479,7 +481,7 @@
-
+
- -->
+
\ No newline at end of file
diff --git a/Apollo/images/documents/Dri_OhjZmAeYsgkz_132_SMTP-POP3_4.pdf b/Apollo/images/documents/Dri_OhjZmAeYsgkz_132_SMTP-POP3_4.pdf
new file mode 100644
index 00000000..2669dc2d
Binary files /dev/null and b/Apollo/images/documents/Dri_OhjZmAeYsgkz_132_SMTP-POP3_4.pdf differ