Skip to content

[ISSUE] PDF 方式预览 Office 文件后,再切换为图片预览,预览失败 #754

Open

Description

@halfpreschooler

Issue Type / 问题类型

Bug / 缺陷

kkFileView Version / kkFileView 版本

5.0.0

Deployment Mode / 部署方式

dev

Environment / 环境信息

  • dev

Steps to Reproduce / 复现步骤

  1. PDF 方式预览无缓存的 docx 文件
  2. 切换为到图片形式预览这个文件
  3. Office转换缓存异常,请联系管理员
  4. 未检查是否转换为图片过

Expected Result / 期望结果

预览成功

Actual Result / 实际结果

Office转换缓存异常,请联系管理员

Logs & Screenshots / 日志与截图

Office转换缓存异常,请联系管理员

Sample File / 样例文件(可选)

Image Image

Checklist / 提交前检查

  • I have searched existing issues and did not find a duplicate. / 我已搜索现有 issue,未发现重复问题
  • I can reproduce this issue on the stated version/environment. / 我可在上述版本与环境复现该问题
  • I have masked sensitive information in logs/screenshots. / 我已对日志与截图中的敏感信息做脱敏处理

Activity

  1. added
    status/needs-info
    on Apr 30, 2026
  2. github-actions commented on Apr 30, 2026

    @github-actions

    @Copilot 请自动分诊并直接给出可执行建议(无需人工先介入):

    • 先判断类型:Bug / Performance / Security / Question / Feature
    • 检查 Issue 信息是否完整(版本、部署方式、复现步骤、日志)
    • 若信息不完整:请直接按模板列出缺失项并引导补充
    • 若信息较完整:请给出下一步排查建议与最小复现建议
    • 若判断为已知问题或已修复:请给出对应版本/修复方向

    Issue #754
    标题:[ISSUE] PDF 方式预览 Office 文件后,再切换为图片预览,预览失败
    链接:#754


    补充说明 / Support Notice:

    • GitHub Issues 会持续跟进处理 / We will continue to follow up through GitHub Issues.
    • 如为线上紧急问题,可通过知识星球渠道加速处理 / For urgent production issues, you can use our Knowledge Planet channel for faster processing:
      https://wx.zsxq.com/group/48844125114258
  3. halfpreschooler commented on May 4, 2026

    @halfpreschooler
    Author
            List<String> cacheResult = fileHandlerService.loadPdf2jpgCache(outFilePath);
            if (forceUpdatedCache || CollectionUtils.isEmpty(cacheResult) || !ConfigConstants.isCacheEnabled()) {
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions