Output subdivisions of international standard paper sizes
JavaScript (ES6) + HTML, 96 94 + 34 = 130 128 bytes


f=(n,w=297,h=210)=&gt;n--&amp;&amp;f(n,h&lt;w?w/2:w,h&lt;w?h:h/2,(C=c.getContext`2d`).rect(0,0,w,h),C.stroke())

f(8)
&lt;canvas id=c width=300 height=300&gt;