[PR #2360] [MERGED] feat(dify_extractor): support PDF image extraction and fix DOCX hyperlinks (v0.0.8) #2422

Closed
opened 2026-02-16 11:16:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/2360
Author: @yangzq50
Created: 1/4/2026
Status: Merged
Merged: 1/5/2026
Merged by: @crazywoola

Base: mainHead: fix_docx_pdf


📝 Commits (3)

  • 0663887 fix: correct docx hyperlink extraction
  • fefe412 feat(rag): implement image extraction in PdfExtractor
  • 4053bb5 chore: Bump dify_extractor plugin version from 0.0.7 to 0.0.8.

📊 Changes

4 files changed (+238 additions, -49 deletions)

View changed files

📝 tools/dify_extractor/manifest.yaml (+1 -1)
📝 tools/dify_extractor/tools/dify_extractor.py (+1 -1)
📝 tools/dify_extractor/tools/pdf_extractor.py (+100 -10)
📝 tools/dify_extractor/tools/word_extractor.py (+136 -37)

📄 Description

Related Issues or Context

  • PDF Image Extraction: Added support for extracting images from PDF documents, consistent with the functionality in the Word extractor.

  • DOCX Hyperlink Fix: Fixed an issue where hyperlinks in DOCX files were not being correctly extracted. The extractor now parses the underlying XML to resolve link relationships and format them as Markdown links.

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.6.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 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-official-plugins/pull/2360 **Author:** [@yangzq50](https://github.com/yangzq50) **Created:** 1/4/2026 **Status:** ✅ Merged **Merged:** 1/5/2026 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `fix_docx_pdf` --- ### 📝 Commits (3) - [`0663887`](https://github.com/langgenius/dify-official-plugins/commit/06638874ab0ea821ae6b6951a21d40e042ff2813) fix: correct docx hyperlink extraction - [`fefe412`](https://github.com/langgenius/dify-official-plugins/commit/fefe412d09e2d7609539417e34d70ba3dde438d1) feat(rag): implement image extraction in PdfExtractor - [`4053bb5`](https://github.com/langgenius/dify-official-plugins/commit/4053bb5d0f044104057a92219b4b1bd8ac7a5d2e) chore: Bump dify_extractor plugin version from 0.0.7 to 0.0.8. ### 📊 Changes **4 files changed** (+238 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `tools/dify_extractor/manifest.yaml` (+1 -1) 📝 `tools/dify_extractor/tools/dify_extractor.py` (+1 -1) 📝 `tools/dify_extractor/tools/pdf_extractor.py` (+100 -10) 📝 `tools/dify_extractor/tools/word_extractor.py` (+136 -37) </details> ### 📄 Description ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> - **PDF Image Extraction**: Added support for extracting images from PDF documents, consistent with the functionality in the Word extractor. - **DOCX Hyperlink Fix**: Fixed an issue where hyperlinks in DOCX files were not being correctly extracted. The extractor now parses the underlying XML to resolve link relationships and format them as Markdown links. ## This PR contains Changes to *Non-LLM Models Plugin* - [x] I have Run Comprehensive Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) <!-- ⚠️ NOTE: Version Format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Significant architectural changes or incompatible API modifications - MINOR (x.0.x): For New feature additions while maintaining backward compatibility - PATCH (x.x.0): For Backward-compatible bug fixes and minor improvements - Note: Each Version Component (MAJOR, MINOR, PATCH) Can Be 2 Digits, e.g., 10.11.22 --> ## Dify Plugin SDK Version - [x] I have Ensured `dify_plugin>=0.3.0,<0.6.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### SaaS Environment - [x] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <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-16 11:16:56 -05:00
yindo closed this issue 2026-02-16 11:16:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#2422