{"versions":{"0.2.0":{"name":"@file-viewer/ppt","version":"0.2.0","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","type":"module","main":"./index.mjs","module":"./index.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./LICENSE":"./LICENSE"},"sideEffects":false,"license":"SEE LICENSE IN LICENSE","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"homepage":"https://officejs-doc.pages.dev","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@file-viewer/ppt@0.2.0","_integrity":"sha512-vinU/MB7gecrqnLHoek1w5+bTPE4tWgHyDHIo1h3iwET0OAZr9NnqL8KlNRGlle95MAT/0sLi4yCQr+Acrpqww==","_resolved":"/Users/wangyu/WebProjects/office/pptjs/file-viewer-ppt-0.2.0.tgz","_from":"file:file-viewer-ppt-0.2.0.tgz","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-vinU/MB7gecrqnLHoek1w5+bTPE4tWgHyDHIo1h3iwET0OAZr9NnqL8KlNRGlle95MAT/0sLi4yCQr+Acrpqww==","shasum":"3ea7e9975097c935e4cff61b01d6bba4827c3f65","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.2.0.tgz","fileCount":8,"unpackedSize":18026791,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHckvSESNNGwX3vVor9X9shDx6Y+jmvdugrYxjnLqDzSAiBbwFwXNmifhRN8XqtiMS+pKbcFiCAYxoI5UO6SkiFzlg=="}],"size":14223062},"_npmUser":{"name":"anonymous","email":"wybaby168@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.2.0_1784246782670_0.4752438703466111"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-07-17T00:06:23.011Z","publish_time":1784246783011,"_source_registry_name":"default","contributors":[]},"0.3.0":{"name":"@file-viewer/ppt","version":"0.3.0","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","type":"module","main":"./index.mjs","module":"./index.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./ppt-font-cjk.otf":"./ppt-font-cjk.otf","./worker.mjs":"./worker.mjs","./LICENSE":"./LICENSE"},"sideEffects":false,"license":"SEE LICENSE IN LICENSE","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"homepage":"https://officejs-doc.pages.dev","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@file-viewer/ppt@0.3.0","_integrity":"sha512-fqw/90rNPT50MwRmXqoBd7mUWKnveor3fMRBR7YWkqSZ5ewt5vRvxwJs6YA/Xa0hrGcv/7l8D3gXF5jWwGepIw==","_resolved":"/Users/wangyu/WebProjects/office/pptjs/file-viewer-ppt-0.3.0.tgz","_from":"file:/Users/wangyu/WebProjects/office/pptjs/file-viewer-ppt-0.3.0.tgz","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-fqw/90rNPT50MwRmXqoBd7mUWKnveor3fMRBR7YWkqSZ5ewt5vRvxwJs6YA/Xa0hrGcv/7l8D3gXF5jWwGepIw==","shasum":"39153ab962bffae2dccf1e3cbb67ce1da613488e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.3.0.tgz","fileCount":11,"unpackedSize":18136080,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFbQKIxx97IflWBr2dDYE00idlQj6OzeVhLfmT9F7TuvAiEAwA8ZTZcMEgOu2BJqCRF4nYscZWhFTxj0DKurxMMs16Q="}],"size":14244085},"_npmUser":{"name":"anonymous","email":"wybaby168@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.3.0_1784255694703_0.5320901512341765"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-07-17T02:34:55.035Z","publish_time":1784255695035,"_source_registry_name":"default","contributors":[]},"0.3.1":{"name":"@file-viewer/ppt","version":"0.3.1","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","type":"module","main":"./index.mjs","module":"./index.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./ppt-font-cjk.otf":"./ppt-font-cjk.otf","./worker.mjs":"./worker.mjs","./LICENSE":"./LICENSE"},"sideEffects":false,"license":"SEE LICENSE IN LICENSE","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"homepage":"https://officejs-doc.pages.dev","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@file-viewer/ppt@0.3.1","_integrity":"sha512-FtC/D0f7TNjxPZCINQtxs21DlaLDvIIYgFhqd5hqw8F53HXf8H7YZYtaEIt8ul0ZOxaZlm3rgkJDgT1Z4VlpLw==","_resolved":"/Users/wangyu/WebProjects/office/pptjs/file-viewer-ppt-0.3.1.tgz","_from":"file:/Users/wangyu/WebProjects/office/pptjs/file-viewer-ppt-0.3.1.tgz","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-FtC/D0f7TNjxPZCINQtxs21DlaLDvIIYgFhqd5hqw8F53HXf8H7YZYtaEIt8ul0ZOxaZlm3rgkJDgT1Z4VlpLw==","shasum":"a6a6e37b754649689837d510d89bcf0804a08b5e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.3.1.tgz","fileCount":11,"unpackedSize":18132948,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICEn5bCqkmjXJTYP0NBus+aItYsFiTFuNI36wBrkuquGAiEA7naiNIeBT/9APJlWWqvsqO4afmGXYMbMELqMydj7Kpo="}],"size":14242977},"_npmUser":{"name":"anonymous","email":"wybaby168@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.3.1_1784263068916_0.8762095865603117"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-07-17T04:37:49.271Z","publish_time":1784263069271,"_source_registry_name":"default","contributors":[]},"0.3.2":{"name":"@file-viewer/ppt","version":"0.3.2","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","type":"module","main":"./index.mjs","module":"./index.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./ppt-font-cjk.otf":"./ppt-font-cjk.otf","./worker.mjs":"./worker.mjs","./LICENSE":"./LICENSE"},"sideEffects":false,"license":"SEE LICENSE IN LICENSE","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"homepage":"https://officejs-doc.pages.dev","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@file-viewer/ppt@0.3.2","_integrity":"sha512-5+CUEIhEGB9CItlA0RfN8ErvFxebtJqlUHZVrm87M8Be54oHI2PvlzuZhwD7l72hasUd52amdC7uX0+uKYoQvg==","_resolved":"/Users/wangyu/WebProjects/office/pptjs/file-viewer-ppt-0.3.2.tgz","_from":"file:file-viewer-ppt-0.3.2.tgz","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-5+CUEIhEGB9CItlA0RfN8ErvFxebtJqlUHZVrm87M8Be54oHI2PvlzuZhwD7l72hasUd52amdC7uX0+uKYoQvg==","shasum":"ecaf8f39940d70da0664d5f62055f26303898091","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.3.2.tgz","fileCount":11,"unpackedSize":18154901,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDF3ZRew2q2ZYyHiRvX1eMI8ijMmb3W4VzDPDSmtwofDgIgUzy4Ux7u69obA37WA3UplhxDcmRaAnTltJpPubXOJsg="}],"size":14248953},"_npmUser":{"name":"anonymous","email":"wybaby168@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.3.2_1784541364946_0.9294630985925678"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-07-20T09:56:05.244Z","publish_time":1784541365244,"_source_registry_name":"default","contributors":[]},"0.3.3":{"name":"@file-viewer/ppt","version":"0.3.3","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","type":"module","main":"./index.mjs","module":"./index.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./ppt-font-cjk.otf":"./ppt-font-cjk.otf","./worker.mjs":"./worker.mjs","./LICENSE":"./LICENSE"},"sideEffects":false,"license":"SEE LICENSE IN LICENSE","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"homepage":"https://officejs-doc.pages.dev","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@file-viewer/ppt@0.3.3","_integrity":"sha512-Px2OpBUWlp74Fyt6Vm+V8IU7+xOt1Zp9PWzWo7zUCdCr+I5YYCJ9v0Nt2kriYyrusbWm8E5ri+wNy6ZkR7v3qQ==","_resolved":"/Users/wangyu/WebProjects/office/pptjs/file-viewer-ppt-0.3.3.tgz","_from":"file:file-viewer-ppt-0.3.3.tgz","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-Px2OpBUWlp74Fyt6Vm+V8IU7+xOt1Zp9PWzWo7zUCdCr+I5YYCJ9v0Nt2kriYyrusbWm8E5ri+wNy6ZkR7v3qQ==","shasum":"b8df0bc841a2c6d897e335b7cec343c5f4b700ba","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.3.3.tgz","fileCount":11,"unpackedSize":18154759,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDmwwTy4RaDg2eHK1IRvmibmPy92gt1q/A95eNj4ZNmrQIgJVHDYjtftp5KxvMWOkaAVyt3qOKGZqA7IJ9lDhf9B/8="}],"size":14248855},"_npmUser":{"name":"anonymous","email":"wybaby168@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.3.3_1786443205232_0.7075364367513763"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-11T10:13:25.591Z","publish_time":1786443205591,"_source_registry_name":"default","contributors":[]},"0.3.4":{"name":"@file-viewer/ppt","version":"0.3.4","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","type":"module","main":"./index.mjs","module":"./index.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./ppt-font-cjk.otf":"./ppt-font-cjk.otf","./worker.mjs":"./worker.mjs","./LICENSE":"./LICENSE"},"sideEffects":false,"license":"SEE LICENSE IN LICENSE","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"homepage":"https://officejs-doc.pages.dev","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@file-viewer/ppt@0.3.4","_integrity":"sha512-9I0rCheWYlPO7peC4DjflCcBTJJxbGMkEvqIZfueG7Lgh/VLow/Ol1YqWSr3kuNHr4FBojQJOa+lqmfx3iJsSg==","_resolved":"/private/tmp/fv-pptjs-webpack/file-viewer-ppt-0.3.4.tgz","_from":"file:/private/tmp/fv-pptjs-webpack/file-viewer-ppt-0.3.4.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-9I0rCheWYlPO7peC4DjflCcBTJJxbGMkEvqIZfueG7Lgh/VLow/Ol1YqWSr3kuNHr4FBojQJOa+lqmfx3iJsSg==","shasum":"2336f894fd00c506b32dcb327e62532620dafdf6","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.3.4.tgz","fileCount":11,"unpackedSize":18154818,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDvQc3nH467oYXS+uVM6tUNfdsJU05kTKiR0RCx8gkC1gIgNaPIMXDM9j35W4dCJ2o++QpJh9H9HycdIRmSrDleoss="}],"size":14321830},"_npmUser":{"name":"anonymous","email":"wybaby168@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.3.4_1788795444751_0.9742503837036576"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-07T15:37:25.091Z","publish_time":1788795445091,"_source_registry_name":"default","contributors":[]},"0.3.5":{"_id":"@file-viewer/ppt@0.3.5","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"dist":{"shasum":"82bab97d573e4b3352161afc2ae0bda95735c0de","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.3.5.tgz","fileCount":11,"integrity":"sha512-iOXhf0H9lCUDeIABSitKOP6Zux25gMx84WlJoe4wTlG7plnt2E35ns8VqQ7/5dU5pN2NsHHXiaeYp72vs072fA==","signatures":[{"sig":"MEUCIEbApBKkRpZEpHvQpgFenL5KgQ4LRgUPUPE9xF+gzCt7AiEAj6PayRBCCJdPXbUyuNWq0TKK785yI8+zGqjCsOJxx20=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC7WIDGUWjommODJq+u4ak/asHeFCjSs1lNCvgwCTJW6gIgCldgWMEuY29m1y46taGWSkZu7WSLwsZuQG1mqqH79n0="}],"unpackedSize":18161664,"size":14252409},"main":"./index.mjs","name":"@file-viewer/ppt","type":"module","_from":"file:/Users/wangyu/Documents/Codex/2026-10-09/task/.release/integration-20261009/ppt/file-viewer-ppt-0.3.5.tgz","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./LICENSE":"./LICENSE","./worker.mjs":"./worker.mjs","./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./ppt-font-cjk.otf":"./ppt-font-cjk.otf"},"license":"SEE LICENSE IN LICENSE","version":"0.3.5","_npmUser":{"name":"anonymous","email":"wybaby168@gmail.com"},"homepage":"https://officejs-doc.pages.dev","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"_resolved":"/Users/wangyu/Documents/Codex/2026-10-09/task/.release/integration-20261009/ppt/file-viewer-ppt-0.3.5.tgz","_integrity":"sha512-iOXhf0H9lCUDeIABSitKOP6Zux25gMx84WlJoe4wTlG7plnt2E35ns8VqQ7/5dU5pN2NsHHXiaeYp72vs072fA==","_npmVersion":"11.19.1","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.8.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.3.5_1791613856503_0.8686802495905221"},"_cnpmcore_publish_time":"2026-10-10T06:30:56.780Z","publish_time":1791613856780,"_source_registry_name":"default","contributors":[]},"0.3.6":{"_id":"@file-viewer/ppt@0.3.6","bugs":{"url":"https://github.com/flyfish-dev/office-preview-js/issues"},"dist":{"shasum":"c2f7c8655e440a95700b5b42b17fa3fb296ddc82","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@file-viewer/ppt/-/ppt-0.3.6.tgz","fileCount":11,"integrity":"sha512-nl3Cwu7uIPVi4mHfD8aOzsbjIPJCqUSaSJxig/2V7T+qsZbGX/EZT1Txgmae8oPjsA4N3fychETyMXk5L9xCDw==","signatures":[{"sig":"MEUCIGxM3mXIVWvIvXaNL+qz2eiB35DtFEDG9uJPKXYRS8XBAiEApOZRuTk/qhnGRYopQWb06ajWMeRkIUFkokICuOtqKV0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICy5aK7/n+r4Jl1mo/7nlkT51RXkG0Fe9giNLPc5OVbLAiBGXnpCkB1I3nQfKjXqpvYZfCrCeGOfw2QkBMEPpCKpFw=="}],"unpackedSize":18160297,"size":14324993},"main":"./index.mjs","name":"@file-viewer/ppt","type":"module","_from":"file:/home/runner/work/pptjs/pptjs/.build/oidc-packs/0.3.6/file-viewer-ppt-0.3.6.tgz","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","default":"./index.mjs"},"./LICENSE":"./LICENSE","./worker.mjs":"./worker.mjs","./manifest.json":"./manifest.json","./ppt-native.wasm":"./ppt-native.wasm","./ppt-font-cjk.otf":"./ppt-font-cjk.otf"},"license":"SEE LICENSE IN LICENSE","version":"0.3.6","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"ee09904b-1764-41bc-a71b-48d73104b90f"}},"homepage":"https://officejs-doc.pages.dev","keywords":["ppt","powerpoint","viewer","preview","canvas","wasm","document"],"_resolved":"/home/runner/work/pptjs/pptjs/.build/oidc-packs/0.3.6/file-viewer-ppt-0.3.6.tgz","_integrity":"sha512-nl3Cwu7uIPVi4mHfD8aOzsbjIPJCqUSaSJxig/2V7T+qsZbGX/EZT1Txgmae8oPjsA4N3fychETyMXk5L9xCDw==","repository":{"url":"git+https://github.com/flyfish-dev/pptjs.git","type":"git"},"_npmVersion":"11.19.1","description":"Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.","directories":{},"maintainers":[{"name":"anonymous","email":"wybaby168@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.21.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ppt_0.3.6_1791693171606_0.8219757581218936"},"_cnpmcore_publish_time":"2026-10-11T04:32:52.176Z","publish_time":1791693172176,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.3.6"},"name":"@file-viewer/ppt","time":{"created":"2026-07-17T00:06:40.068Z","modified":"2026-10-11T04:33:05.671Z","0.2.0":"2026-07-17T00:06:23.011Z","0.3.0":"2026-07-17T02:34:55.035Z","0.3.1":"2026-07-17T04:37:49.271Z","0.3.2":"2026-07-20T09:56:05.244Z","0.3.3":"2026-08-11T10:13:25.591Z","0.3.4":"2026-09-07T15:37:25.091Z","0.3.5":"2026-10-10T06:30:56.780Z","0.3.6":"2026-10-11T04:32:52.176Z"},"readme":"# @file-viewer/ppt\n\n> Professional, browser-native preview for PowerPoint 97–2003 (`.ppt`).\n\n[![npm version](https://img.shields.io/npm/v/%40file-viewer%2Fppt.svg)](https://www.npmjs.com/package/@file-viewer/ppt)\n[![format](https://img.shields.io/badge/format-PowerPoint%2097--2003-c43e1c.svg)](#format-scope)\n[![license](https://img.shields.io/badge/license-proprietary-334155.svg)](./LICENSE)\n\n[English](#english) · [简体中文](#简体中文)\n\n## English\n\n### A professional viewer for traditional PowerPoint files\n\n`@file-viewer/ppt` is Flyfish's independently developed preview engine for the\nPowerPoint 97–2003 binary (`.ppt`) format. It reconstructs slides directly in a\nmodern browser without Microsoft Office, LibreOffice, browser plug-ins, or a\nserver-side document conversion service.\n\nThe product is designed for document platforms, archives, knowledge systems,\nintranets, SaaS applications, and web products that still need dependable\naccess to traditional PowerPoint files. Its viewport-first runtime is equally\nsuitable for ordinary presentations and very large decks.\n\n### Product highlights\n\n- **Native `.ppt` understanding** — Reads the classic PowerPoint compound-file,\n  persist-record, text, drawing, and picture structures directly.\n- **Professional slide reconstruction** — Handles slide size, masters,\n  backgrounds, color schemes, text formatting, adjustable OfficeArt shapes,\n  fills, gradients, grouped objects, pictures, transforms, layer order, and a\n  compatible subset of traditional 3-D effects.\n- **Responsive worker pipeline** — Uses a module Worker, WebAssembly, and\n  OffscreenCanvas by default in capable browsers, keeping document parsing and\n  slide rasterization away from the main UI thread.\n- **Large-deck virtualization** — Keeps only the viewport and an overscan window\n  actively rendered. Hidden Canvas backing stores are released after a short\n  delay instead of accumulating for the entire presentation.\n- **Bounded frame cache** — Optionally stores only final, native-watermarked PNG\n  frames in an IndexedDB LRU. It has explicit byte, entry, and per-frame limits;\n  slide frames are never stored in `localStorage`.\n- **Independent CJK font asset** — Loads the CJK fallback font as a separate,\n  integrity-verified resource that can use a long-lived browser or CDN cache.\n- **Local document processing** — The public runtime does not require documents\n  to be uploaded to a conversion service.\n- **Straightforward integration** — ESM, TypeScript declarations, no JavaScript\n  runtime dependencies, and APIs for both complete-viewer mounting and\n  individual-slide rendering.\n\n### Format scope\n\nThis package previews PowerPoint 97–2003 binary `.ppt` files. For XML-based\n`.pptx` files, use a dedicated PPTX viewer.\n\n### Installation\n\n```bash\nnpm install @file-viewer/ppt\n```\n\n### Quick start: virtualized full presentation\n\n```js\nimport { createPptViewer } from '@file-viewer/ppt';\n\nconst viewer = await createPptViewer({\n  worker: 'auto',\n  cache: {\n    enabled: true,\n    maxBytes: 256 * 1024 * 1024,\n    maxEntries: 200,\n    maxEntryBytes: 32 * 1024 * 1024\n  }\n});\n\nconst response = await fetch('/documents/presentation.ppt');\nconst mounted = await viewer.mount(\n  '#ppt-viewer',\n  await response.arrayBuffer(),\n  {\n    scale: 1,\n    pixelRatio: window.devicePixelRatio,\n    virtualize: true,\n    rootMargin: '150% 0px',\n    releaseDelayMs: 1200\n  }\n);\n\nconsole.log(viewer.mode); // \"worker\" or \"direct\"\nconsole.log(await mounted.cacheStats());\n\n// When this mounted preview is no longer needed:\nawait mounted.close();\nawait viewer.close();\n```\n\n`worker: 'auto'` is the default. It selects the module Worker path when Worker,\nOffscreenCanvas, and URL-based assets are available, and otherwise uses the\ncompatible direct renderer. Set `worker: true` when worker rendering is a hard\ndeployment requirement, or `worker: false` for explicit direct mode.\n\n`virtualize: true` is also the default. The viewer creates stable page shells,\nrenders pages near the viewport, and releases hidden raster backing stores.\nIn worker mode, when IndexedDB is available, revisiting a released page can\nrestore its final watermarked PNG before a native rerender is needed. Cache\nfailure or browser quota eviction never prevents the document from rendering;\ndirect mode simply rerenders a released page.\n\nFor very large files, set `transferInputOwnership: true` when constructing the\nviewer to transfer a full input `ArrayBuffer` without an additional main-thread\ncopy. The supplied buffer is detached, so enable this only when the application\nwill not read it again.\n\n### Render one slide\n\n```js\nimport { createPptViewer } from '@file-viewer/ppt';\n\nconst viewer = await createPptViewer();\nconst response = await fetch('/documents/presentation.ppt');\nconst pptDocument = await viewer.open(await response.arrayBuffer());\n\nconst canvas = document.querySelector('canvas');\nconst result = await pptDocument.renderSlide(0, canvas, { scale: 1.25 });\n\nconsole.log(pptDocument.slideCount, pptDocument.width, pptDocument.height);\nconsole.log(result.source); // \"native\" or \"indexeddb\" in worker mode\n\nawait pptDocument.releaseSlide(0);\nconsole.log(await pptDocument.cacheStats());\nawait pptDocument.close();\nawait viewer.close();\n```\n\nThe API is asynchronous in both worker and direct modes, so application code\ndoes not need separate lifecycle branches. Close a mounted viewer, document,\nor runtime when it is no longer needed so associated native and graphics\nresources can be released promptly.\n\n### Core API\n\n| API | Purpose |\n| --- | --- |\n| `createPptViewer(options)` / `loadPptViewer(options)` | Loads and verifies the runtime assets; returns worker or direct mode |\n| `viewer.mount(target, input, options)` | Mounts a complete, virtualized Canvas presentation |\n| `viewer.open(input)` | Asynchronously opens a `.ppt` and returns an opaque document handle |\n| `document.renderSlide(index, canvas, options)` | Asynchronously renders or restores one final slide frame |\n| `document.releaseSlide(index)` | Releases a slide's active raster resources |\n| `document.cacheStats()` / `mounted.cacheStats()` / `viewer.cacheStats()` | Returns current bounded-cache counters |\n| `document.close()` / `mounted.close()` / `viewer.close()` | Releases resources at the corresponding lifecycle boundary |\n| `getPptPackageManifest()` | Returns package, asset, edition, and capability metadata |\n\nAll public APIs include TypeScript declarations. Parsed document models,\nrecords, HTML, SVG, drawing command streams, and unwatermarked frames are not\npart of the public API.\n\n### Virtualization and worker frame-cache options\n\nThe relevant defaults are:\n\n| Option | Default | Meaning |\n| --- | --- | --- |\n| `virtualize` | `true` | Render the viewport and overscan window instead of retaining every page |\n| `rootMargin` | `150% 0px` | IntersectionObserver overscan around the scroll viewport |\n| `releaseDelayMs` | `1200` | Grace period before a hidden page is persisted and released |\n| `cache.enabled` | `true` | Use IndexedDB when available |\n| `cache.maxBytes` | `256 MiB` | Total final-frame cache budget |\n| `cache.maxEntries` | `200` | Maximum cached slide frames |\n| `cache.maxEntryBytes` | `32 MiB` | Maximum encoded PNG size for one frame |\n\nThe IndexedDB cache operates in worker mode and is a performance layer, not\ndocument storage: it contains only final\nwatermarked PNG frames, does not retain source `.ppt` bytes, and degrades safely\nwhen private browsing, storage policy, or quota makes IndexedDB unavailable.\nSynchronous string-based `localStorage` is intentionally not used for frame\ndata.\n\n### Runtime assets\n\nStatic deployments must preserve the following package assets:\n\n```text\nindex.mjs\nworker.mjs\nframe-cache.mjs\nppt-native.wasm\nppt-font-cjk.otf\nmanifest.json\n```\n\nThe default locations are resolved relative to `index.mjs`. If a bundler or CDN\nmoves assets, configure them explicitly:\n\n```js\nconst viewer = await createPptViewer({\n  workerUrl: new URL('/vendor/file-viewer/ppt/0.3.6/worker.mjs', location.origin),\n  wasmUrl: new URL('/vendor/file-viewer/ppt/0.3.6/ppt-native.wasm', location.origin),\n  fontUrl: new URL('/vendor/file-viewer/ppt/0.3.6/ppt-font-cjk.otf', location.origin)\n});\n```\n\nFor the widest browser compatibility, serve `worker.mjs` and\n`frame-cache.mjs` from the application origin. A separate asset origin for the\nWASM or font must provide CORS permission and be allowed by `connect-src`.\n\n`ppt-font-cjk.otf` is a renderer resource, not a CSS `@font-face` dependency.\nIt is fetched and verified independently from the smaller WASM engine, so a\nbrowser or CDN can reuse the font response across presentations and application\nvisits.\n\n### MIME, cache, and CSP configuration\n\nUse these response types:\n\n| Extension | `Content-Type` |\n| --- | --- |\n| `.mjs` | `text/javascript; charset=utf-8` |\n| `.wasm` | `application/wasm` |\n| `.otf` | `font/otf` |\n| `.ppt` | `application/vnd.ms-powerpoint` |\n\nPlace assets under a versioned or content-addressed path before serving them\nwith a long immutable cache lifetime:\n\n```http\nCache-Control: public, max-age=31536000, immutable\n```\n\nDo not apply `immutable` to an unversioned path that may later serve different\nbytes. The runtime verifies the declared size and SHA-256 of both\n`ppt-native.wasm` and `ppt-font-cjk.otf` before use.\n\nA same-origin baseline CSP is:\n\n```http\nContent-Security-Policy:\n  default-src 'self';\n  script-src 'self' 'wasm-unsafe-eval';\n  worker-src 'self';\n  connect-src 'self';\n  font-src 'self';\n  img-src 'self' blob:;\n  style-src 'self' 'unsafe-inline';\n```\n\nExtend `connect-src` for approved WASM/font CDNs. Some browsers require\n`'wasm-unsafe-eval'` to compile WebAssembly. The default worker architecture\ndoes not require `SharedArrayBuffer`, cross-origin isolation, or a blob Worker.\n\n### Browser compatibility\n\n- A current browser with ES modules, WebAssembly, `fetch`, and\n  Canvas 2D is required.\n- WASM and font integrity checks use WebCrypto when available. On ordinary\n  HTTP origins without `crypto.subtle`, the same checked SHA-256 implementation\n  verifies the bytes before use; a mismatch rejects the asset in either mode.\n- Worker mode additionally requires module Workers and OffscreenCanvas canvas\n  transfer. `worker: 'auto'` falls back to direct mode when these capabilities\n  are unavailable.\n- Virtual scrolling uses IntersectionObserver. When it is unavailable, the\n  viewer remains functional and renders through its compatibility path.\n- IndexedDB is optional. A disabled or unavailable cache affects revisit speed,\n  not rendering correctness.\n\nTraditional PowerPoint files may contain macros, ActiveX controls, OLE objects,\nlinked media, or host-specific behaviors that browsers cannot execute. These\nfeatures are treated as non-executable preview content. Font substitution may\nbe used when a document font is not available to the viewer.\n\n### Editions and licensing\n\n| Edition | Permitted use | Watermark | Origin |\n| --- | --- | --- | --- |\n| Public npm edition | Any lawful personal, organizational, commercial, production, SaaS, hosted, or customer-facing use | Mandatory `Flyfish Viewer` on every slide | Any normal HTTP/HTTPS origin |\n| Watermark-free edition | Uses covered by a separate written authorization | Watermark-free build according to the purchased agreement | According to the commercial agreement |\n\nThe unmodified public runtime can be bundled, self-hosted, and redistributed as\nan integrated dependency, including File Viewer Full, CDN/IIFE, Docker, offline,\ncopy-assets, and GitHub Release distributions. A paid authorization is required\nonly to remove, replace, hide, or weaken the required watermark, or to receive a\nseparate watermark-free build or source delivery.\n\nThe public npm edition is proprietary software and is **not licensed under\nApache-2.0**. Removing, hiding, covering, replacing, or bypassing the required\nwatermark is prohibited. See [LICENSE](./LICENSE) for the binding terms.\n\nPurchase watermark-free commercial authorization from the\n[Flyfish Shop](https://dev.flyfish.group/shop).\n\n### Product links\n\n- [Documentation](https://officejs-doc.pages.dev)\n- [Commercial licensing](https://dev.flyfish.group/shop)\n- [Issue tracker](https://github.com/flyfish-dev/office-preview-js/issues)\n\n## 简体中文\n\n### 专业传统 PPT 浏览器预览引擎\n\n`@file-viewer/ppt` 是 Flyfish 纯自研的 PowerPoint 97–2003 二进制 `.ppt`\n专业预览引擎。它直接理解传统 PPT 文件结构，并在现代浏览器中重建幻灯片，无需\n安装 Microsoft Office、LibreOffice、浏览器插件，也不依赖服务端格式转换。\n\n产品适用于文件预览平台、档案与知识管理系统、企业内网、SaaS 产品，以及仍需\n稳定支持传统 PowerPoint 文档的 Web 应用。面向视口的运行架构既适合普通文档，\n也适合包含大量页面的演示文稿。\n\n### 产品特点\n\n- **原生理解 `.ppt`**：直接读取复合文件、持久化记录、文字、绘图和图片结构。\n- **专业幻灯片还原**：支持页面尺寸、母版、背景、配色、文字格式、可调节\n  OfficeArt 形状、填充、渐变、组合对象、图片、旋转变换、图层顺序，以及兼容的\n  传统 3D 效果子集。\n- **响应式 Worker 链路**：浏览器能力允许时，默认通过 Module Worker、\n  WebAssembly 与 OffscreenCanvas 完成解析和光栅化，避免占用主 UI 线程。\n- **大文档虚拟滚动**：仅主动渲染视口和预加载区页面；不可见页面延迟释放 Canvas\n  图形缓冲，不随总页数持续堆积。\n- **有界页面缓存**：可将最终、带原生强制水印的 PNG 页面保存到 IndexedDB LRU，\n  并设置总容量、条目数和单页容量上限；页面数据明确不使用 `localStorage`。\n- **独立 CJK 字体资源**：CJK 回退字体与 WASM 引擎分开加载和完整性校验，可使用\n  浏览器或 CDN 长期缓存，减少重复下载和引擎体积。\n- **文档本地处理**：公网运行时不要求将文档上传到第三方转换服务。\n- **易于集成**：提供 ESM、TypeScript 类型且无 JavaScript 运行时依赖，既可挂载\n  完整预览器，也可按需渲染指定页。\n\n### 格式范围\n\n本包专门预览 PowerPoint 97–2003 二进制 `.ppt` 文件。XML 格式的 `.pptx`\n应使用专用 PPTX 预览器。\n\n### 安装\n\n```bash\nnpm install @file-viewer/ppt\n```\n\n### 快速开始：虚拟化完整预览\n\n```js\nimport { createPptViewer } from '@file-viewer/ppt';\n\nconst viewer = await createPptViewer({\n  worker: 'auto',\n  cache: {\n    enabled: true,\n    maxBytes: 256 * 1024 * 1024,\n    maxEntries: 200,\n    maxEntryBytes: 32 * 1024 * 1024\n  }\n});\n\nconst response = await fetch('/documents/presentation.ppt');\nconst mounted = await viewer.mount(\n  '#ppt-viewer',\n  await response.arrayBuffer(),\n  {\n    scale: 1,\n    pixelRatio: window.devicePixelRatio,\n    virtualize: true,\n    rootMargin: '150% 0px',\n    releaseDelayMs: 1200\n  }\n);\n\nconsole.log(viewer.mode); // \"worker\" 或 \"direct\"\nconsole.log(await mounted.cacheStats());\n\n// 预览不再使用时：\nawait mounted.close();\nawait viewer.close();\n```\n\n`worker: 'auto'` 和 `virtualize: true` 均为默认值。支持 Module Worker 与\nOffscreenCanvas 的浏览器会把解析与渲染放到 Worker；否则自动使用兼容的直接\n渲染模式。完整预览会创建稳定的页面容器，仅渲染视口附近内容，并在页面离开\n预加载区后释放其光栅资源。\n\nIndexedDB 可用时，再次浏览已释放页面可优先恢复最终水印 PNG。浏览器禁用\nIndexedDB、隐私模式限制存储或缓存被配额机制清理时，不影响原生重新渲染。该\nIndexedDB 缓存用于 Worker 模式；直接模式会在页面再次进入视口时重新渲染。\n\n超大文件可在创建 viewer 时设置 `transferInputOwnership: true`，把完整\n`ArrayBuffer` 的所有权直接转移给 Worker，避免主线程额外复制。该缓冲区随后会\n被 detach，仅应在业务不再读取原缓冲区时启用。\n\n### 单页渲染与异步生命周期\n\n```js\nconst pptDocument = await viewer.open(await response.arrayBuffer());\nconst canvas = document.querySelector('canvas');\n\nconst result = await pptDocument.renderSlide(0, canvas, { scale: 1.25 });\nconsole.log(result.source); // Worker 模式为 \"native\" 或 \"indexeddb\"\n\nawait pptDocument.releaseSlide(0);\nconsole.log(await pptDocument.cacheStats());\nawait pptDocument.close();\nawait viewer.close();\n```\n\nWorker 与直接模式采用相同的异步 API。文档、完整挂载预览或运行时不再使用时，\n请 `await close()`，以便及时释放原生内存、Worker 和图形资源。\n\n### 核心 API\n\n| API | 用途 |\n| --- | --- |\n| `createPptViewer(options)` / `loadPptViewer(options)` | 加载并校验运行资源，返回 Worker 或直接模式 |\n| `viewer.mount(target, input, options)` | 挂载完整、支持虚拟滚动的 Canvas 预览 |\n| `viewer.open(input)` | 异步打开 `.ppt` 并返回不透明文档句柄 |\n| `document.renderSlide(index, canvas, options)` | 异步渲染或恢复指定页最终画面 |\n| `document.releaseSlide(index)` | 释放指定页当前光栅资源 |\n| `cacheStats()` | 在文档、挂载对象或运行时级别读取缓存统计 |\n| `close()` | 在对应生命周期边界释放资源 |\n| `getPptPackageManifest()` | 返回包、资源、版本和能力信息 |\n\n所有公开 API 均提供 TypeScript 类型。解析后的文档模型、记录、HTML、SVG、\n绘图指令流和无水印画面均不属于公开 API。\n\n### 虚拟滚动与页面缓存\n\n默认仅保留视口及 `150% 0px` 预加载区；页面离开该区域 1200ms 后会被缓存并\n释放。IndexedDB LRU 默认总容量上限为 256MiB、最多 200 页、单页编码 PNG\n最多 32MiB，均可通过 `cache` 选项调整。\n\nIndexedDB 缓存用于 Worker 模式，并且只是性能加速层；它只保存最终水印 PNG，\n不保存源 `.ppt` 文件或中间文档\n数据；不可用或被浏览器清理时会安全退化为重新渲染。同步、字符串化且容量有限的\n`localStorage` 不用于页面缓存。\n\n### 静态资源与部署\n\n静态部署需完整保留以下资源：\n\n```text\nindex.mjs\nworker.mjs\nframe-cache.mjs\nppt-native.wasm\nppt-font-cjk.otf\nmanifest.json\n```\n\n默认地址相对 `index.mjs` 解析。使用打包工具或 CDN 改变目录时，请通过\n`workerUrl`、`wasmUrl`、`fontUrl` 指定实际地址。为获得最广泛的浏览器兼容性，\n建议 `worker.mjs` 与 `frame-cache.mjs` 保持同源；WASM 或字体使用独立 CDN\n时，需要正确配置 CORS 和 `connect-src`。\n\n推荐 MIME：`.mjs` 使用 `text/javascript; charset=utf-8`，`.wasm` 使用\n`application/wasm`，`.otf` 使用 `font/otf`，`.ppt` 使用\n`application/vnd.ms-powerpoint`。\n\n将资源发布在版本化或内容寻址目录（如 `/vendor/file-viewer/ppt/0.3.6/`）后，\n可配置：\n\n```http\nCache-Control: public, max-age=31536000, immutable\n```\n\n不要为可能替换内容的非版本化地址设置 `immutable`。`ppt-font-cjk.otf` 是渲染器\n资源而不是 CSS `@font-face` 字体；它会独立加载和校验，因此可在不同 PPT 文档及\n多次访问之间复用浏览器/CDN 缓存。\n\n同源部署的基础 CSP 需要允许包模块、Module Worker、资源请求和 WebAssembly；\n部分浏览器要求在 `script-src` 中加入 `'wasm-unsafe-eval'`。若字体或 WASM 使用\n独立 CDN，还需将该域名加入 `connect-src`。默认 Worker 架构不要求\n`SharedArrayBuffer`、跨域隔离或 Blob Worker。\n\n### 浏览器兼容性\n\n- 基础要求：ES Modules、WebAssembly、`fetch` 和 Canvas 2D。\n- WASM 与字体完整性检查优先使用 WebCrypto；普通 HTTP 环境没有\n  `crypto.subtle` 时，使用已测试的 SHA-256 实现核验字节。两种模式均拒绝\n  哈希不一致的资源。\n- Worker 模式还需要 Module Worker 与 OffscreenCanvas Canvas 转移能力；\n  `worker: 'auto'` 会在不支持时回退到直接模式。\n- 虚拟滚动使用 IntersectionObserver；不可用时预览器仍会通过兼容路径工作。\n- IndexedDB 是可选加速能力，不可用只影响页面再次访问速度，不影响渲染正确性。\n\n传统 PPT 可能包含宏、ActiveX、OLE、链接媒体或依赖桌面宿主的行为，浏览器无法\n执行这些能力；预览器会把它们作为不可执行内容处理。原始字体不可用时可能使用\n兼容字体替代。\n\n### 版本与授权\n\n| 版本 | 允许用途 | 水印 | Origin |\n| --- | --- | --- | --- |\n| 公网 npm 版 | 任何合法的个人、组织、商业、生产、SaaS、内网或客户项目用途 | 每页强制显示 `Flyfish Viewer` | 任意正常 HTTP/HTTPS origin |\n| 无水印版 | 书面商业授权覆盖的用途 | 按协议提供无水印构建 | 按商业协议执行 |\n\n未修改的公网运行时可以作为应用依赖打包、自托管和再分发，包括 File Viewer Full、\nCDN/IIFE、Docker、离线包、copy-assets 和 GitHub Release。只有移除、替换、隐藏或\n弱化强制水印，或取得单独的无水印构建/源码交付时，才需要书面商业授权。\n\n公网 npm 版是专有软件，**不适用 Apache-2.0**。禁止删除、隐藏、遮挡、替换或\n绕过强制水印。具有法律约束力的完整条款见 [LICENSE](./LICENSE)。\n\n无水印商业授权请前往 [Flyfish 商店](https://dev.flyfish.group/shop)购买。\n\n### 产品链接\n\n- [产品文档](https://officejs-doc.pages.dev)\n- [无水印商业授权](https://dev.flyfish.group/shop)\n- [问题反馈](https://github.com/flyfish-dev/office-preview-js/issues)","users":{}}