Replies: 4 comments 6 replies
-
应该是跨域拦截了,如果你的pdf.js 是从alist-org.github.io/pdf.js clone 的,可以把代码中“alist-org.github.io”替换成你自己的域名 |
Beta Was this translation helpful? Give feedback.
3 replies
-
由于我没有https,看了一些issue,看上去自建一个pdf.js可以使用,但我不太会设置如何使用自建的pdf.js,想请教一下。 我看了这里的iframe,应该是在这里设置pdf类型的预览设置吧?但我是个新手,没太看懂这个配置应该在哪里修改,也有可能我忽略了一些文档,还烦请指出。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我用的是作者的预构建的版本,不是clone的,直接就是没有src这个文件夹的. 我下载下来只有web和build.
MuGu ***@***.***> 于2023年10月31日周二 08:46写道:
… [image: image]
<https://user-images.githubusercontent.com/8317478/279226601-c30d5872-a328-4c7f-82f7-668713859ffb.png>
资源加载不全,你的部署有问题?
—
Reply to this email directly, view it on GitHub
<#5432 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZZIRQIBK5C3JGT32OEIF7TYCBC4ZAVCNFSM6AAAAAA6QW7HX6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMRZGY4TI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
用alist版的pdf js可以使用了
MuGu ***@***.***> 于2023年10月31日周二 14:11写道:
… git clone -b main https://github.com/alist-org/pdf.js.git
用这个,然后把"alist-org.github.io"替换成你自己的域名,测试过是可以的。
—
Reply to this email directly, view it on GitHub
<#5432 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZZIRQKXNPJIFZUS7RYGKODYCCI75AVCNFSM6AAAAAA6QW7HX6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMZRGI4TS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
如题, 由于访问alist官方的pdf服务困难,我在自己服务器上搭建了一个pdf.js供alist使用.


现在pdf.js显示不出文件,文件本身读取代码200,可以访问. 网站: https://pdf.zzqhmbb.eu.org/web/viewer.html
使用alist配合其他人的pdf.js可以正常加载,排除了alist问题.
alist 版本:v3.28 pdf.js版本: v3.11.174
pdf.js即使手动加载本地文件也不可以.
Beta Was this translation helpful? Give feedback.
All reactions