{"id":41646180,"url":"https://github.com/fxboy/fileview-sboot","last_synced_at":"2026-01-24T15:31:01.461Z","repository":{"id":57733269,"uuid":"486536697","full_name":"fxboy/fileview-sboot","owner":"fxboy","description":"fileview-sbootPreview the file online or download the file. Preview: PDF / word (PDF) / GIF / jpeg / JPG / PNG / BMP. Other types will trigger the download.","archived":false,"fork":false,"pushed_at":"2022-05-08T09:27:39.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T16:51:03.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fxboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-28T09:52:54.000Z","updated_at":"2022-04-28T09:54:57.000Z","dependencies_parsed_at":"2022-09-26T22:30:41.883Z","dependency_job_id":null,"html_url":"https://github.com/fxboy/fileview-sboot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fxboy/fileview-sboot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffileview-sboot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffileview-sboot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffileview-sboot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffileview-sboot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fxboy","download_url":"https://codeload.github.com/fxboy/fileview-sboot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffileview-sboot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-24T15:31:00.981Z","updated_at":"2026-01-24T15:31:01.449Z","avatar_url":"https://github.com/fxboy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FILEVIEW-SPRINGBOOT(WEBOYS-FILEVIEW)\n\n做一款即插即用的文件在线预览及下载工具\n\n现已支持 pdf，doc，docx，text\n\n\u003e 后期将会支持文件夹、文件、图片、视频、音频、压缩包、PDF、WORD、EXCEL、PPT、TXT、HTML、Markdown等格式。\n\n### 配置文件\n```yml\nfileview:\n  office:\n    home: A:\\\\Program Files (x86)\\\\OpenOffice 4\\\\\n    host: 127.0.0.1\n    port: 8100\n  root:\n    dir: D:\\\\filewiewtest\\\\\n    enableImgTps: pdf|default,doc,docx\n```\n### 预览模板\n\u003e 预览模板使用了 freemarker 模板引擎，在dir配置的文件夹下的theme文件夹，必须放置 default.ftl (后缀必须为ftl,虽然可以换成其他后缀，为了感谢与突出使用的模板引擎，所以代码内写死了ftl)\n\nresource/theme下有个简单的default.ftl，在运行项目后，需手动复制到 theme文件夹下，或重新编写一个，但是必须要有一个名为 default.ftl\n\n### 更新日志\n[2022.05.01] weboys-fileview 1.0.5\n\n1.pdf/doc/docx图片方式预览加入主题（暂时固定，后期可配置与自定义）\n\n2.加入返回内容处理器，在返回页面前，可对内容进行自定义操作（暂时固定，后期自定义）\n\n3.转换时，如果相同文件内容已经转换过，将直接使用已转换的文件，而非重新创建\n\n4.增加使用图片预览的主题\n\n5.修复配置文件未配置，启动报错\n\n[2022.05.08] weboys-fileview 1.0.6\n\n1.支持 一些文本类型的文件预览，例如：txt,java,sql......\n\n2.新增预览模式主题，当前仅支持 pdf,doc,docx\n\n3.修复亿点点的BUG\n\n\n### 即将加入\n1. 自定义格式预览实现类，优先级高于依赖中的预览显示类\n2. 可配置预览主题（VIEW IMAGE模式），可与文件格式进行绑定 (完成一半)\n3. 可自定义返回内容处理器，可与文件格式进行绑定\n\n### 支持\n1. 预览word，ppt，excel等不同预览类型的office文件，基于OpenOffice\n2. 转换依赖： jodconverter-local，com-sun-pdfview\n3. MD5文件校验功能核心 基于 Apache Commons Codec\n4. 主题模板引擎 基于 freemarker\n### 声明\n**代码中可能含有Github Copilot生成的代码，如果您认为该代码违反了您的版权，请告知我们，我们将在第一时间删除。**\n\n联系方式：fanxingitn@outlook.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxboy%2Ffileview-sboot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffxboy%2Ffileview-sboot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxboy%2Ffileview-sboot/lists"}