Permalink
Browse files

Add pagebreaks to sample usage

  • Loading branch information...
1 parent e5c0958 commit ba65a65ee15416e133dc7e2bcf4d75dfee1c1a52 @raiju committed Jan 20, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 index.php
View
@@ -60,13 +60,16 @@
$content->appendImage($im);
imagedestroy($im);
+ $content->appendPageBreak();
for($i = 0, $lenI = rand(10, 15); $i < $lenI; $i++){
$content->appendChapterTitle(($i+1).". Chapter ".($i+1));
for($j = 0, $lenJ = rand(20, 40); $j < $lenJ; $j++){
$content->appendParagraph("P".($i+1).".".($j+1)." TEXT TEXT TEXT");
}
+
+ $content->appendPageBreak();
}
$mobi->setContentProvider($content);

0 comments on commit ba65a65

Please sign in to comment.