import React, { useState, useRef, useEffect } from 'react'; import { FileText, ArrowLeft, Check, Upload, Image as ImageIcon, X, Download, Printer } from 'lucide-react'; // --- 1. DEFAULT LOGO --- const DefaultVectorLogo = () => ( *** TCEA *** TECHNO COLLEGE OF ENGINEERING AGARTALA ); export default function App() { const [view, setView] = useState('edit'); // 'edit', 'preview' const fileInputRef = useRef(null); const [customLogo, setCustomLogo] = useState(null); const [isGenerating, setIsGenerating] = useState(false); // Load html2pdf script dynamically useEffect(() => { const script = document.createElement('script'); script.src = "https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"; script.async = true; document.body.appendChild(script); return () => { documen...
Posts
Showing posts from November, 2025