Coder Social home page Coder Social logo

printme's Introduction

jQuery PrintMe

Yes! Another jQuery plugin for print any page element

PrintMe is a lightweight Plugin to print any html element.

Why PrintMe?

I'm bored and a plugin was born. It is the story of my life. I'm bored, plugin, again and again ...

Usage

Step 1 Include your Javascript

printMe is a jQuery plugin, so you gotta have that first:

A jQuery base script: src"//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"

Then, just include jqueryprintme.js, wherever it lives on your server:

A printMe script: src"path_to/jqueryprintme.js"

Step 2 PrintMe!

Now you can print any element.

Here are a few examples:

Basic:

$("#example").printMe();

With external css styles, add all stylesheets you can need in the array

$("#example").printMe({ "path": ["path_to/external.css","path_to/external2.css"] });

With title

$("#example").printMe({ "title": "The title" });

Options

path: Array with a external css file location
title: The document header title

Examples

Some examples here

About

PrintMe has been developped by Daniel Arlandis @menusal

That's about all there is to know! Happy printing! If you find any interesting uses for this little library, please let me know! Issues and Pull Requests are more than welcome!

If you have any questions, drop me a line at: [email protected]

printme's People

Contributors

menusal 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  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  avatar  avatar

printme's Issues

printing large Table-Data

Hi,
so I'm trying to print large Table-Data.
Is it possible to change the page orientation by default to horizontal?
Also can a large table be broken down to several pages?

Styles not loaded into print page

Hi, i have set css style into my page, but can't loaded on print page.

Here my screenshots:
on html page:
screenshot_139

and here on print page:
screenshot_140

Here my style on page:
<link rel="stylesheet" href="{{ asset('bootstrap/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ asset('dist/css/AdminLTE.min.css') }}">
<link rel="stylesheet" href="{{ asset('dist/css/app.css') }}">

and my js code:
screenshot_141

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.