PDF to Image Converter Plugin for Dify
A powerful PDF to image conversion plugin for Dify that converts PDF pages into high-quality images with customizable settings.
🚀 Features
- 📄 → 🖼️ PDF to Image Conversion: Convert any PDF document into individual page images
- 🎨 Multiple Format Support: Export as PNG (lossless) or JPEG (compressed)
- 📐 Adjustable Resolution: Choose from 72 to 600 DPI for different use cases
- ✂️ Page Splitting: Each page as a separate image file
- 🎯 Quality Control: Adjustable JPEG compression quality (1-100)
- 🔍 Transparency Support: Optional alpha channel for PNG format
- 📊 Batch Processing: Handle multiple PDF files simultaneously
📦 Installation
- Navigate to the Plugin section in your Dify application
- Click "Add Plugin"
- Search for "PDF to Image Converter" or upload this plugin package
- Follow the installation wizard
🛠️ Configuration Options
Image Format
- PNG: Best for quality, supports transparency
- JPEG/JPG: Smaller file size, adjustable quality
Resolution (DPI)
- 72 DPI: Screen viewing, web use
- 150 DPI: Standard quality, documents
- 300 DPI: High quality, professional use
- 600 DPI: Print quality, archival
Additional Options
- Split Pages: Create individual images for each page
- JPEG Quality: 1-100 (higher = better quality, larger size)
- Transparency: Include alpha channel (PNG only)
📝 Usage Example
- Upload one or more PDF files
- Select your preferred image format (PNG/JPEG)
- Choose resolution (DPI) based on your needs
- Adjust quality settings if using JPEG
- Process and download converted images
🔄 Output
The plugin returns:
- Individual image files for each PDF page
- Detailed JSON metadata including:
- Page dimensions
- File sizes
- Conversion settings
- Processing statistics
- Summary report of the conversion process
🔒 Privacy & Security
- No data collection or storage
- All processing happens locally
- No external API calls
- Files are processed in memory only
- Compliant with data protection regulations
📋 Requirements
- PyMuPDF library (included)
- Pillow for image processing (included)
- Compatible with Dify plugin system
🤝 Support
For issues, feature requests, or questions:
📄 License
This plugin is licensed under the MIT License [blocked].
🙏 Credits
- Built with PyMuPDF and Pillow
- Developed for the Dify platform