|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/erp.theinteractive.co.in/resources/views/purchase/ |
Upload File : |
<script src="{{ asset('js/jquery.min.js') }} "></script>
<script type="text/javascript" src="{{ asset('js/html2pdf.bundle.min.js') }}"></script>
<script>
function closeScript() {
// setTimeout(function () {
// window.open(window.location, '_self').close();
// }, 1000);
}
$(window).on('load', function () {
var element = document.getElementById('boxes');
var opt = {
filename: '{{Utility::purchaseNumberFormat($purchase->purchase_id)}}',
image: {type: 'jpeg', quality: 1},
html2canvas: {scale: 4, dpi: 72, letterRendering: true},
jsPDF: {unit: 'in', format: 'A4'}
};
html2pdf().set(opt).from(element).save().then(closeScript);
});
</script>