This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
Redirect "/" "https://your_website.com" | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerAdmin [email protected] | |
ServerName your_website.com | |
ServerAlias www.your_website.com | |
DocumentRoot /var/www/your_website.com | |
ErrorLog ${APACHE_LOG_DIR}/website_error.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
download(): void { | |
const printContent = document.querySelector('.card-body'); | |
if (printContent) { | |
// Replace below line with library function, whichever you're using. | |
domToPng(printContent, { quality: 1, scale: 2 }) // Scale set to 2 for better quality in PDF | |
.then((canvas) => { | |
const imgData = canvas; | |
const pdf = new jsPDF('p', 'mm', 'letter'); // Portrait, mm, Letter size | |
const imgWidth = 86; |
OlderNewer