## Features

- Print specific & multiple DOM elements
- Preserve page CSS/styling or add new CSS; the world is your oyster!
- Preserve form entries
- Canvas support
- See the demo

## Usage

### Basic

                  $('selector').printThis();

### Advanced Features

    $('#kitty-one, #kitty-two, #kitty-three').printThis({
        importCSS: false,
        loadCSS: "path/to/new/CSS/file",
        header: "<h1>Look at all of my kitties!</h1>"
    });

### Troubleshooting

Check the printThis wiki for common issues and questions
Covers common issues related to styling and printing limitations regarding page breaks

### Options

View on github for a full description of each option

    $("#mySelector").printThis({
        debug: false,               // show the iframe for debugging
        importCSS: true,            // import parent page css
        importStyle: false,         // import style tags
        printContainer: true,       // print outer container/$.selector
        loadCSS: "",                // path to additional css file - use an array [] for multiple
        pageTitle: "",              // add title to print page
        removeInline: false,        // remove inline styles from print elements
        removeInlineSelector: "*",  // custom selectors to filter inline styles. removeInline must be true
        printDelay: 333,            // variable print delay
        header: null,               // prefix to html
        footer: null,               // postfix to html
        base: false,                // preserve the BASE tag or accept a string for the URL
        formValues: true,           // preserve input/form values
        canvas: false,              // copy canvas content
        doctypeString: '...',       // enter a different doctype for older markup
        removeScripts: false,       // remove script tags from print content
        copyTagClasses: false,      // copy classes from the html & body tag
        beforePrintEvent: null,     // function for printEvent in iframe
        beforePrint: null,          // function called before iframe is filled
        afterPrint: null            // function called before iframe is removed
    });

## Demo

Print container

    $(".demo").printThis();

Print kittens

    $('#kitty-one, #kitty-two, #kitty-three').printThis({
      importCSS: false,
      header: "<h1>Look at all of my kitties!</h1>"
    });

### Kittens

Bathe self with tongue then lick owner's face kitten is playing with dead mouse and leave dead animals as gifts. Lies down . Ears back wide eyed then cats take over the world meowing non stop for food.

Always hungry lick arm hair. Kitty loves pigs chase the pig around the house. Spend all night ensuring people don't sleep sleep all day play time.

Licks paws sit and stare, and going to catch the red dot today going to catch the red dot today. Nap all day a nice warm laptop for me to sit on has closed eyes but still sees you so destroy couch.

Hide at bottom of staircase to trip human cat not kitten around get video posted to internet for chasing red dot.

Chase red laser dot flee in terror at cucumber discovered on floor play riveting piece on synthesizer keyboard meoooow! Attack the dog then pretend like nothing happened. Poop in litter box, scratch the walls eat and than sleep on your face wake up human for food at 4am.

Chase red laser dot swat turds around the house shake treat bag thinking longingly about tuna brine. Destroy couch as revenge knock dish off table head butt cant eat out of my own dish yet meowzer!

Destroy couch as revenge. Claw drapes lick the plastic bag swat turds around the house eat and than sleep on your face. Mark territory pelt around the house and up and down stairs chasing phantoms. Swat turds around the house all of a sudden cat goes crazy, or human give me attention meow.

printThis is maintained by Jason Day and Samuel Rouse