php - How to reliably generate A4 printable label -
for project i'm working on need let user print a4 (landscape) label few dynamic pieces of information on it.
currently outputting label in html has following draw backs:
- poor browser support - ie in particular doesn't render things @ right locations , ends printing on 2 pages. firefox doesn't print larger images, smaller ones.
- auto header , footer - think browsers add , not users know how turn off
- guesswork margins each printer handles differently
are there other solutions?
there no easy solution cross browser render differences. dagon suggested, best option generate pdf, image or that's not html , not rendered browser directly.
note about:
auto header , footer - think browsers add , not users know how >to turn off
you can clear default padding , margin css:
body{padding:0;margin:0;}
Comments
Post a Comment