Code Monkey home page Code Monkey logo

Comments (4)

cognitom avatar cognitom commented on May 27, 2024

Could be. Do you have any example code?

from paper-css.

cognitom avatar cognitom commented on May 27, 2024

Oops, could you check your print setting?
As default, no background will be printed in Chrome.

from paper-css.

Vishal0203 avatar Vishal0203 commented on May 27, 2024

Hi @cognitom,

I enabled Background graphics option and everything seems good now.
However, there's some white-space left at the bottom after it gets converted to pdf or previewed in print. any ideas about that?

Please see the bottom of the image attached.
screen shot 2018-04-19 at 3 20 34 pm

from paper-css.

cognitom avatar cognitom commented on May 27, 2024

The actual paper size could be slightly different. It depends on your printer driver. You can change this line like below:

body.A4 .sheet { width: 210mm; height: 297mm }

But, it might cause unexpected page breaks. (That's why height is set to 296mm as default)

So, I recommend you to keep enough margin arround which is needed for printers.

Or, how about adding one extra page after the last page? (with setting the background on body)

from paper-css.

Related Issues (20)

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.