Comments (2)
To be honest, I didn't intend to allow dynamic resizing since 1.1.0
. Because in this version annotation and text layers were introduced, as well as width and height props, which does not allow to have such responsiveness as it was in 1.0.8
and earlier.
However, I see your point and will consider optional dynamic resizing when width and height are not provided.
PS: Thanks for posting your workaround.
PPS: If you don't need annotation and text layers, responsiveness can also be achieved with plain CSS (by setting the width of the component's canvases to 100%
and the height to auto
).
from vue-pdf-embed.
Hi @deisner,
I once again considered adding this feature, but I'm still leaning towards using third-party libraries or a style approach. After all, this is a library for embedding PDF documents, while there are well-established solutions for tracking resizing, which in turn are very case-specific. I would like to focus on rendering documents in this library and leave it up to developers to decide what works for them when it comes to dynamic resizing.
from vue-pdf-embed.
Related Issues (20)
- vue3 中 pdf 内容错乱 HOT 2
- The requested module 'pdfjs-dist' does not provide an export named 'PasswordResponses' HOT 3
- redundant render base64 pdf cause same canvas render multiple time error HOT 2
- Import font package not found
- Vulnerabilities HOT 1
- xiaomi phone in have this a problem t.a is not a function
- [Bug Report] Memory leaks after changing the page width
- PDF.js Critical Vulnerability HOT 5
- InvalidAccessError: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.
- pdf加载失败 HOT 3
- Page canvases in the wrong order HOT 4
- when I use vue-pdf-embed in my Pad by H5 App,I get a error.How can I solve it??
- images/cursor-editorInk.svg Image loading failed HOT 1
- support zooming gestures HOT 2
- SyntaxError: The requested module '/node_modules/.pnpm/@[email protected][email protected]/node_modules/@dcloudio/uni-h5-vue/dist/vue.runtime.esm.js' does not provide an export named 'toValue' (at index.mjs:20:47) HOT 3
- If it support disableAutoFetch and Rendering Piecewise Loaded PDF Files?
- npm packages deprecations HOT 1
- pdf files have xss and cannot be displayed properly
- [Ask Help]How to set cMapUrl correctly for using useVuePdfEmbed HOT 3
- Print pop-up window display slow.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-pdf-embed.