Get Your College logo

GET YOUR COLLEGE

Career Guidance Resources

Access our library of career guides to make informed decisions about your future. Login to download comprehensive PDF resources.

© 2026 Get Your College. All Rights Reserved.
Designed And Developed By  TriggrsWeb Solutions
// for download pdf function slugify(text) { return text .toString() .toLowerCase() .trim() .replace(/\.[^/.]+$/, "") // remove extension .replace(/[^a-z0-9]+/g, "-") // replace non-alphanumeric with dashes .replace(/^-+|-+$/g, ""); // trim dashes } async function DownloadPdf(fileUrl, fileName = "download.pdf") { try { // Fetch file as Blob const response = await fetch(fileUrl); if (!response.ok) throw new Error("Failed to fetch file"); const blob = await response.blob(); // Slugify given filename (keep extension intact) const ext = 'pdf'; const baseName = slugify(fileName.replace(/\.[^/.]+$/, "")); const slugifyFileName = `${baseName}.${ext}`; // Create a temporary blob URL const blobUrl = window.URL.createObjectURL(blob); // Create download link const link = document.createElement("a"); link.href = blobUrl; link.setAttribute("download", slugifyFileName); document.body.appendChild(link); // Trigger download link.click(); // Clean up document.body.removeChild(link); window.URL.revokeObjectURL(blobUrl); } catch (error) { console.error("Download failed:", error); } }