Giter Club home page Giter Club logo

pdf-element's Introduction

Hi there ๐Ÿ‘‹

Check out my organizations:

Fork my spoons
Collection of MacOS Hammerspoons plugins

Menu Bar Apps
Collection of MacOS menubar applications

pdf-element's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pdf-element's Issues

ask

hello im new with polymer and i try to use your element, but the pdf preview not working but when i dowload the pdf is working, this my code:

screenshot from 2016-11-24 15 48 28

remove unneccesary `setSize()` in `changePDFSource` method

  Reader.prototype.changePDFSource = function(newSrc) {
    this.setSrc(newSrc);
    // this.setSize(); <-- not needed
    this.loadPDF();
  };

Description

Expected outcome

Actual outcome

Live Demo

Steps to reproduce

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

Can not be added in `papaer-dialog`

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

Dynamic loading of PDF file doesn't work

<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.

pdf-element does not respond to `hidden` attribute

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

Improve button bar layout.

  • Download button has no upper-margin.
  • Elements are not properly aligned.
  • All elements have different height.

Download does not decode escaped characters for filename

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

Buttons missing

I was recently using the element and the icon buttons for zoom, resize and download did not show.

pdf source doesn't show up while pages and filename are shown correctly

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.

Question: How to auto set the height?

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 src doesn't trigger attributeChanged()

Description

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.

Expected outcome

When the src-property is changed, the pdf-element should load the PDF at the src URL and display it.

Actual outcome

When the src-property is changed, nothing happens.

Proposed solution

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.

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.