Technical Specification Document
TwoPDF Platform
An all-in-one, AI-powered PDF utility platform offering 16+ tools for document conversion, manipulation, and management โ 100% free and browser-based.
Scope & Objectives
TwoPDF is a comprehensive, web-based document tools platform. The application runs entirely in the browser, requiring no installation, login, or subscription. All operations are client-side or lightweight server-side.
โ In Scope
- 16 functional PDF tool modules
- Drag-and-drop file upload
- Instant file processing & download
- Responsive, mobile-ready UI
- Cross-browser compatibility
โ Out of Scope
- User authentication / accounts
- Cloud file storage
- Batch API access
- Mobile native apps
๐ ๏ธ Technical Skills & Stack
Frontend
- โ๏ธ React.js
- ๐จ Tailwind CSS
- ๐ HTML5 / CSS3
- โก JavaScript (ES6+)
Backend
- ๐ข Node.js
- ๐ Laravel (PHP)
- ๐ REST API
- ๐ฆ Composer / npm
PDF Libraries
- ๐ pdf-lib
- ๐ PDF.js
- ๐จ๏ธ TCPDF / DOMPDF
- ๐ง Ghostscript
Technology Stack
Frontend
HTML / CSS / JS
Styling
Tailwind CSS
PDF Engine
PDF.js / jsPDF
File Handling
File API / Drag-Drop
Compression
JSZip
Hosting
Cloud / CDN
Module Specifications
Merge PDF
twopdf.com/pdf/margepdfCombines multiple PDF files into a single document. Files can be drag-and-dropped and reordered before merging.
Input
Multiple .pdf files
Output
Single merged .pdf
UI
Drag & drop zone
Split PDF
twopdf.com/pdf/splitpdfExtracts individual pages or page ranges from a PDF file, outputting each as a separate document.
Input
Single .pdf file
Output
Individual page PDFs
UI
File selector
PDF to ZIP
twopdf.com/pdf/pdfzipBundles multiple PDF files into a compressed ZIP archive for easy sharing and reduced file size.
Input
Multiple .pdf files
Output
.zip archive
Library
JSZip
PDF to Text
twopdf.com/pdf/pdftotxtExtracts all text content from a PDF file and outputs it as a plain .txt file. Near 100% accuracy using OCR/text layer extraction.
Input
.pdf file
Output
.txt file
Accuracy
~100%
PDF to PPT
twopdf.com/pdf/pdftopptConverts PDF documents into editable PowerPoint (.pptx) presentations. Each PDF page maps to a slide.
Input
.pdf file
Output
.pptx file
Mapping
1 page = 1 slide
Image to PDF
twopdf.com/pdf/imgtopdfConverts one or more images (JPG, PNG, etc.) into a single PDF document. Images are selected from the gallery.
Input
JPG, PNG, WebP
Output
.pdf file
Multi-image
Yes
Protect PDF
twopdf.com/pdf/protectpdfGenerates a password-protected PDF from user-entered text content. Prevents unauthorized access to sensitive documents.
Input
Text + password
Output
Encrypted .pdf
Encryption
Password-based
Watermark PDF
twopdf.com/pdf/watermarkpdfStamps a custom text watermark over a PDF. Users can configure position, font size, and opacity before generating.
Input
.pdf + watermark text
Options
Position, Size, Opacity
Output
Watermarked .pdf
Word (DOCX) to HTML
twopdf.com/pdf/word-to-pdfConverts DOCX files to an HTML preview that can be rendered and exported. Preserves document structure and formatting.
Input
.docx file
Output
HTML preview
Action
Generate Preview
PPT to PDF
twopdf.com/pdf/ppt-to-pdfConverts PPTX slideshow files into text-based PDF documents. Supports text preview and direct PDF export.
Input
.pptx file
Output
.pdf (text-based)
Actions
Preview + Export
Excel to PDF
twopdf.com/pdf/excel-to-pdfConverts Excel spreadsheet files (.xlsx) to PDF or HTML format. Two export options available.
Input
.xlsx file
Output
.pdf or .html
Actions
Convert / Export HTML
PDF to JPG
twopdf.com/pdf/pdf-to-jpgConverts each page of a PDF into high-quality JPG image files. Useful for presentations, thumbnails, and sharing.
Input
.pdf file(s)
Output
.jpg per page
Quality
High resolution
PDF Rotate
twopdf.com/pdf/rotate-pdfRotates PDF pages in any direction. Includes a live preview with a bottom toolbar for rotation controls per page.
Input
.pdf file
Controls
Per-page toolbar
Preview
Live inline
HTML to PDF
twopdf.com/pdf/html-to-pdfUploads an HTML file and converts it to a PDF document, preserving styles and layout structure.
Input
.html file
Output
.pdf file
Layout
Preserved
Compress PDF
twopdf.com/pdf/compress-pdfReduces PDF file size while maintaining document quality. Compresses and outputs as a ZIP archive.
Input
Multiple .pdf files
Output
Compressed .zip
Method
Lossless compression
Document Viewer
twopdf.com/pdf/pdf-viewerAn in-browser PDF viewer that allows users to open and read PDF documents without downloading or using external software.
Input
.pdf file
Output
Inline viewer
Engine
PDF.js
UX Patterns
๐ฅ File Upload
Dashed green border drop zone with fallback "Select" button. Consistent across all 16 modules.
๐ต Primary Action
Blue CTA button (Convert/Generate/Export). Secondary actions in green or outlined styles.
๐๏ธ Popular Modules Grid
Below every tool page, a 5-column grid of all modules provides quick cross-navigation.
๐ Layout
Top navigation bar with all tools listed. Centered, single-column content layout. Clean white background.
All Screenshots