diff --git a/src/Commands/BuildPdfCommand.php b/src/Commands/BuildPdfCommand.php index 5038db6..36363f9 100644 --- a/src/Commands/BuildPdfCommand.php +++ b/src/Commands/BuildPdfCommand.php @@ -121,6 +121,7 @@ protected function buildPdf(Collection $chapters, array $config, string $current $pdf->SetCreator($this->config->author()); // $pdf->debug = true; $pdf->SetBasePath(realpath($this->config->contentPath)); + $pdf->setAutoTopMargin = 'pad'; $pdf->setAutoBottomMargin = 'pad';