Skip to content

Commit

Permalink
#9 Always enable auto resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed May 15, 2023
1 parent de15bc4 commit f1bc40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZugferdDocumentPdfBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private function startCreatePdf(): void
for ($pageNumber = 1; $pageNumber <= $pageCount; ++$pageNumber) {
$pageContent = $this->pdfWriter->importPage($pageNumber, '/MediaBox');
$this->pdfWriter->AddPage();
$this->pdfWriter->useTemplate($pageContent);
$this->pdfWriter->useTemplate($pageContent, 0, 0, null, null, true);
}

// Set PDF version 1.7 according to PDF/A-3 ISO 32000-1
Expand Down

0 comments on commit f1bc40e

Please sign in to comment.