Comments (8)
@prabirshrestha Implemented and will be available in the next release
from pdfjs-viewer-element.
It works now. Would be good to have this site updated too. https://alekswebnet.github.io/pdfjs-viewer-element/#api
from pdfjs-viewer-element.
@prabirshrestha Since v2.5.0 you can use viewer-css-theme
attribute to change viewer theme - AUTOMATIC | LIGHT | DARK
from pdfjs-viewer-element.
Don't think v2.5.0 is correctly released. Tried both with pnpm and npm and also verified in yarnkpkg site.
static get observedAttributes() {
return ["src", "viewer-path", "locale", "page", "search", "phrase", "zoom", "pagemode", "text-layer"];
}
I don't see the latest change.
['src', 'viewer-path', 'locale', 'page', 'search', 'phrase', 'zoom', 'pagemode', 'text-layer', 'viewer-css-theme', 'viewer-extra-styles']
from pdfjs-viewer-element.
@prabirshrestha You are right, it was my mistake. Sorry for that
The latest changes are available in the latest version: https://yarnpkg.com/package?q=pdfjs-viewer-element&name=pdfjs-viewer-element&version=2.5.2&file=%2Fdist%2Fpdfjs-viewer-element.js
from pdfjs-viewer-element.
@prabirshrestha You are right, I will update it soon
from pdfjs-viewer-element.
@prabirshrestha The website is updated. Thanks for sharing!
from pdfjs-viewer-element.
Thanks for the quick fix!
from pdfjs-viewer-element.
Related Issues (13)
- Add possibility to set viewer language
- Open a file that I downloaded outside of the framework? HOT 4
- Add demo for Svelte framework HOT 2
- add attribute to disable OpenFile menu HOT 2
- return type of initialize is uknown in typescript HOT 1
- typings for eventbus differs from README HOT 2
- CSS theme switching is not work with prebuilt v.3.11.174 HOT 1
- Make package downloading size lighter
- Properties are not updating correctly. Rework passing property to viewer mechanism needed.
- Whole component flickers after search HOT 1
- Add tests
- bit more documentation on using inside frameworks HOT 3
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 pdfjs-viewer-element.