Advanced PDF Scanner
Document scanning with automatic edge detection
Scan Controls
Camera View
Start camera or upload an image
Click "Camera" to begin scanning
Advanced Scanning Features
Automatic edge detection, perspective correction and enhancement filters
Auto Edge Detection
Automatic document border detection (edge detection) with manual corner adjustment. Automatically finds and crops to the document boundaries; check the corners and adjust them if needed.
8 Professional Filters
Magic Enhance, B&W, Grayscale, Sharpen, High Contrast, Color Boost, Remove Shadows - each optimized for different document types.
Drag & Drop Reorder
Easily reorder pages with intuitive drag and drop. Organize your multi-page document exactly how you want it before downloading.
Advanced Document Scanner with Automatic Edge Detection
Our advanced PDF scanner combines cutting-edge document detection algorithms with professional-grade image filters to deliver exceptional scanning results. Whether you're digitizing contracts, receipts, business cards, or multi-page documents, our scanner provides CamScanner-level quality completely free in your browser.
Automatic Edge Detection & Perspective Correction
Unlike basic scanners, our tool uses Canny edge detection and advanced computer vision algorithms to automatically find document boundaries. The moment you capture a photo, the system analyzes the image, detects corners using contour analysis, and highlights the document area with a blue overlay. You can then fine-tune the selection by dragging the corner handles for pixel-perfect accuracy.
The perspective correction feature uses homography transformation to straighten skewed documents. Even if you photograph a document at an angle, our algorithm calculates the transformation matrix and warps the image back to a perfect rectangular view. This eliminates distortion and makes scanned text more readable for OCR or archival purposes.
8 Professional Image Enhancement Filters
Each filter is carefully designed for specific document types and conditions:
- Magic Enhance: Automatically adjusts levels, boosts contrast by 30%, and applies sharpening. Best for general-purpose scanning when you want quick, professional results.
- Black & White: Uses Otsu's adaptive thresholding algorithm to convert documents to pure black text on white background. Perfect for text documents, contracts, and forms. Creates smallest file sizes.
- Grayscale: Professional luminance-based grayscale conversion (0.299R + 0.587G + 0.114B) that preserves tonal detail better than simple desaturation.
- Sharpen: Applies 3x3 convolution kernel with adjustable intensity. Enhances edges and fine details, ideal for blurry photos or low-resolution scans.
- High Contrast: Increases contrast by 60% to make faded text more readable. Essential for old documents, carbon copies, or thermally-printed receipts.
- Color Boost: Increases saturation by 1.5x using HSL color space manipulation. Makes color documents, charts, and diagrams more vibrant.
- Remove Shadows: Estimates background using morphological operations and normalizes lighting. Eliminates shadows from desk lamps or uneven lighting conditions.
- Original: No filter applied - use when your lighting is perfect and you want unprocessed capture.
Brightness, Contrast & Quality Controls
Beyond preset filters, you have fine-grained control over image parameters. The brightness slider (-100 to +100) compensates for underexposed or overexposed captures. The contrast slider (-100 to +100) helps separate text from background in challenging conditions.
The quality slider (50-100%) lets you balance file size and visual fidelity. For text documents, 70-80% provides excellent clarity while keeping files under 200KB per page. For photos or detailed graphics, use 90-100% to preserve every detail. The difference can reduce file sizes by 60% while maintaining acceptable quality.
Multi-Page PDF with Drag & Drop Reordering
Building multi-page PDFs is effortless. After scanning each page, it's added to your document collection with a thumbnail preview. The drag and drop interface powered by react-beautiful-dnd lets you reorder pages by simply clicking and dragging thumbnails to new positions.
Each page can be individually rotated (90° increments) or deleted if you need to rescan. The thumbnail grid shows page numbers and gives you a visual overview of your entire document before generating the final PDF. This is perfect for organizing multi-page contracts, books, or report scans.
High-Quality PDF Generation with pdf-lib
We use pdf-lib, a modern JavaScript PDF library, to create production-quality PDFs entirely in your browser. Unlike older methods that simply embed images, pdf-lib creates properly structured PDF documents with metadata, correct page dimensions, and optimal compression.
The generated PDFs include document title, creation date, and author metadata. Images are embedded as JPEG or PNG based on your filter choice, with the quality setting applied consistently. The result is professional PDF documents that open correctly in all PDF readers and can be safely archived or printed.
Complete Privacy & Security
Everything happens in your browser. Unlike cloud-based scanning services, your documents never leave your device. The camera stream is captured, processed, and converted to PDF using JavaScript running locally. There are no uploads to servers, no cloud storage, and no tracking cookies.
This architecture ensures complete privacy for sensitive documents like medical records, financial statements, tax returns, legal contracts, or personal identification. Once you close the browser tab, all data is immediately cleared from memory. You maintain full control over your scanned files.
Mobile-Optimized Scanning Workflow
The scanner is fully responsive and touch-optimized for mobile devices. On smartphones, it automatically requests the rear-facing camera for better document capture. The corner adjustment handles are large enough to drag comfortably with your finger, and the filter strip scrolls smoothly on touch screens.
The step-by-step workflow (Capture → Detect → Adjust → Filter → Save) is designed for one-handed mobile use. Large, clearly labeled buttons make it easy to navigate even on small screens. Whether you're scanning a receipt at a restaurant or documenting a contract at a client meeting, the mobile experience is seamless.
Use Cases & Applications
Business & Office: Scan expense receipts, invoices, purchase orders, contracts, signed documents, business cards, whiteboards, presentations, and meeting notes. The B&W filter is perfect for professional document archival.
Education: Digitize textbook pages, homework assignments, lecture notes, handwritten study guides, certificates, and transcripts. The Sharpen filter ensures text remains crisp when zoomed in for reading on tablets.
Legal & Medical: Scan legal documents, court papers, medical records, prescriptions, insurance forms, and identification documents. High Contrast filter makes faded stamps and signatures more visible.
Personal: Create digital archives of tax documents, warranty cards, instruction manuals, family recipes, old photographs, and important letters. Remove Shadows filter helps with documents photographed in less-than-ideal lighting.
Technical Innovation Behind the Scanner
Our edge detection implements a custom Canny edge detection algorithm using Canvas API instead of heavy libraries like OpenCV.js. This reduces bundle size by over 8MB while maintaining excellent accuracy. The algorithm includes Gaussian blur for noise reduction, Sobel operators for gradient calculation, non-maximum suppression, and hysteresis thresholding.
The perspective transform uses homography matrices calculated from the four corner points. We solve the transformation equation using least squares approximation to map source coordinates to destination coordinates, then apply bilinear interpolation for smooth results.
Filters are implemented using pixel-level operations and convolution kernels. The Magic Enhance filter analyzes the image histogram to determine optimal levels, then applies contrast stretching and unsharp masking. All processing happens on the Canvas API with GPU acceleration where available.
Tips for Perfect Scans
- Lighting: Use even, diffused lighting. Natural daylight from a window works best. Avoid direct overhead lights that create harsh shadows.
- Background: Place documents on a contrasting surface (dark document on light background or vice versa) to help edge detection.
- Camera Position: Hold your device parallel to the document, not at an angle. The closer to 90°, the less distortion to correct.
- Distance: Fill the frame with the document but leave a small margin (5-10%) around edges for better detection.
- Stability: Keep the camera steady for 1-2 seconds during capture. Use both hands or rest your device on a stable surface.
- Review: Check the cropped result before applying filters. It's easier to retake now than to rescan later.
- Filter Selection: Try multiple filters and compare. What looks best on screen may differ from your intended use (printing vs. digital).
Frequently Asked Questions
Below you'll find detailed answers to common questions about our advanced scanner's features, capabilities, and best practices.
Frequently Asked Questions
How does auto edge detection work?
Our advanced scanner uses Canny edge detection algorithm to automatically find document boundaries. It detects corners, applies perspective correction, and crops the document automatically. You can also manually adjust corners by dragging the handles for perfect alignment.
What filters are available for document enhancement?
We offer 8 professional filters: Magic Enhance (auto optimization), Black & White (adaptive thresholding), Grayscale, Sharpen, High Contrast, Color Boost, and Remove Shadows. Each filter is optimized for different document types with adjustable brightness and contrast.
Can I reorder pages in my scanned PDF?
Yes! Use drag and drop to reorder pages easily. Just click and drag any page thumbnail to rearrange the order. You can also rotate or delete individual pages before generating your final PDF document.
How accurate is the perspective correction?
Our homography transformation provides professional-grade perspective correction. It automatically straightens skewed documents and removes background distortion. The algorithm works even with documents photographed at angles up to 45 degrees.
What output quality should I choose?
For text documents, 70-80% quality is optimal. For photos or detailed graphics, use 90-100%. Higher quality produces larger file sizes but maintains better detail. The quality slider lets you balance file size and clarity based on your needs.
Is the scanner completely free to use?
Yes, completely free with unlimited scans! There are no page limits, no watermarks, no registration required, and no hidden fees. All processing happens in your browser for complete privacy.
Does it work offline?
Once the page is loaded, most features work offline. The scanner processes everything locally in your browser without requiring an internet connection. You'll need internet only to initially load the tool.
Can I scan documents in low light?
Yes! Our edge detection algorithm works in various lighting conditions. For best results, use the Magic Enhance or Remove Shadows filter after scanning. These filters compensate for poor lighting and improve document clarity automatically.
Start Scanning with Advanced Features Today
Auto Edge Detection
Automatic document boundary detection with manual fine-tuning of the corners.
8 Professional Filters
Enhancement filters optimized for text, photos, and mixed content documents.
Perspective Correction
Automatically straightens skewed documents using advanced homography transformation.
Drag & Drop Pages
Intuitive page reordering for perfect document organization before download.
Experience professional-grade document scanning with CamScanner-level features, completely free