PDF Architect is a powerful, lightning-fast PDF editing extension built entirely within VS Code. It provides a sleek, modern interface allowing you to view and manipulate PDFs without ever leaving your editor.
Built using React, Vite, pdf.js (for high-performance rendering via Web Workers), and pdf-lib (for binary manipulation).
✨ Features
Blazing Fast Viewing: Reads and renders even massive PDFs instantly using background Web Workers, bypassing standard UI thread blocking.
Add Signatures: Draw a signature or upload an image file (PNG/JPEG) and place it absolutely anywhere on the document with precision drag-and-drop mechanics.
Merge PDFs: Easily combine multiple PDF files into one. Drag to reorder them exactly how you want them appended to the current document.
Split PDFs: Extract custom page ranges (e.g. 1-3, 5, 8-10) or automatically split documents into equal chunks (e.g. every N pages).
Export to Images: Convert specific pages or entire documents into high-quality PNG or JPEG images instantly.
🛠️ Project Structure
The project is split into a VS Code Extension backend and a React WebView frontend. The structure is meticulously organized for readability and slimness.
Install Dependencies
Install packages for both the backend extension and the frontend webview:
bun install
cd webview-ui && bun install && cd ..
Build the Webview UI
The React frontend must be compiled into standard JavaScript/CSS for the VS Code webview to load it:
bun run build:webview
Run in VS Code
Press F5 in VS Code. This will automatically compile the TypeScript backend and launch the Extension Development Host. Open any .pdf file to launch PDF Architect!