<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"><title>SetTopMargin</title><linktype="text/css"rel="stylesheet"href="../fpdf.css"></head><body><h1>SetTopMargin</h1><code>SetTopMargin(<b>float</b> margin)</code><h2>Description</h2>Defines the top margin. The method can be called before creating the first page.<h2>Parameters</h2><dlclass="param"><dt><code>margin</code></dt><dd>The margin.</dd></dl><h2>See also</h2><ahref="setleftmargin.htm">SetLeftMargin()</a>,<ahref="setrightmargin.htm">SetRightMargin()</a>,<ahref="setautopagebreak.htm">SetAutoPageBreak()</a>,<ahref="setmargins.htm">SetMargins()</a>.<hrstyle="margin-top:1.5em"><divstyle="text-align:center"><ahref="index.htm">Index</a></div></body></html>