Created
December 11, 2017 18:59
-
-
Save Double-A-92/4d57327ffeffb2bdd31f1cf7fd8b6b03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$positionMap = [ | |
'A' => [21, 56.6], | |
'B' => [21, 63.3], | |
'C' => [21, 69.5], | |
'D' => [21, 78], | |
'E' => [21, 83.5], | |
'F' => [21, 96], | |
'G' => [21, 109], | |
'H' => [21, 115], | |
'I' => [21, 122], | |
'J' => [21, 128], | |
'K' => [21, 134], | |
'L' => [21, 145], | |
'M' => [21, 156], | |
'N' => [21, 162], | |
'O' => [21, 168], | |
'P' => [65, 56], | |
'Q' => [65, 63.5], | |
'R' => [65, 69.5], | |
'S' => [65, 74], | |
'T' => [65, 81], | |
'U' => [65, 88], | |
]; | |
$crimes = $variables->Crime; | |
foreach ($crimes as $crimeLetter) | |
{ | |
$position = $positionMap[$crimeLetter]; | |
$pdf->SetXY($position[0], $position[1]); | |
$pdf->Write(0, 'X'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment