How PDF Merging Works
AnyTool merges PDFs by reading each file as an ArrayBuffer, copying all pages into a new PDF document using pdf-lib, and producing the combined output. The entire process runs in the browser via Web Workers.
- Reads files as ArrayBuffer for in-memory processing
- Uses pdf-lib to copy pages sequentially
- Preserves original page dimensions and content
- Supports up to 50 files per merge operation
