feat: enhance PDF comparison with new change types and zoom functionality

- Added support for 'moved' and 'style-changed' change types in PDF comparison.
- Implemented category filters for changes, allowing users to filter by text, images, headers, annotations, formatting, and background.
- Introduced zoom functionality with buttons for zooming in, out, and resetting to default.
- Updated UI to reflect new change types and categories, including visual indicators for moved and style-changed items.
- Enhanced summary display to include counts for moved and style-changed changes.
- Refactored rendering logic to accommodate zoom levels and improve performance.
- Added tests for new change detection features and category assignments.
This commit is contained in:
alam00000
2026-03-10 13:47:46 +05:30
parent 89d7cd8e3d
commit 5232102ac0
31 changed files with 2503 additions and 183 deletions

View File

@@ -292,7 +292,47 @@
},
"comparePdfs": {
"name": "比较 PDF",
"subtitle": "并排比较两个 PDF。"
"subtitle": "并排比较两个 PDF。",
"firstPdf": "第一个 PDF",
"secondPdf": "第二个 PDF",
"clickOrDrop": "点击或拖放",
"page": "页面",
"overlay": "叠加",
"sideBySide": "并排",
"flicker": "闪烁",
"syncScroll": "同步滚动",
"export": "导出",
"exportAsPdf": "导出为 PDF",
"splitView": "分屏视图",
"alternating": "交替",
"leftDocument": "左侧文档",
"rightDocument": "右侧文档",
"original": "原始",
"modified": "修改后",
"searchChanges": "搜索更改...",
"deleted": "已删除",
"added": "已添加",
"prevPage": "上一页",
"nextPage": "下一页",
"prevChange": "上一处更改",
"nextChange": "下一处更改",
"uploadTwoPdfs": "上传两个 PDF 以查看差异。",
"noDifferences": "此页面未检测到差异。",
"noMatchingChanges": "没有与当前筛选条件匹配的更改。",
"pageNotExist": "此 PDF 中不存在第 {{page}} 页。",
"noPairedPage": "此侧没有配对页面。",
"buildingModel": "正在构建页面配对模型...",
"indexingPdf": "正在索引 PDF {{num}},第 {{page}} / {{total}} 页...",
"loadingComparison": "正在加载比较 {{current}} / {{total}}...",
"runningOcr": "正在对第 {{page}} 页运行 OCR...",
"preparingExport": "正在准备 PDF 导出...",
"renderingPage": "正在渲染第 {{current}} / {{total}} 页...",
"exportError": "导出错误",
"exportFailed": "无法导出比较 PDF。",
"loadingFile": "正在加载 {{name}}...",
"invalidFile": "无效文件",
"invalidFileMsg": "请选择有效的 PDF 文件。",
"loadError": "无法加载 PDF。文件可能已损坏或受密码保护。"
},
"posterizePdf": {
"name": "海报化 PDF",