Edit PDF
Annotate, draw, sign, insert images and text, search content, and reorder pages in PDF documents directly inside your browser with 100% local compilation.
Lease_Contract.pdf (4 pages) -> Add Signature -> Draw Signature appliedReady locally via WebAssembly & JavaScript
Lease_Contract_Signed.pdf (4 pages) -> Signature embedded cleanly on page 3100% Client-Side • Zero Server Upload
Unlike .docx or HTML files, PDFs were engineered as fixed-layout digital paper designed to render identically on every screen and press. That immutability makes PDFs indispensable for contracts and engineering packets, yet awkward whenever you need to type into a flat form, mark a revision with an arrow, place a signature, or reorder misplaced pages. Edit PDF pairs a PDF.js canvas stage with a pdf-lib binary compiler directly inside your browser so you can annotate, sign, and restructure files privately with zero cloud uploads.
Why Editing a PDF Differs Fundamentally from Editing a Word Processor File
Inside a PDF file, there is no paragraph flow or responsive grid. Every text run lives inside a compressed /FlateDecode content stream as explicit positioning operators (Td, Tm) followed by character-code strings (Tj, TJ). Changing a sentence in place does not reflow subsequent lines—doing so would collide with adjacent glyphs or shatter multi-column layouts.
To guarantee consistent visual output across files produced by LaTeX, Illustrator, CAD software, or office scanners, Edit PDF relies on a non-destructive two-layer pipeline:
- Interactive Canvas Stage (
PDF.js): Renders pages from50%to200%(plusFit WidthandFit Page), extracts searchable text viapage.getTextContent(), and tracks draggable, resizable overlay objects in resolution-independent percentage coordinates(0%–100%). - Binary Compiler (
pdf-lib): On export, the engine builds a clean destinationPDFDocument, copies source pages in your modifiedpagesOrder, writes per-page/Rotateupdates, and draws each overlay directly into the page content stream.
Mapping Interactive Canvas Objects to Native PDF Primitives
Rather than flattening your whole workspace into a heavy, blurry raster image, the export engine translates each annotation object into its closest ISO 32000 vector or image primitive:
| Editor Tool / Object | Serialized PDF Primitive | Styling & Transparency Support | Post-Export Sharpness & Behavior |
|---|---|---|---|
Text Box (text) | drawText (BT ... Tj ET, Standard Helvetica) | Font size, hex DeviceRGB color, arbitrary degree rotation | Selectable vector text; resolution-independent |
Rectangle (rect) | drawRectangle (re path + fill/stroke) | Fill color, transparent fill, border color/width, /ExtGState opacity | Crisp vector box; rotatable around centroid |
Circle / Ellipse (circle) | drawEllipse (cubic Bezier approximation) | Independent X/Y radii, fill/border color, opacity, rotation | Smooth vector curves at any zoom level |
Line & Arrow (line, arrow) | drawLine + closed triangular drawSvgPath tip | Stroke thickness, hex color, opacity, proportional arrowhead sizing | Vector callouts with sharp miters |
| Checkmark / Crossmark | Dual rotated vector drawLine segments | Default green (#22c55e) or red (#ef4444), customizable stroke | Clean review stamps for forms and QA audits |
Freehand Drawing (drawing) | Parsed SVG M / L polyline segments -> drawLine | Pencil or translucent Marker highlight opacity + width | Native vector strokes instead of jagged bitmaps |
| Image & Signature | embedPng (/FlateDecode + /SMask) or embedJpg (/DCTDecode) | Drag-resizable bounding box, opacity, rotation | Embedded Image XObject preserving PNG transparency |
Coordinate Normalization and Centroid-Pivoted Rotations
Because users can both zoom the browser viewport and rotate individual pages inside the same session, raw screen pixel coordinates would drift immediately on export. Every object is therefore tracked in normalized visual fractions u = x / 100, v = y / 100, uw = width / 100, and vh = height / 100.
During export, getPdfCoords() maps normalized top-left screen boxes into unrotated bottom-left PDF User Space (pageW × pageH) across all four page rotations (0°, 90°, 180°, 270°). For an unrotated page, box projection and centroid-pivoted rotation around (cx, cy) work as follows:
// Convert top-left percentage box to bottom-left PDF points
const x = u * pageW, y = (1 - v - vh) * pageH;
const width = uw * pageW, height = vh * pageH;
// Rotate object around bounding-box centroid (cx, cy)
const rad = (((obj.rotation || 0) - pageConfig.rotation) * Math.PI) / 180;
const cx = x + width / 2, cy = y + height / 2;
const originX = cx - ((width / 2) * Math.cos(rad) - (height / 2) * Math.sin(rad));
const originY = cy - ((width / 2) * Math.sin(rad) + (height / 2) * Math.cos(rad));
Freehand ink paths go through an equivalent per-vertex projection (parseSvgPath + getPdfPoint), converting relative M/L stroke coordinates cleanly into native vector segments.
Managing Layers, Page Order, Signatures, and Draft Recovery
Complex document markups quickly accumulate overlapping shapes, callout arrows, and signatures. Four built-in studio systems keep larger editing sessions orderly:
- Layer Z-order management: The Layers sidebar lists objects on the active page and exposes Bring to Front, Send to Back, Move Up, and Move Down actions, which directly determine the painter's-algorithm drawing order written into the exported PDF content stream.
- Synchronized page manipulation: Dragging a thumbnail to reorder pages, rotating a page 90°, duplicating a template sheet, or deleting an obsolete page automatically updates
pageIndexreferences across yourobjectsarray so annotations stay pinned to their intended pages. - Flexible signatures: Capture quick approval signatures via freehand canvas drawing, typed script rendering, or PNG/JPEG upload; if you need a streamlined dedicated signing flow with multi-placement templates, try Sign PDF.
- 50-level Undo/Redo & Autosave: Every state transition snapshots both
objectsandpagesOrderinto an in-memory history stack (Ctrl+Z/Ctrl+Y) and persists drafts tolocalStorage, whileCtrl+C/Ctrl+Vcopies annotations onto the current page with a slight offset for rapid form filling.
Text Cover-Ups, Font Encoding Limits, and True Redaction
Understanding three technical boundaries ensures your exported PDF behaves reliably across compliance checks and downstream readers:
- White cover-ups are NOT cryptographic redaction: When replacing or hiding original page text via an opaque white rectangle (
rgb(1, 1, 1)), the original glyphs remain inside the source page's/Contentsstream beneath the white patch. Anyone usingCtrl+F, text selection, orpdftotextcan still read the hidden string. Whenever legal, medical, or financial text must be irreversibly destroyed, process the document through Redact PDF instead. - Standard font character coverage: Exported text boxes embed ISO Standard 14
Helvetica(WinAnsiEncoding). Standard English and Western European characters render cleanly, whereas unsupported Unicode symbols or non-Latin glyphs should be inserted as transparent PNGs or typed canvas signatures if required. - Locking interactive layers for archival distribution: If your source PDF contains fillable AcroForm widgets or markup annotations that must be merged into a non-editable archival snapshot after your edits are complete, run the final file through Flatten PDF.
How to Use Edit PDF
Drag and drop a PDF file into the editor workspace (or click to browse) to parse pages locally with PDF.js and pdf-lib.
Choose a tool from the top toolbar: Select, Text, Shapes (Rectangle, Ellipse, Line, Arrow, Checkmark, Crossmark), Pencil/Marker, Sticky Note, Image, or Signature.
Customize stroke width, fill and border colors, opacity, font size, and object rotation; manage overlapping items in the Layers sidebar tab.
Use the Thumbnails sidebar to drag-reorder, rotate, duplicate, or delete pages, or switch to the Search tab to locate text across the entire document.
Use Ctrl+Z/Ctrl+Y for undo/redo and Ctrl+C/Ctrl+V to duplicate annotations across pages.
Click Export PDF (or press Ctrl+S) to compile your reordered pages and vector/image overlays into a fresh local PDF download.
Real Examples
Electronic Signature Placement
Quickly sign a rental agreement by typing or drawing your signature and placing it on page 3.
Lease_Contract.pdf (4 pages) -> Add Signature -> Draw Signature appliedLease_Contract_Signed.pdf (4 pages) -> Signature embedded cleanly on page 3PDF Form Filling
Fill out a flat scanned job application by placing text elements over blank text fields.
Application_Form.pdf (1 page) -> Add Text selected -> Placed name and email fieldsApplication_Form_Filled.pdf (1 page) -> All text boxes compiled as vector text layersFrequently Asked Questions
Can I edit existing paragraphs in a PDF like a Word document?
Is covering sensitive text with a white box or shape inside Edit PDF secure redaction?
What signature creation methods are built into the PDF editor?
How does Edit PDF protect my edits if I accidentally close or refresh my browser tab?
Can I reorder, rotate, duplicate, or delete pages while annotating the same document?
Key Features
- Full vector annotation suite: text boxes, rectangles, ellipses, lines, arrowheads, checkmarks, crossmarks, and freehand pencil/marker paths
- Three-mode local signature studio (Draw, Type, Upload) plus PNG and JPEG image embedding via pdf-lib
- Interactive page manager supporting drag-and-drop reordering, 90-degree rotation, duplication, and deletion
- Object layer stack controls (Bring to Front, Send to Back, Move Up/Down) and full-text PDF.js search across pages
- 50-step Undo/Redo history, Copy/Paste clipboard (Ctrl+C/Ctrl+V), Delete, Ctrl+S export, and localStorage draft autosave
- Rotation-aware coordinate normalization that burns percentage-placed overlays accurately into ISO 32000 content streams
Common Use Cases
- Filling out non-interactive PDF onboarding packets, tax worksheets, and vendor registration forms
- Marking up engineering blueprints, UI wireframes, and marketing proofs with arrows, callouts, and sticky notes
- Adding handwritten or typed signatures, dates, and company logos to client proposals and NDAs locally
- Reviewing multi-page contracts with full-text search, checkmarks, crossmarks, and margin commentary
- Assembling custom client decks by duplicating template pages, dropping obsolete slides, and rotating charts
- Annotating confidential medical, HR, or legal PDFs in air-gapped or compliance-restricted browser sessions
Explore More Tools in This Category
View All Developer & Utility ToolsJPG to PDF Converter
Compile JPG, PNG, and WebP photographs into compact, print-aligned PDF documents in your browser with custom JPEG quality scaling, interactive cropping, and 1-up, 2-up, or 4-up page grids.
Flatten PDF
Permanently bake interactive AcroForm fields onto the page canvas, purge editable annotations, and optionally clear metadata headers locally in your browser.
Sign PDF
Draw, type, or upload your signature, place ink stamps, dates, and text fields directly onto PDF pages, and export signed copies locally in your browser.
Merge PDF
Combine multiple PDF documents into a single PDF file quickly, securely, and smoothly. 100% browser-based client-side processing keeps your documents private.
Split PDF
Split PDF pages into separate documents or extract specific pages securely. 100% browser-based processing ensures absolute document privacy.
Compress PDF
Reduce PDF file size while maintaining maximum quality. 100% secure processing with hybrid client-server smart routing.
PDF to JPG Converter
Convert PDF pages into high-resolution JPG images directly in your browser. Select custom DPI scaling up to 4x, target specific page ranges, and download individual files or a batched ZIP archive.
Remove PDF Pages
Delete unwanted pages from your PDF documents instantly. 100% secure client-side browser processing. No uploads required.