Giter Club home page Giter Club logo

print-html-element's People

Contributors

konsultaner avatar rpdasilva avatar

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

Watchers

 avatar  avatar  avatar  avatar

print-html-element's Issues

Save print output as issue

with this library, I have an issue that with this I got a save the print output as with XPS document format option for save, but I want to block download in any format. I don't want to download file in any format, i want to restrict it.
Capture

Should support webpack or browserify

Hello,

I have been trying to use this plugin in a webpack managed package. The only problem i am facing is that the styles are not applying while printing. Because  of the below code snippet in the plugin - 

     stylesheets = Array.prototype.slice.call( document.getElementsByTagName('link') );

It is explicitly looking for "link" elements and appending to the print html.

For webpack or browserify enabled packages the styles are embedded into the html with "<style>" tags. So i would be happy if i can set the option to pick "style" or "link" as per my needs...

iframe printMode does not work in firefox

Tested in Firefox 45.0.1.

PrintHTMLElement.printElement(document.getElementById('my-id'));

No print dialog, no error. No nothing.
This works though:

PrintHTMLElement.printElement(
        document.getElementById('my-id'),
        { printMode: 'popup' }
);

I'm using React. But it works perfectly in Chrome so I'm guessing that's not the issue.

Any idea of how to fix this? Thanks!

Printing multiple divs?

Hello, I'm currently using print-html-element to print off certain "tickets" for my current React application. It works fine if I select single tickets, but my superiors want the function to print off multiple tickets. All these tickets are stored in their own div elements.

I know it's posted that it will be a feature implemented later, but is there a workaround you suggest?

header date customization

Is there any way we can localize the header date while printing. I know a solution which is to do with changing chrome settings on the client machine.

But i am wondering can we do it through code by passing date just like the title?

Print on multiple pages

In addition to #16 I would like to ask if there would be the possibility to print each element to a new page?

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.