[PR #1827] [MERGED] update: for plugin file_converter-0.0.2.difypkg【add new features】 #1885

Closed
opened 2026-02-22 18:10:51 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugins/pull/1827
Author: @sawyer-shi
Created: 12/30/2025
Status: Merged
Merged: 1/5/2026
Merged by: @crazywoola

Base: mainHead: main


📝 Commits (1)

  • 2151a59 update: for plugin file_converter-0.0.2.difypkg【add new features】

📊 Changes

1 file changed (+0 additions, -0 deletions)

View changed files

sawyer-shi/file_converter/file_converter-0.0.2.difypkg (+0 -0)

📄 Description

File Converter

A powerful Dify plugin providing comprehensive local file conversion capabilities. Supports conversion between PDF, Image, Word, Excel, PowerPoint, and Text formats with high-quality output and flexible options.

Version Information

  • Current Version: v0.0.2
  • Release Date: 2025-12-28
  • Compatibility: Dify Plugin Framework
  • Python Version: 3.12

Version History

  • v0.0.2 (2025-12-28): Added CSV to Excel, Excel to CSV, and CSV to PDF conversion capabilities with smart layout optimization
  • v0.0.1 (2025-11-02): Initial release with comprehensive file conversion capabilities

Quick Start

  1. Download the file_converter plugin from the Dify marketplace
  2. Install the plugin in your Dify environment
  3. Start using the various conversion tools immediately

Core Features

English

PDF Conversions

  • PDF to Image: Convert PDF documents to various image formats (.jpg, .jpeg, .png, .bmp, .tiff)
  • PDF to Word: Extract content from PDF and convert to Word documents
  • PDF to Text: Extract text content from PDF documents

Image Conversions

  • Image to PDF: Convert one or more images to PDF format

Microsoft Office Conversions

  • Word to PDF: Convert Word documents to PDF format
  • Word to Text: Extract text content from Word documents
  • Excel to PDF: Convert Excel spreadsheets to PDF format
  • PowerPoint to PDF: Convert PowerPoint presentations to PDF format

Text Conversions

  • Text to PDF: Convert plain text files to PDF format
  • Text to Word: Convert plain text files to Word documents

CSV Conversions

  • CSV to Excel: Convert CSV files to Excel format with automatic column width adjustment
  • Excel to CSV: Convert Excel files to CSV format, supporting all worksheets
  • CSV to PDF: Convert CSV files to PDF format with smart layout optimization and automatic column width adjustment

Technical Advantages

  • Local Processing: All conversions are performed locally without external dependencies
  • High-Quality Output: Maintains original quality and formatting as much as possible
  • Multiple Format Support: Comprehensive support for common file formats
  • Error Handling: Robust error handling with informative messages
  • Flexible Options: Various configuration options for different use cases
  • Secure Processing: Files are processed securely without data retention

Requirements

  • Python 3.12
  • Dify Platform access
  • Required Python packages (installed via requirements.txt)

Installation & Configuration

  1. Install the required dependencies:

    pip install -r requirements.txt
    
  2. Install the plugin in your Dify environment following the standard plugin installation process

Usage

The plugin provides various tools for different file conversion tasks:

PDF Conversions

1. PDF to Image (pdf_2_image)

Convert PDF documents to image format.

  • Parameters:
    • input_file: The PDF document to convert (required)
    • output_format: Output image format (jpg, jpeg, png, bmp, or tiff, default: png)

2. PDF to Word (pdf_2_word)

Convert PDF documents to Word format.

  • Parameters:
    • input_file: The PDF document to convert (required)

3. PDF to Text (pdf_2_text)

Extract text content from PDF documents.

  • Parameters:
    • input_file: The PDF document to extract text from (required)

Image Conversions

4. Image to PDF (image_2_pdf)

Convert one or more images to a single PDF document.

  • Parameters:
    • input_files: The image files to convert (required, supports multiple files)
  • Features:
    • Supports multiple image formats (.jpg, .jpeg, .png, .bmp, .tiff)
    • Converts multiple images into a single PDF document
    • Maintains the order of images as they are uploaded
    • Each image becomes a separate page in the PDF

Microsoft Office Conversions

5. Word to PDF (word_2_pdf)

Convert Word documents to PDF format.

  • Parameters:
    • input_file: The Word document to convert (required)

6. Word to Text (word_2_text)

Extract text content from Word documents.

  • Parameters:
    • input_file: The Word document to extract text from (required)

7. Excel to PDF (excel_2_pdf)

Convert Excel spreadsheets to PDF format.

  • Parameters:
    • input_file: The Excel file to convert (required)
  • Features:
    • Supports both .xlsx and .xls formats
    • Smart layout optimization for different table sizes
    • Automatic column width adjustment based on content
    • Landscape orientation for wide tables
    • Table splitting for excessively wide tables
    • Font scaling to fit content within page boundaries

8. PowerPoint to PDF (ppt_2_pdf)

Convert PowerPoint presentations to PDF format.

  • Parameters:
    • input_file: The PowerPoint file to convert (required)

Text Conversions

9. Text to PDF (text_2_pdf)

Convert plain text files to PDF format.

  • Parameters:
    • input_file: The text file to convert (required)

10. Text to Word (text_2_word)

Convert plain text files to Word documents.

  • Parameters:
    • input_file: The text file to convert (required)

CSV Conversions

11. CSV to Excel (csv_2_excel)

Convert CSV files to Excel format.

  • Parameters:
    • input_file: The CSV file to convert (required)
  • Features:
    • Supports multiple encodings (utf-8, gbk, gb2312, latin-1, iso-8859-1)
    • Automatic column width adjustment
    • Sanitized sheet names to meet Excel specifications

12. Excel to CSV (excel_2_csv)

Convert Excel files to CSV format.

  • Parameters:
    • input_file: The Excel file to convert (required)
  • Features:
    • Supports all worksheets in the Excel file (.xlsx, .xls)
    • Each worksheet is converted to a separate CSV file
    • Maintains data integrity and formatting

13. CSV to PDF (csv_2_pdf)

Convert CSV files to PDF format with smart layout optimization.

  • Parameters:
    • input_file: The CSV file to convert (required)
  • Features:
    • Smart layout optimization for different table sizes
    • Automatic column width adjustment based on content
    • Landscape orientation for wide tables
    • Table splitting for excessively wide tables
    • Font scaling to fit content within page boundaries
    • Multiple encoding support (utf-8, gbk, gb2312, latin-1, iso-8859-1)

Notes

  • All conversions are performed locally without uploading files to external services
  • Some conversions may require additional libraries that are included in the requirements.txt
  • Large files may take longer to process depending on their complexity and size
  • The quality of output files depends on the quality and format of the input files

Developer Information

  • Author: https://github.com/sawyer-shi
  • Email: sawyer36@foxmail.com
  • License: Apache License 2.0
  • Source Code: https://github.com/sawyer-shi/dify-plugins-file_converter
  • Support: Through Dify platform and GitHub Issues

License Notice

This project is licensed under the Apache License 2.0. See the LICENSE file for the full license text.

Note: This project was previously licensed under MIT License but has been updated to Apache License 2.0 starting from version 0.0.2.


Ready to convert your files with ease?

Plugin Submission Form

1. Metadata

  • Plugin Author:
  • Plugin Name:
  • Repository URL:

2. Submission Type

  • New plugin submission
  • Version update for existing plugin

3. Description

4. Checklist

  • I have read and followed the Publish to Dify Marketplace guidelines
  • I have read and comply with the Plugin Developer Agreement
  • I confirm my plugin works properly on both Dify Community Edition and Cloud Version
  • I confirm my plugin has been thoroughly tested for completeness and functionality
  • My plugin brings new value to Dify

5. Documentation Checklist

Please confirm that your plugin README includes all necessary information:

  • Step-by-step setup instructions
  • Detailed usage instructions
  • All required APIs and credentials are clearly listed
  • Connection requirements and configuration details
  • Link to the repository for the plugin source code

6. Privacy Protection Information

Based on Dify Plugin Privacy Protection Guidelines:

Data Collection

Privacy Policy

  • I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugins/pull/1827 **Author:** [@sawyer-shi](https://github.com/sawyer-shi) **Created:** 12/30/2025 **Status:** ✅ Merged **Merged:** 1/5/2026 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`2151a59`](https://github.com/langgenius/dify-plugins/commit/2151a5972ebe6009201b71575b4d2df712718772) update: for plugin file_converter-0.0.2.difypkg【add new features】 ### 📊 Changes **1 file changed** (+0 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `sawyer-shi/file_converter/file_converter-0.0.2.difypkg` (+0 -0) </details> ### 📄 Description # File Converter A powerful Dify plugin providing comprehensive local file conversion capabilities. Supports conversion between PDF, Image, Word, Excel, PowerPoint, and Text formats with high-quality output and flexible options. ## Version Information - **Current Version**: v0.0.2 - **Release Date**: 2025-12-28 - **Compatibility**: Dify Plugin Framework - **Python Version**: 3.12 ### Version History - **v0.0.2** (2025-12-28): Added CSV to Excel, Excel to CSV, and CSV to PDF conversion capabilities with smart layout optimization - **v0.0.1** (2025-11-02): Initial release with comprehensive file conversion capabilities ## Quick Start 1. Download the file_converter plugin from the Dify marketplace 2. Install the plugin in your Dify environment 3. Start using the various conversion tools immediately ## Core Features <img width="397" height="1195" alt="English" src="https://github.com/user-attachments/assets/38ad2f28-3482-492f-8dad-9d1a3b175e64" /> ### PDF Conversions - **PDF to Image**: Convert PDF documents to various image formats (.jpg, .jpeg, .png, .bmp, .tiff) - **PDF to Word**: Extract content from PDF and convert to Word documents - **PDF to Text**: Extract text content from PDF documents ### Image Conversions - **Image to PDF**: Convert one or more images to PDF format ### Microsoft Office Conversions - **Word to PDF**: Convert Word documents to PDF format - **Word to Text**: Extract text content from Word documents - **Excel to PDF**: Convert Excel spreadsheets to PDF format - **PowerPoint to PDF**: Convert PowerPoint presentations to PDF format ### Text Conversions - **Text to PDF**: Convert plain text files to PDF format - **Text to Word**: Convert plain text files to Word documents ### CSV Conversions - **CSV to Excel**: Convert CSV files to Excel format with automatic column width adjustment - **Excel to CSV**: Convert Excel files to CSV format, supporting all worksheets - **CSV to PDF**: Convert CSV files to PDF format with smart layout optimization and automatic column width adjustment ## Technical Advantages - **Local Processing**: All conversions are performed locally without external dependencies - **High-Quality Output**: Maintains original quality and formatting as much as possible - **Multiple Format Support**: Comprehensive support for common file formats - **Error Handling**: Robust error handling with informative messages - **Flexible Options**: Various configuration options for different use cases - **Secure Processing**: Files are processed securely without data retention ## Requirements - Python 3.12 - Dify Platform access - Required Python packages (installed via requirements.txt) ## Installation & Configuration 1. Install the required dependencies: ```bash pip install -r requirements.txt ``` 2. Install the plugin in your Dify environment following the standard plugin installation process ## Usage The plugin provides various tools for different file conversion tasks: ### PDF Conversions #### 1. PDF to Image (pdf_2_image) Convert PDF documents to image format. - **Parameters**: - `input_file`: The PDF document to convert (required) - `output_format`: Output image format (jpg, jpeg, png, bmp, or tiff, default: png) #### 2. PDF to Word (pdf_2_word) Convert PDF documents to Word format. - **Parameters**: - `input_file`: The PDF document to convert (required) #### 3. PDF to Text (pdf_2_text) Extract text content from PDF documents. - **Parameters**: - `input_file`: The PDF document to extract text from (required) ### Image Conversions #### 4. Image to PDF (image_2_pdf) Convert one or more images to a single PDF document. - **Parameters**: - `input_files`: The image files to convert (required, supports multiple files) - **Features**: - Supports multiple image formats (.jpg, .jpeg, .png, .bmp, .tiff) - Converts multiple images into a single PDF document - Maintains the order of images as they are uploaded - Each image becomes a separate page in the PDF ### Microsoft Office Conversions #### 5. Word to PDF (word_2_pdf) Convert Word documents to PDF format. - **Parameters**: - `input_file`: The Word document to convert (required) #### 6. Word to Text (word_2_text) Extract text content from Word documents. - **Parameters**: - `input_file`: The Word document to extract text from (required) #### 7. Excel to PDF (excel_2_pdf) Convert Excel spreadsheets to PDF format. - **Parameters**: - `input_file`: The Excel file to convert (required) - **Features**: - Supports both .xlsx and .xls formats - Smart layout optimization for different table sizes - Automatic column width adjustment based on content - Landscape orientation for wide tables - Table splitting for excessively wide tables - Font scaling to fit content within page boundaries #### 8. PowerPoint to PDF (ppt_2_pdf) Convert PowerPoint presentations to PDF format. - **Parameters**: - `input_file`: The PowerPoint file to convert (required) ### Text Conversions #### 9. Text to PDF (text_2_pdf) Convert plain text files to PDF format. - **Parameters**: - `input_file`: The text file to convert (required) #### 10. Text to Word (text_2_word) Convert plain text files to Word documents. - **Parameters**: - `input_file`: The text file to convert (required) ### CSV Conversions #### 11. CSV to Excel (csv_2_excel) Convert CSV files to Excel format. - **Parameters**: - `input_file`: The CSV file to convert (required) - **Features**: - Supports multiple encodings (utf-8, gbk, gb2312, latin-1, iso-8859-1) - Automatic column width adjustment - Sanitized sheet names to meet Excel specifications #### 12. Excel to CSV (excel_2_csv) Convert Excel files to CSV format. - **Parameters**: - `input_file`: The Excel file to convert (required) - **Features**: - Supports all worksheets in the Excel file (.xlsx, .xls) - Each worksheet is converted to a separate CSV file - Maintains data integrity and formatting #### 13. CSV to PDF (csv_2_pdf) Convert CSV files to PDF format with smart layout optimization. - **Parameters**: - `input_file`: The CSV file to convert (required) - **Features**: - Smart layout optimization for different table sizes - Automatic column width adjustment based on content - Landscape orientation for wide tables - Table splitting for excessively wide tables - Font scaling to fit content within page boundaries - Multiple encoding support (utf-8, gbk, gb2312, latin-1, iso-8859-1) ## Notes - All conversions are performed locally without uploading files to external services - Some conversions may require additional libraries that are included in the requirements.txt - Large files may take longer to process depending on their complexity and size - The quality of output files depends on the quality and format of the input files ## Developer Information - **Author**: `https://github.com/sawyer-shi` - **Email**: sawyer36@foxmail.com - **License**: Apache License 2.0 - **Source Code**: `https://github.com/sawyer-shi/dify-plugins-file_converter` - **Support**: Through Dify platform and GitHub Issues ## License Notice This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for the full license text. **Note**: This project was previously licensed under MIT License but has been updated to Apache License 2.0 starting from version 0.0.2. --- **Ready to convert your files with ease?** # Plugin Submission Form ## 1. Metadata <!-- Please provide the following metadata of your plugin to make it easier for the reviewer to check the changes. - Plugin Author : The author of the plugin which is defined in your manifest.yaml - Plugin Name : The name of the plugin which is defined in your manifest.yaml - Repository URL: The URL of the repository where the source code of your plugin is hosted --> - **Plugin Author**: - **Plugin Name**: - **Repository URL**: ## 2. Submission Type - [ ] New plugin submission - [x] Version update for existing plugin ## 3. Description <!-- Please briefly describe the purpose of the new plugin or the updates made to the existing plugin --> ## 4. Checklist - [x] I have read and followed the Publish to Dify Marketplace guidelines - [x] I have read and comply with the Plugin Developer Agreement - [x] I confirm my plugin works properly on both Dify Community Edition and Cloud Version - [x] I confirm my plugin has been thoroughly tested for completeness and functionality - [x] My plugin brings new value to Dify ## 5. Documentation Checklist Please confirm that your plugin README includes all necessary information: - [x] Step-by-step setup instructions - [x] Detailed usage instructions - [x] All required APIs and credentials are clearly listed - [x] Connection requirements and configuration details - [x] Link to the repository for the plugin source code ## 6. Privacy Protection Information Based on Dify Plugin Privacy Protection [Guidelines](https://docs.dify.ai/plugins/publish-plugins/publish-to-dify-marketplace/plugin-privacy-protection-guidelines): ### Data Collection <!-- Does your plugin collect any user personal data? If yes, please list what types of user personal data are being collected according to the Plugin Privacy Protection Guidelines (for example: Email address, IP address, Age, etc) --> ### Privacy Policy - [x] I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:10:51 -05:00
yindo closed this issue 2026-02-22 18:10:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#1885