A Vite + React + TypeScript application that generates realistic Wells Fargo bank statement PDFs from customizable transaction data.
- ✅ Exact Wells Fargo bank statement layout replication
- ✅ Customizable customer information
- ✅ Editable account details and balances
- ✅ Transaction history management
- ✅ PDF generation capability
- ✅ Print-optimized styling
- ✅ Responsive design
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository:
git clone <repository-url>
cd fakedoc
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
-
Edit Statement Details: Use the form on the left to modify customer information, account numbers, and balances.
-
Preview: The right panel shows a real-time preview of the bank statement as it will appear in the PDF.
-
Generate PDF: Click the "Generate PDF" button to create and download a PDF version of the statement.
src/
├── components/
│ ├── BankStatementPDF.tsx # Main statement component
│ └── BankStatementPDF.css # Statement styling
├── types.ts # TypeScript interfaces
├── App.tsx # Main application component
├── main.tsx # React entry point
└── index.css # Global styles
Modify the transactions
array in the statementData
state:
transactions: [
{
date: "12/27",
description: "Your transaction description",
depositsAdditions: 100.0, // Optional
withdrawalsSubtractions: 50.0, // Optional
endingDailyBalance: 150.0, // Optional
},
];
Update the accountOptions
object to change which services appear as checked:
accountOptions: {
onlineBanking: true,
onlineBillPay: false,
// ... other options
}
- Vite - Fast build tool and dev server
- React 18 - UI framework
- TypeScript - Type safety
- jsPDF - PDF generation
- html2canvas - HTML to canvas conversion
npm run dev
- Start development servernpm run build
- Build for productionnpm run lint
- Run ESLintnpm run preview
- Preview production build
The component uses CSS that closely matches the Wells Fargo statement design:
- Exact font sizes and weights
- Proper spacing and alignment
- Print-optimized layouts
- Responsive design for mobile viewing
This project is for educational purposes only. Please ensure compliance with all applicable laws and regulations when using this software.
This software is intended for legitimate document generation purposes only. Users are responsible for ensuring their use complies with all applicable laws and regulations.