Code Monkey home page Code Monkey logo

Comments (17)

qhy90223 avatar qhy90223 commented on July 30, 2024

您好,使用umi2.0环境,安装react-read-pdf依赖后,无法引入组件,显示没有MobilePDFReader和 PDFReader

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

您好,使用umi2.0环境,安装react-read-pdf依赖后,无法引入组件,显示没有MobilePDFReader和 PDFReader

请更新到最新2.0.7哦 ,npm i -s [email protected]

from blog.

lifbliu avatar lifbliu commented on July 30, 2024

我们现在是低版本react(15.4.2),请问要安装的react-read-pdf依赖的版本是多少?

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

我们现在是低版本react(15.4.2),请问要安装的react-read-pdf依赖的版本是多少?

不好意思。。。不支持16.0以下。。。

from blog.

jiajianrong avatar jiajianrong commented on July 30, 2024

我记得直接用一个iframe src="https://domain.com/a.pdf" 就可以使用浏览器自带的pdf查看功能,不知道你的和浏览器的实现有区别吗?

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

我记得直接用一个iframe src="https://domain.com/a.pdf" 就可以使用浏览器自带的pdf查看功能,不知道你的和浏览器的实现有区别吗?

在pc端基本上没问题,可以自带查看功能,我针对的是移动端,移动端的浏览器是不会自带pdf查看功能的,android的话默认下载,ios的话有部分浏览器是可以自带查看的。

from blog.

wangweiruning avatar wangweiruning commented on July 30, 2024

你好,请问一下PDF过大加载不出来,这个要怎么解决

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

你好,请问一下PDF过大加载不出来,这个要怎么解决

你的pdf有多大,我这个其实是按页加载的,应该是可以用的

from blog.

wangweiruning avatar wangweiruning commented on July 30, 2024

我的PDF主要是图片展示的http://health.arvate-top.com/data/%E4%BD%8F%E9%99%A2%E5%9E%AB%E4%BB%98%E6%9C%8D%E5%8A%A1%E6%A1%88%E4%BE%8B.pdf

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

我的PDF主要是图片展示的http://health.arvate-top.com/data/%E4%BD%8F%E9%99%A2%E5%9E%AB%E4%BB%98%E6%9C%8D%E5%8A%A1%E6%A1%88%E4%BE%8B.pdf

如果仅仅在pc端,你直接用一个iframe引进来就行了,不需要用我这个npm 包

from blog.

haoshuangfeng avatar haoshuangfeng commented on July 30, 2024

移动端上设置的宽度能配置吗

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

移动端上设置的宽度能配置吗

设置父元素div的宽度就可以了

from blog.

haoshuangfeng avatar haoshuangfeng commented on July 30, 2024

移动端上设置的宽度能配置吗

设置父元素div的宽度就可以了

设置后没生效:
image
设置后的效果:
image

from blog.

StevenZhangHl avatar StevenZhangHl commented on July 30, 2024

url放服务器的pdf地址怎么显示不出来呢

from blog.

StevenZhangHl avatar StevenZhangHl commented on July 30, 2024

4bce1381a7ca9d5f4552207e31d57b9
为什么我的pdf在手机上显示的位置这么奇葩,就在那一小块,而且head和foot的区域巨大,这张图是我把head和foot隐藏后的效果

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

4bce1381a7ca9d5f4552207e31d57b9
为什么我的pdf在手机上显示的位置这么奇葩,就在那一小块,而且head和foot的区域巨大,这张图是我把head和foot隐藏后的效果

改一下样式呗

from blog.

adu022 avatar adu022 commented on July 30, 2024

我这样放的url,报跨域错误怎么处理呢?但是使用PDFReader就不会报错
image
image

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.