Skip to content

Instantly share code, notes, and snippets.

document.getElementById("dowload").addEventListener("click", () => {
const invoice = this.document.getElementById("invoice");
var compans = this.document.getElementById("compans");
console.log(compans);
var opt = {
filename: compans.value,
image: { type: 'jpeg', quality: '1' },
jsPDF: { unit: 'in', format: 'a4', orientation: 'l' },
html2canvas: {
dpi: 500,
{
"editor.inlineSuggest.enabled": true,
"editor.defaultFormatter": "bysabi.prettier-vscode-standard",
"files.associations": {
"*.json": "jsonc",
"*.module": "php",
"*.php": "php",
"*.js": "javascript",
"*.html": "html",
"*.css": "css",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Description" content="Enter your description here" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">