Check out my organizations:
Fork my spoons
Collection of MacOS Hammerspoons plugins
Menu Bar Apps
Collection of MacOS menubar applications
PDF-viewer web-component, compatible with Polymer 1.0
Home Page: http://pavelmakhov.com/pdf-element/components/pdf-element/
License: MIT License
Check out my organizations:
Fork my spoons
Collection of MacOS Hammerspoons plugins
Menu Bar Apps
Collection of MacOS menubar applications
Put it to maxpage + 1
and try to change zoom level.
Reader.prototype.changePDFSource = function(newSrc) {
this.setSrc(newSrc);
// this.setSize(); <-- not needed
this.loadPDF();
};
Hello
Thanks for the great work ,I am unable to add this element inside paper-dialog
, I just get blank pdf , with no errors in the console .
when I try to download the pdf , I get error saying Can not get the page
Any idea ?
thanks in advance
<pdf-element src="[[filePath]]" elevation="0" downloadable height="200" show-file-name enable-text-selection></pdf-element>
doesn't work for me, it loads an empty element.
I was wondering if its possible to export the PDF as HTML5 ?
How to reproduce:
Put -
in page number.
Hello
Thanks for the great work , I have noticed that the element does not respect the hidden
attribute , any idea ?
does not work
<pdf-element hidden src="./example.pdf"></pdf-element>
thanks in advance
paper-toolbar is a dependency on this element, can you please add it to bower.json?
When the src is a URI, where the filename might contain escaped characters, the "download" action will download the file with these characters escaped for the filename.
For example, if you have a src like "http://some_website.com/example%3B.pdf" where the name of the pdf is actually "example;.pdf", when you download the filename is still escaped: "example$3B.pdf".
Thanks,
Mauro
I was recently using the element and the icon buttons for zoom, resize and download did not show.
Hi first of all thank you for this great element.
Unfortunately I can't get it to work out of the box.
Everything is working correctly, except the pdf doesn't show up. Instead a white square minimizes to a small dot on the left.
I only get this warning:
pdf.worker.js:23916 The provided value 'moz-chunked-arraybuffer' is not a valid enum value of type XMLHttpRequestResponseType.
It would be great if someone could help me out, thanks in advance.
I want my pdf to automatically fit in a div. and my div height is 100% of my page. when I use the following syntax pdf viewer is half the size of my page:
<pdf-element id="pdf" show-spinner ></pdf-element>
For now, I am using the following syntax, but it looks bad on some computers with different resolution:
<pdf-element height=800 id="pdf" show-spinner ></pdf-element>
Changing the value of the src-property (for example by using a databinding) doesn't trigger execution of the attributeChanged() method. This results in the PDF not being displayed.
When the src-property is changed, the pdf-element should load the PDF at the src URL and display it.
When the src-property is changed, nothing happens.
This appears to be the expected behaviour. While notify: true
is set on the src-property, this only fires the src-changed
event on change of the property (polymer-docs: notify).
When we set reflectToAttribute: true
instead, the method is executed and the PDF loads as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.