pdf
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://pro767--10245f1c375411f0984e9e149126039e.web.val.run
A comprehensive web application for PDF manipulation and conversion operations.
- PDF Merge: Combine multiple PDF files into one
- PDF Split: Extract specific pages or split into separate files
- PDF to Images: Convert PDF pages to PNG/JPG images
- Images to PDF: Convert images to PDF format
- PDF Compression: Reduce PDF file size
- PDF Info: View PDF metadata and page count
- Password Protection: Add/remove password protection
- Page Rotation: Rotate PDF pages
βββ backend/
β βββ index.ts # Main Hono server
β βββ routes/
β βββ pdf.ts # PDF processing endpoints
β βββ static.ts # Static file serving
βββ frontend/
β βββ index.html # Main HTML template
β βββ index.tsx # React frontend entry
β βββ components/
β β βββ App.tsx # Main app component
β β βββ FileUpload.tsx # File upload component
β β βββ ToolSelector.tsx # Tool selection component
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
- Select a PDF operation from the tool selector
- Upload your PDF file(s) or images
- Configure operation parameters
- Process and download the result
- Backend: Hono + PDF-lib for PDF processing
- Frontend: React + TailwindCSS
- File Handling: Browser File API
- PDF Processing: PDF-lib library