"use client"; import dayjs from "dayjs"; export const generatePDF = ( accountNo: string, balance: string, txns: any[], customerName: string, periodFrom: string, periodTo: string, // branchName: string, branchCode: string, cifNumber: string, address: string ) => { const html2pdf = require("html2pdf.js"); /* --------------------------------------------------------- * 1) BUILD TRANSACTION ROWS * --------------------------------------------------------- */ const rows = txns .map((t: any) => { return `
Head Office: Dharmsala, District Kangra (H.P.), Pin. 176215
| Account Name ${customerName} | Branch Name ${branchCode} |
| Account Number ${accountNo} | Branch Code ${branchCode} |
| CIF Number ${cifNumber} | Branch Address DHARAMSHALA, KANGRA |
| Address ${address} | |
| Date | Mode / Particulars | Withdrawals / Deposits | Balance |
|---|
*** END OF STATEMENT ***
• The Kangra Central Cooperative Bank Officials or representatives will NEVER ask you for your personal information i.e. your card details, passwords, PIN, CVV, OTP etc. Do not share such details with anyone over phone, SMS or email.
• Always stay vigilant to suspicious emails. Do not open any suspicious emails.
• Always stay vigilant when giving out sensitive personal or account information.
• Beware of messages that instill a sense of urgency (e.g., account will expire unless you "verify" your information). Contact the Bank directly if unsure.
• Always log out of secondary devices and reset your passwords frequently.
• Use strong passwords: Create strong passwords that are difficult for hackers to guess.
• Use public Wi-Fi with caution: Be careful when using public Wi-Fi networks.
• Back up your data regularly to a secure, encrypted, off-site location.
• Follow corporate security policies: Adhere to your company's security guidelines.
• Assess third-party app permissions carefully before granting access.
• Lock your computer and mobile phone when not in use.
• Don't leave devices unattended. Keep all mobile devices, such as laptops and cell phones, physically secured.
• Don't leave Bluetooth / Wireless turned on when not in use. Enable them only when needed and in a safe environment.