Repository navigation
feat: switch PDF engine to system libdeepin-pdfium - #456
Merged
pengfeixx merged 1 commit intoNov 24, 2026
Merged
Conversation
There was a problem hiding this comment.
Sorry @pengfeixx, this pull request is too large to review
It changes 1,366 files. Sourcery can review pull requests with up to 300 changed files.
|
Warning
详情 {
"export": {
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake": {
"a": [
" pdfium/base/base_export.h "
]
},
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri": {
"a": [
" $$PWD/pdfium/third_party/base/base_export.h \\"
]
}
}
} |
pengfeixx
force-pushed
the
feat/system-libdeepin-pdfium
branch
from
November 24, 2026 08:16
7040ab2 to
0236ec6
Compare
|
Warning
详情 {
"export": {
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake": {
"a": [
" pdfium/base/base_export.h "
]
},
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri": {
"a": [
" $$PWD/pdfium/third_party/base/base_export.h \\"
]
}
}
} |
pengfeixx
force-pushed
the
feat/system-libdeepin-pdfium
branch
from
November 24, 2026 08:20
0236ec6 to
597378b
Compare
|
Warning
详情 {
"export": {
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake": {
"a": [
" pdfium/base/base_export.h "
]
},
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri": {
"a": [
" $$PWD/pdfium/third_party/base/base_export.h \\"
]
}
}
} |
pengfeixx
force-pushed
the
feat/system-libdeepin-pdfium
branch
from
November 24, 2026 08:26
597378b to
5de5afc
Compare
|
Warning
详情 {
"export": {
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake": {
"a": [
" pdfium/base/base_export.h "
]
},
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri": {
"a": [
" $$PWD/pdfium/third_party/base/base_export.h \\"
]
}
}
} |
1. Remove bundled 3rdparty/deepin-pdfium sources and link the system library via pkg-config in cmake and qmake builds 2. Require libdeepin-pdfium (>= 2.0) providing the fileIdentifier and imageObjectRects APIs 3. Update debian/control and linglong.yaml to depend on libdeepin-pdfium Influence: 1. Open, render, zoom, annotate and save PDF documents, verify content is identical to previous version 2. Toggle night mode on PDF pages and verify reading history still matches a PDF after renaming or moving the file 3. Build the deb and linglong packages, verify ldd of the binaries resolves libdeepin-pdfium and batch print / html to pdf work feat: PDF 引擎切换为系统库 libdeepin-pdfium 1. 删除内嵌的 3rdparty/deepin-pdfium 源码,cmake 与 qmake 构建改为 pkg-config 链接系统库 2. 依赖 libdeepin-pdfium (>= 2.0) 提供的 fileIdentifier/imageObjectRects 接口 3. 更新 debian/control 与 linglong.yaml,依赖系统 libdeepin-pdfium Influence: 1. 打开、渲染、缩放、批注并保存 PDF 文档,确认内容与旧版本一致 2. PDF 页面开启夜间模式;重命名或移动 PDF 后验证阅读记录仍能匹配 3. 构建 deb 与玲珑包,验证二进制 ldd 解析到 libdeepin-pdfium, 批量打印与 html 转 pdf 功能正常 Log: PDF rendering now links the system libdeepin-pdfium library and the package depends on libdeepin-pdfium instead of a bundled copy PMS: TASK-398545
pengfeixx
force-pushed
the
feat/system-libdeepin-pdfium
branch
from
November 24, 2026 08:32
5de5afc to
d5b88a1
Compare
|
Warning
详情 {
"export": {
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake": {
"a": [
" pdfium/base/base_export.h "
]
},
"3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri": {
"a": [
" $$PWD/pdfium/third_party/base/base_export.h \\"
]
}
}
} |
lzwind
approved these changes
Nov 24, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pengfeixx The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
说明 / Summary
3rdparty/deepin-pdfium源码(pdfium 及封装层,-48 万行),cmake 与 qmake 构建统一改为 pkg-config 链接系统库deepin-pdfiumlibdeepin-pdfium (>= 2.0)提供的fileIdentifier/imageObjectRects接口(PDF 阅读记录文档标识、夜间模式图片对象蒙版)debian/control:构建依赖改为libdeepin-pdfium-dev (>= 2.0.0),运行时依赖由${shlibs:Depends}自动生成linglong.yaml:移除内嵌 pdfium 专属构建依赖(libchardet-dev/liblcms2-dev/libopenjp2-7-dev/libicu-dev),depends增加libdeepin-pdfium随包分发,玲珑 runtime check(ldd check)通过Remove bundled 3rdparty/deepin-pdfium sources and link the system libdeepin-pdfium (>= 2.0) via pkg-config in cmake/qmake builds.
测试建议 / Test
readelf -d确认二进制DT_NEEDED为libdeepin-pdfium.so.*,批量打印与 html 转 pdf 功能正常PMS: TASK-398545