Code Monkey home page Code Monkey logo

print-job's People

Contributors

kevinokerlund avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mounoydev wbisr

print-job's Issues

Cannot print document.body

print-job.js:85 Uncaught TypeError: Cannot read property 'add' of undefined
    at c (print-job.js:85)
    at Object.print (print-job.js:108)
    at <anonymous>:1:10

Add functionality to append @media print CSS to <head>

CSS generation and attachment should be included in the JS file instead of requiring users to attach another CSS stylesheet as the CSS is relatively small. If the CSS were to be written in JSON format and then parsed into CSS, it would allow for easy readability, and editing.

  • json2css JavaScript function
  • CSS JSON object to parse into CSS at run-time

Support printing external images

Why?

Images on a web page should be as small as possible, but when a user wants to print a picture that is on the page, often a higher resolution image should be supplied.

Basic implementation plan

  • A URL should be supplied to the print function (or another function)
  • The image should not be viewable in the DOM during the print
  • No new windows or popups, or iframes should be used

Support printing PDFs

You can print a PDF file by adding an iframe to the page, and then calling .print on the iFrame window.

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.