views:

19

answers:

1

I want to print some stuff on to labels of a predefined size. Can the layout be done in the browser and printed?

Obviously the problem is that it seems that size is not guaranteed when printing from the browser.

Avery only provides word doc templates (possibly for this reason)

Question: Can layout dimensions be guaranteed when printing an HTML only template?

+1  A: 

Question: Can layout dimensions be guaranteed when printing an HTML only template?

In theory yes, through CSS and by using a print stylesheet.

In practice no, for example because browsers tend to add (and reserve space for) their own headers and footers.

Generating a PDF would be a way, way more reliable way for label printing.

If you still want to do it in HTML, these will help:

Some good questions to get you started on PDF generation:

Pekka