PDF Tools - Advanced PDF Processing & OCR
Advanced PDF processing, OCR, Image and text parsing, smart image crop nodes for ComfyUI. Features include multi-language OCR (Surya, PaddleOCR VL), AI vision analysis (Florence-2, LayoutLMv3), advanced PDF extraction with quality assessment, spread detection for scanned books, and comprehensive layout analysis. Supports 90+ languages with multiple output formats.
How much VRAM does PDF Tools - Advanced PDF Processing & OCR require?
Direct Answer: The ComfyUI node PDF Tools - Advanced PDF Processing & OCR requires a minimum base VRAM of 256MB and is optimized for GPUs with at least 4GB of VRAM. Low VRAM mode is fully supported for resource-constrained setups.
- Base VRAM:
- 256MB (0.3GB)
- Recommended GPU:
- 4GB+ VRAM
- Low VRAM Mode:
- ✓ Supported
- Estimation Confidence:
- HIGH
Interactive VRAM Compatibility Estimator
Your GPU has plenty of headroom. You can run this node safely with your active configurations!
Deploy on High-Performance GPUs
Need more VRAM to run ComfyUI with this node? Rent low-cost, high-performance GPUs on Vast.ai instantly.
Deploy on Cloud GPUs
Need more VRAM to run ComfyUI with this node? Rent low-cost, high-performance cloud GPUs on RunPod instantly.
What Python packages are required for PDF Tools - Advanced PDF Processing & OCR?
Direct Answer: Running PDF Tools - Advanced PDF Processing & OCR requires installing the following Python package dependencies: accelerate>=0.24.0, browser-cookie3>=0.19.0, colorama>=0.4.6 # For colored terminal output, gallery-dl>=1.26.0, jsonschema>=4.19.0, numpy>=1.24.0, opencv-python>=4.8.0, pillow>=10.0.0, pymupdf>=1.23.0 # fitz - Main PDF library, pypdf2>=3.0.0 # Alternative PDF library, requests>=2.31.0, safetensors>=0.4.0, sentencepiece>=0.1.99 # Required for some transformers models, timm>=0.9.0 # PyTorch Image Models - required by Florence2, tqdm>=4.66.0, transformers>=4.35.0, urllib3>=2.0.0, yt-dlp>=2023.12.0. Ensure your ComfyUI environment has these packages active before launching.
accelerate>=0.24.0
browser-cookie3>=0.19.0
colorama>=0.4.6 # For colored terminal output
gallery-dl>=1.26.0
jsonschema>=4.19.0
numpy>=1.24.0
opencv-python>=4.8.0
pillow>=10.0.0
pymupdf>=1.23.0 # fitz - Main PDF library
pypdf2>=3.0.0 # Alternative PDF library
requests>=2.31.0
safetensors>=0.4.0
sentencepiece>=0.1.99 # Required for some transformers models
timm>=0.9.0 # PyTorch Image Models - required by Florence2
tqdm>=4.66.0
transformers>=4.35.0
urllib3>=2.0.0
yt-dlp>=2023.12.0Interactive Setup & Dependency Resolver
# Loading command...Frequently Asked Questions
How much VRAM does PDF Tools - Advanced PDF Processing & OCR require?
PDF Tools - Advanced PDF Processing & OCR requires a minimum of 256MB (0.3GB) of VRAM for base operation. For optimal performance, a GPU with at least 4GB of VRAM is recommended. This node supports low VRAM mode for resource-constrained setups.
Can I run PDF Tools - Advanced PDF Processing & OCR on an RTX 3060, RTX 4070, or RTX 4090?
✅ RTX 3060 (12GB): Yes, fully compatible with 10.6GB headroom. ✅ RTX 4070 (12GB): Yes, fully compatible with 10.6GB headroom. ✅ RTX 4070 Ti (16GB): Yes, fully compatible with 14.2GB headroom. ✅ RTX 4090 (24GB): Yes, fully compatible with 21.4GB headroom
What PyTorch version does PDF Tools - Advanced PDF Processing & OCR need?
PDF Tools - Advanced PDF Processing & OCR requires the following PyTorch-related packages: timm>=0.9.0 # PyTorch Image Models - required by Florence2. Ensure your ComfyUI environment has these installed.
What Python packages are required for PDF Tools - Advanced PDF Processing & OCR?
To run PDF Tools - Advanced PDF Processing & OCR, you need to install: accelerate>=0.24.0, browser-cookie3>=0.19.0, colorama>=0.4.6 # For colored terminal output, gallery-dl>=1.26.0, jsonschema>=4.19.0, numpy>=1.24.0, opencv-python>=4.8.0, pillow>=10.0.0, pymupdf>=1.23.0 # fitz - Main PDF library, pypdf2>=3.0.0 # Alternative PDF library, requests>=2.31.0, safetensors>=0.4.0, sentencepiece>=0.1.99 # Required for some transformers models, timm>=0.9.0 # PyTorch Image Models - required by Florence2, tqdm>=4.66.0, transformers>=4.35.0, urllib3>=2.0.0, yt-dlp>=2023.12.0. You can install these using pip or add them to your requirements.txt file.
How can I reduce VRAM usage when running PDF Tools - Advanced PDF Processing & OCR?
PDF Tools - Advanced PDF Processing & OCR supports low VRAM mode. To reduce memory usage: (1) Enable --lowvram or --medvram flags in ComfyUI, (2) Reduce batch size to 1, (3) Use fp16 or fp8 precision if supported, (4) Close other GPU applications.
How do I install PDF Tools - Advanced PDF Processing & OCR in ComfyUI?
To install PDF Tools - Advanced PDF Processing & OCR: (1) Navigate to your ComfyUI/custom_nodes directory, (2) Clone the repository: git clone https://github.com/EricRollei/PDF-Tools, (3) Install dependencies: pip install -r requirements.txt (if present), (4) Restart ComfyUI. Alternatively, use ComfyUI Manager for one-click installation.