admin
doz
fachprojektscheine
proseminarscheine
proseminascheine
decoders
doc
__construct.htm
acceptpagebreak.htm
addfont.htm
addlink.htm
addpage.htm
aliasnbpages.htm
cell.htm
close.htm
error.htm
footer.htm
fpdf.htm
getpageheight.htm
getpagewidth.htm
getstringwidth.htm
getx.htm
gety.htm
header.htm
image.htm
index.htm
line.htm
link.htm
ln.htm
multicell.htm
output.htm
pageno.htm
rect.htm
setauthor.htm
setautopagebreak.htm
setcompression.htm
setcreator.htm
setdisplaymode.htm
setdrawcolor.htm
setfillcolor.htm
setfont.htm
setfontsize.htm
setkeywords.htm
setleftmargin.htm
setlinewidth.htm
setlink.htm
setmargins.htm
setrightmargin.htm
setsubject.htm
settextcolor.htm
settitle.htm
settopmargin.htm
setx.htm
setxy.htm
sety.htm
text.htm
write.htm
filters
font
makefont
FAQ.htm
LICENSE
NOTICE
Praxisstellen.doc
Zustimmung.doc
as_utf_class.php
changelog.txt
class.fpdf_table.php
class.multicelltag.php
class.string_tags.php
demo.php
fpdf.css
fpdf.php
fpdf_tpl.php
fpdi.php
fpdi_bridge.php
fpdi_pdf_parser.php
histo.htm
install.txt
newpdf.pdf
pdf_context.php
pdf_gen.php
pdf_parser.php
pdfdoc.pdf
praxisstellen.pdf
praxisstellen.php
table_def.inc
table_def_kehl.inc
teilnehmer.php
wrapper_functions.php
zustimmung.pdf
zustimmung.php
Kennwortwechsel_doz.php
expo.php
export_doz.php
fachprojektbescheinigung_doz.php
hauptframe_jahr.php
index.php
index_doz.htm
jahrgang_doz.php
logo-trans.gif
logout_doz.php
mail_fach_doz.php
mail_pros_doz.php
menuframe.htm
noteneingabe_doz.php
pers_daten_doz.php
proseminarbescheinigung_doz.php
topframe.php
ubersicht_doz.php
ubersicht_fachthemen_doz.php
ubersicht_prosthemen_doz.php
html2pdf_v4.03
htmlpurifier-4.10.0
images
prints
prints3
proseminar
Kennwortwechsel.php
hauptframe.php
index.php
index_alt.php
index_db.php
index_frame.htm
index_ldap.php
login.php
logout.php
menuframe.htm
styles_pc.css
topframe.php
64 lines
1.7 KiB
HTML
Executable File
64 lines
1.7 KiB
HTML
Executable File
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<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
|
|
{
|
|
var $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>
|