<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"><title>Close</title><linktype="text/css"rel="stylesheet"href="../fpdf.css"></head><body><h1>Close</h1><code>Close()</code><h2>Description</h2>Terminates the PDF document. It is not necessary to call this method explicitly because Output()does it automatically.<br>If the document contains no page, AddPage() is called to prevent from getting an invalid document.<h2>See also</h2><ahref="output.htm">Output()</a>.<hrstyle="margin-top:1.5em"><divstyle="text-align:center"><ahref="index.htm">Index</a></div></body></html>