Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
import html2canvas from "html2canvas"; | |
import jsPDF from "jspdf"; | |
const exportPDF = () => { | |
const input = document.getElementById("documentID") as HTMLElement; | |
html2canvas(input, { logging: true, useCORS: true }).then((canvas) => { | |
const imgWidth = 290; | |
const imgHeight = 210; | |
const imgData = canvas.toDataURL("img/png"); transform canvas to an image | |
const pdf = new jsPDF("l", "mm", "a4"); // L is landscape, you can use whatever you want for example p to make it portrait |
var udp = require('dgram'); | |
// --------------------creating a udp server -------------------- | |
// creating a udp server | |
var server = udp.createSocket('udp4'); | |
// emits when any error occurs | |
server.on('error',function(error){ | |
console.log('Error: ' + error); |
# ANSI Start Codes | |
# Styles. | |
Normal="\x1b[0m" | |
Bold="\x1b[1m" | |
Faint="\x1b[2m" | |
Italic="\x1b[3m" | |
Underline="\x1b[4m" | |
Blink_Slow="\x1b[5m" | |
Blink_Rapid="\x1b[6m" |