Skip to content

Commit

Permalink
Merge pull request #229 from wurst-hans/master
Browse files Browse the repository at this point in the history
Fixed incompatible PDF/A header bytes
  • Loading branch information
horstoeko authored Jan 11, 2025
2 parents 04a2814 + ce07a05 commit 9b02e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZugferdPdfWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function setPdfVersion($version = '1.3', $binary_data = false): void
if ($this->deterministicModeEnabled === true) {
$this->PDFVersion .= "\n" . '%' . chr(128) . chr(129) . chr(130) . chr(131);
} else {
$this->PDFVersion .= "\n" . '%' . chr(rand(128, 256)) . chr(rand(128, 256)) . chr(rand(128, 256)) . chr(rand(128, 256));
$this->PDFVersion .= "\n" . '%' . chr(rand(128, 255)) . chr(rand(128, 255)) . chr(rand(128, 255)) . chr(rand(128, 255));
}
}
}
Expand Down

0 comments on commit 9b02e3e

Please sign in to comment.