`; generateDocument(); };
reader.readAsDataURL(e.target.files[0]);
}
});
function generateDocument() {
const name = document.getElementById('fullName').value || 'Candidate Name';
const mobile = document.getElementById('mobile').value || 'N/A';
const email = document.getElementById('email').value || 'N/A';
const address = document.getElementById('address')?.value || '';
const dob = document.getElementById('dob')?.value || '';
const father = document.getElementById('fatherName')?.value || '';
const mother = document.getElementById('motherName')?.value || '';
const gender = document.getElementById('gender')?.value || '';
const marital = document.getElementById('marital')?.value || '';
const nationality = document.getElementById('nationality')?.value || 'Indian';
const languages = document.getElementById('languages')?.value || '';
let formattedDOB = dob;
if (dob) { const d = new Date(dob); formattedDOB = `${d.getDate()} ${d.toLocaleString('default', { month: 'long' })} ${d.getFullYear()}`; }
const textColor = document.getElementById('textColor').value;
const headingColor = document.getElementById('headingColor').value;
const bgColor = document.getElementById('bgColor').value;
const borderColor = document.getElementById('borderColor').value;
const fontSize = document.getElementById('fontSize').value + 'px';
const boldOption = document.getElementById('boldOption').value;
let docHTML = `
`;
const photoHTML = currentPhotoDataURL ? `
` : '';
docHTML += ``;
docHTML += `
π€ PERSONAL INFORMATION
${father ? `
Father: ${father}
` : ''}${mother ? `
Mother: ${mother}
` : ''}${formattedDOB ? `
DOB: ${formattedDOB}
` : ''}${gender ? `
Gender: ${gender}
` : ''}${marital ? `
Marital: ${marital}
` : ''}${nationality ? `
Nationality: ${nationality}
` : ''}${languages ? `
Languages: ${languages}
` : ''}
`;
if (currentType === 'resume') {
let expHTML = ''; document.querySelectorAll('#expFields .dynamic-field textarea').forEach(t => { if(t.value) expHTML += `
${t.value} `; });
if(expHTML) docHTML += `
`;
let eduHTML = ''; document.querySelectorAll('#eduFields .dynamic-field .dynamic-row').forEach(row => { const inp = row.querySelectorAll('input'); if(inp[0]?.value) eduHTML += `
${inp[0].value} ${inp[1]?.value||''} ${inp[2]?.value||''} ${inp[3]?.value||''} `; });
if(eduHTML) docHTML += `
π EDUCATION Degree University Year % ${eduHTML}
`;
let skills = ''; document.querySelectorAll('#skillFields .dynamic-field input').forEach(i => { if(i.value) skills += `
${i.value} `; });
if(skills) docHTML += `
`;
}
else if (currentType === 'cv') {
let pubHTML = ''; document.querySelectorAll('#pubFields .dynamic-field textarea').forEach(t => { if(t.value) pubHTML += `
${t.value} `; });
if(pubHTML) docHTML += `
`;
let certHTML = ''; document.querySelectorAll('#certFields .dynamic-field input').forEach(i => { if(i.value) certHTML += `
${i.value} `; });
if(certHTML) docHTML += `
`;
}
else if (currentType === 'biodata') {
const familyBg = document.getElementById('familyBg')?.value || '';
const religion = document.getElementById('religion')?.value || '';
const height = document.getElementById('height')?.value || '';
const weight = document.getElementById('weight')?.value || '';
const occupation = document.getElementById('occupation')?.value || '';
const income = document.getElementById('income')?.value || '';
if(familyBg) docHTML += `
π¨βπ©βπ§ FAMILY ${familyBg}
`;
let extra = ''; if(religion) extra += `
Religion: ${religion}
`; if(height) extra += `
Height: ${height}cm
`; if(weight) extra += `
Weight: ${weight}kg
`; if(occupation) extra += `
Occupation: ${occupation}
`; if(income) extra += `
Income: βΉ${income}
`;
if(extra) docHTML += `
`;
}
else if (currentType === 'executive') {
const execSum = document.getElementById('execSummary')?.value || '';
if(execSum) docHTML += `
β EXECUTIVE SUMMARY ${execSum}
`;
let leadHTML = ''; document.querySelectorAll('#leadershipFields .dynamic-field textarea').forEach(t => { if(t.value) leadHTML += `
${t.value} `; });
if(leadHTML) docHTML += `
`;
let awardHTML = ''; document.querySelectorAll('#awardFields .dynamic-field input').forEach(i => { if(i.value) awardHTML += `
${i.value} `; });
if(awardHTML) docHTML += `
`;
}
docHTML += `
π DECLARATION I hereby declare that all information provided is true and correct.
Place: ________ Date: ________
(${name.split(' ')[0]}) Signature
`;
previewDiv.innerHTML = docHTML;
}
async function downloadImage() {
const el = document.getElementById('printDoc');
if(el) { const canvas = await html2canvas(el, { scale: 2 }); const a = document.createElement('a'); a.download = `${currentType}_document.jpg`; a.href = canvas.toDataURL('image/jpeg',0.9); a.click(); }
}
function downloadPDF() {
const el = document.getElementById('printDoc');
if(el) html2pdf().set({ margin: 0.5, filename: `${currentType}_document.pdf`, image: { quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'a4', orientation: 'portrait' } }).from(el).save();
}
function resetAll() {
document.getElementById('fullName').value = 'RAJESH KUMAR SINGH';
document.getElementById('mobile').value = '+91 98765 43210';
document.getElementById('email').value = 'rajesh.kumar@example.com';
document.getElementById('address').value = 'H.No. 123, Civil Lines, New Delhi - 110001';
document.getElementById('fatherName').value = 'SHRI RAMESH SINGH';
document.getElementById('motherName').value = 'SMT. SAVITA SINGH';
document.getElementById('languages').value = 'Hindi, English, Sanskrit';
currentPhotoDataURL = null; photoPreview.innerHTML = '';
generateDynamicForm(); generateDocument();
}
generateBtn.addEventListener('click', generateDocument);
resetBtn.addEventListener('click', resetAll);
downloadImgBtn.addEventListener('click', downloadImage);
downloadPdfBtn.addEventListener('click', downloadPDF);
['textColor','headingColor','bgColor','borderColor','fontSize','boldOption'].forEach(id => document.getElementById(id).addEventListener('input', generateDocument));
['fullName','mobile','email','address','dob','fatherName','motherName','gender','marital','nationality','languages'].forEach(id => { const el = document.getElementById(id); if(el) el.addEventListener('input', generateDocument); });
generateDynamicForm();
generateDocument();
Resume, CV And Bio Data Maker – Professional Documents Instantly Banayein! π€π
Nayi job ke liye apply karna ho, academic profile taiyar karni ho, ya phir marriage/biodata profile banani ho, ek sahi aur attractive format me document hona sabse zaroori hai. Hamara Resume, CV And Bio Data Maker Tool aapko kuch hi minutes me high-quality Resumes, detailed CVs, aur Marriage Bio-data create karne ki suvidha deta hai!
Is tool me aapko ready-made professional templates milte hain jahan bas apni personal details, education, aur work experience fill karke 1-click me PDF download kar sakte hain.
Key Features:
3-in-1 Smart Tool: Professional Resume, Academic CV, aur Marriage Bio-data teeno ek hi jagah banayein.
Pre-Designed Templates: Modern, clean aur HR-approved formats.
Easy Customization: Personal info, qualifications, skills, aur photos aasaani se add aur edit karein.
Instant PDF Download: High-resolution printable PDF file single click me ready ho jaati hai.
Aaj hi is Resume, CV And Bio Data Maker tool ko try karein aur apna professional document seconds me ready karein!
Related