Register

Resume Builder

achievements

Title

experience

education

projects

skills

'); newWindow.document.close(); newWindow.print(); newWindow.close(); }*/ /* custom.js jQuery(document).ready(function($) { $("#printButton").on("click", function() { // Get the HTML content of the specific section to be exported const sectionToExport = $("#preview-sc").html(); // Create a new jsPDF instance const doc = new jsPDF(); // Add the HTML content of the section to the PDF doc.fromHTML(sectionToExport, 15, 15); // Save the PDF with a filename doc.save("exported_section.pdf"); }); });*/ // custom.js jQuery(document).ready(function($) { $("#printButton").on("click", function() { // Get the HTML content of the specific section to be exported //const sectionToExport = $("#preview-sc").html(); const sectionToExport = document.getElementById("preview-sc"); // Create a new jsPDF instance //const doc = new jsPDF(); // Design the PDF content before adding it to the PDF const content = designPDFContent(sectionToExport); // Design the PDF layout // doc.text("PDF Export Example", 15, 15); // doc.fromHTML(sectionToExport, 15, 30, { // 'width': 180 //}); // Save the PDF with a filename //const pdfData = doc.output('blob'); //const pdfUrl = URL.createObjectURL(pdfData); // Open the PDF in a new tab //const newWindow = window.open(pdfUrl, '_blank'); // doc.save("cv_builder.pdf"); }); }); function designPDFContent(section) { // Create a new jsPDF instance const doc = new jsPDF(); // Apply custom styles to the section content const styles = ` `; // Convert the section content to HTML string with custom styles const content = styles + section.innerHTML; // Generate the PDF html2pdf() .from(content) .save("cv_builder.pdf"); }
#iguru_soc_icon_wrap_669d5f3b2fc3f a{ background: transparent; }#iguru_soc_icon_wrap_669d5f3b2fc3f a:hover{ background: transparent; border-color: #00bda6; }#iguru_soc_icon_wrap_669d5f3b2fc3f a{ color: #acacae; }#iguru_soc_icon_wrap_669d5f3b2fc3f a:hover{ color: #ffffff; }#iguru_soc_icon_wrap_669d5f3b31de8 a{ background: transparent; }#iguru_soc_icon_wrap_669d5f3b31de8 a:hover{ background: transparent; border-color: #00bda6; }#iguru_soc_icon_wrap_669d5f3b31de8 a{ color: #acacae; }#iguru_soc_icon_wrap_669d5f3b31de8 a:hover{ color: #ffffff; }