I have blob data stored in the database which consists hall tickets of the entire class. I have already filtered and displayed hall ticket for each student, Now, the issue what I am facing is when I am trying to convert the displayed hall ticket in pdf format I am unable to do it( whatever approach I have used to display is not working to display the same in PDF)
<div class="widget-body clearfix" id="print" style="display:none;">
<?php
$studId= $this->dashboard_model->getstudId();
$html = implode(" ",$blob);
echo $html;
?>
</div>
<script>
$(window).load(function() {
var studId= <?php echo $studId; ?>;
$('#print').html('<table style="width:100%;border:thick double #333333;" align="center">'+$('#'+studId).html()+'</table>').css('display', 'block');
$('#print tr').css('font-size', '10px');
});
</script>