blob: dc9b9ee384ff16bf4e496f86f346ccfd22271624 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>SetMargins</title>
6<link type="text/css" rel="stylesheet" href="../fpdf.css">
7</head>
8<body>
9<h1>SetMargins</h1>
10<code>SetMargins(<b>float</b> left, <b>float</b> top [, <b>float</b> right])</code>
11<h2>Description</h2>
12Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change
13them.
14<h2>Parameters</h2>
15<dl class="param">
16<dt><code>left</code></dt>
17<dd>
18Left margin.
19</dd>
20<dt><code>top</code></dt>
21<dd>
22Top margin.
23</dd>
24<dt><code>right</code></dt>
25<dd>
26Right margin. Default value is the left one.
27</dd>
28</dl>
29<h2>See also</h2>
30<a href="setleftmargin.htm">SetLeftMargin</a>,
31<a href="settopmargin.htm">SetTopMargin</a>,
32<a href="setrightmargin.htm">SetRightMargin</a>,
33<a href="setautopagebreak.htm">SetAutoPageBreak</a>
34<hr style="margin-top:1.5em">
35<div style="text-align:center"><a href="index.htm">Index</a></div>
36</body>
37</html>