jsPDF is a low-level library for building PDF files in JavaScript.
It does not support multiline text.
It does, text accept array, just split with splitTextToSize
Based on: https://gist.github.com/AnalyzePlatypus/c54d520e9bd5b5f662aeb0276e3f01a4
| #!/bin/bash | |
| # Prompt for sudo password | |
| echo "Enter your sudo password:" | |
| sudo -v | |
| # Install necessary packages | |
| sudo dnf install -y zsh git zoxide | |
| # Install Oh My Zsh |
| # Download the site (exclude fonts/icons) from WaybackMachine! https://web.archive.org/ | |
| # Replace <TIMESPAMP> and example.com | |
| wget --mirror \ | |
| --convert-links \ | |
| --adjust-extension \ | |
| --page-requisites \ | |
| --no-parent \ | |
| --cut-dirs=3 \ | |
| --restrict-file-names=unix \ |
| :: This script should be run in a priviledged command prompt | |
| @echo off | |
| echo This script is going to restart your computer. | |
| echo Make sure to close all open applications in order not to lose any unsaved work. | |
| choice /m "Do you want to continue" | |
| if %errorlevel% NEQ "1" goto End |
| #!/bin/bash | |
| if [ $(id -u) != 0 ]; then | |
| printf "**********************************************\n" | |
| printf "* Error: You must run this with sudo or root *\n" | |
| printf "**********************************************\n" | |
| exit 1 | |
| fi | |
| apt upgrade |
| // more info https://github.com/sainf/feathers-mongodb-aggregate | |
| // | |
| // To use on all / before | |
| // | |
| // This adds the array to params.aggregate to find and get. | |
| // | |
| // Strips data starts with "_l_" (lowercase L) on update and patch, useful for clear keys like lookups | |
| // | |
| // Example | |
| // aggregate([ |
| @echo off | |
| @ setlocal enableextensions | |
| @ cd /d "%~dp0" | |
| echo. | |
| echo This script file has to be copied to a folder that | |
| echo contains the files you want to block on Windows Firewall. | |
| echo It will block all .exe files in that folder and subfolders. | |
| echo. | |
| echo RUN IT AS ADMINISTRATOR |
| ########## | |
| # Tweaked Win10 Initial Setup Script | |
| # Primary Author: Disassembler <disassembler@dasm.cz> | |
| # Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences. | |
| # Version: 2.20.2, 2018-09-14 | |
| # Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
| # Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
| # Tweak difference: | |
| # | |
| # @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
| readFileAsync(file) { | |
| return new Promise((resolve, reject) => { | |
| let reader = new FileReader() | |
| reader.onload = () => { | |
| resolve(reader.result) | |
| } | |
| reader.onerror = reject |
jsPDF is a low-level library for building PDF files in JavaScript.
It does not support multiline text.
It does, text accept array, just split with splitTextToSize
Based on: https://gist.github.com/AnalyzePlatypus/c54d520e9bd5b5f662aeb0276e3f01a4