Menu

Search toolsChangelog

to move to openDescribe the problem, not the tool

8 mm ruled lines on A4 paper

With a 12 mm margin and 20 mm of extra space above the first rule, portrait A4 takes 32 horizontal writing lines at 8 mm spacing. The first rule is 32 mm from the top edge and the last is 280 mm down, leaving 17 mm to the trimmed bottom edge.

Trimmed sizes from CSS Paged Media. An international inch is exactly 25.4 millimetres.

Measured baseline to baseline. Quarter-inch ruling is 6.35 mm.

Blank border at every edge. Your printer may impose a larger hardware margin.

Added below the top edge margin for a heading, name or binding.

Writing lines
32
First line from top edge (mm)
32.000
Last line from top edge (mm)
280.000
Length of each rule (mm)
186.000
Horizontal rule length (m)
5.952
Vertical guide
32 mm

The ruled sheet

ruled-paper-a4-8mm.svg · 770 B

A complete SVG dimensioned in millimetres. Print at 100% or Actual size to keep the selected spacing.

Every horizontal rule

13212198
24012198
34812198
45612198
56412198
67212198
78012198
88812198
99612198
1010412198
1111212198
1212012198
1312812198
1413612198
1514412198
1615212198
1716012198
1816812198
1917612198
2018412198
What to take away
  1. Each horizontal rule is 186 mm long between the two 12 mm side margins.

  2. Thirty-two rules contain 5.952 metres of horizontal line in total.

  3. The downloaded SVG declares its page size in millimetres rather than screen pixels.

How it works

The formula

firstLine = edgeMargin + headingSpace
bottom    = pageHeight - edgeMargin

if firstLine <= bottom:
  writingLines = floor((bottom - firstLine) / spacing) + 1
  lineY[n]      = firstLine + n x spacing
otherwise:
  writingLines = 0

ruledWidth     = pageWidth - 2 x edgeMargin
totalRuleLength = writingLines x ruledWidth

Every length is held as an integer number of micrometres, then written to
an SVG whose width and height are declared in millimetres.

What it assumes

  • Paper dimensions are trimmed physical sizes. The printer's hardware margin is not deducted; a requested line can still be clipped by a device that cannot reach it.
  • The first rule is the edge margin plus the extra heading space. Heading space does not replace the blank edge margin.
  • A line exactly on the bottom boundary is included, which is why a sheet can have one more rule than it has spacing intervals.
  • The vertical guide is measured from the paper edge and clamped inside the horizontal writing width. Zero omits it entirely.
  • Physical size is preserved only when the print dialogue uses 100% or Actual size. Fit-to-page deliberately rescales the sheet.

Common questions

Why is the first line 32 mm from the top instead of 20 mm?

The 20 mm heading space is added below the 12 mm edge margin. Their sum places the first writing baseline 32 mm from the physical top edge.

Will the lines stay 8 mm apart when printed?

Yes if the print scale is 100% or Actual size. Fit-to-page scaling deliberately shrinks the entire SVG and therefore the line spacing too.

Sources

The full method, worked example and every assumption behind this figure are on Printable Ruled Paper Maker.