www.webdeveloper.com
Results 1 to 5 of 5

Thread: Need advice on printing onto A4

  1. #1
    Join Date
    Apr 2005
    Posts
    481

    Need advice on printing onto A4

    I want to create webpages to print onto A4 paper
    I will be printing invoices + other promotional text

    I wanted to know what I could do to guarantee that the print goes onto one sheet of A4
    One person printing on XXX printer will be OK - but someone else printing on YYY printer might just tip over and go onto 2 pages - I don't want 2 pages

    I wasn't sure where to start

    I don't really want to be conservative and make the page ultra short - would be nice to have a footer that prints on the bottom of the page

    I'm assuming the printing part is a CSS controlled thing

    ANY replies would be great

    Thanks


    OM

  2. #2
    Join Date
    Feb 2008
    Location
    Europe
    Posts
    266
    You can indeed do that with css. See http://www.w3schools.com/css/css_mediatypes.asp. However, css does not discriminate between paper sizes. It may make the user's computer communicate with the printer regarding margins, etc., and it standardizes browser printing output, but that's it.
    Last edited by Frank62; 07-26-2011 at 06:36 AM.
    R.,
    Frank

    Please report back how suggestions worked out.

  3. #3
    Join Date
    Apr 2005
    Posts
    481
    thanks
    i think the only choice i have is to play safe and create what i think will be shorter than a4 when printed

    thanks

  4. #4
    Join Date
    Jul 2011
    Posts
    8

    Another Option

    Generate an PDF document with your content.
    FPDF (pdf library for PHP) is a good start.

    Regards.

  5. #5
    Join Date
    Apr 2005
    Posts
    481
    hmm... yes... i think that's where i will have to go with it in the end
    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles