Jump to content

Formatting HTML to print on single 8.5x11


ExWebDev

Recommended Posts

Hey guys (and gals):ExWebDev here. Had 10 years in the biz but March 2001 wasn't kind. I now work in the mortgage industry but still dabble. Ok, enough about me... call me a two-time newbie.I have a small project where I want to allow users to print out a real estate flyer that's been created by data supplied by form field information entered by user. I've written the basic application using HTML and PHP so a pop-up window displays the complete "custom" flyer in a web browser window.My goal: Allow my users to print out the dynamically generated flyer on their printer... on a *single* piece of 8.5x11 paper. I've used the import markup to control how sites control printout of web pages but am a bit mystified if it's possible to specify page dimensions in terms of inches and/or limit output to a single page (i.e. the Windows scale-to-fit concept). Any suggestions? Thanks in advance,David

Link to comment
Share on other sites

  • 3 years later...
Guest FirefoxRocks

Maybe you want to generate a dynamic PDF file from PHP. You can control printed documents much more with PDF. Otherwise you will have to rely on user-configuration, margins, CSS print properties and printers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...