Update soft_copy.php
authorPatrick McGuire <insidenothing@gmail.com>
Tue, 16 Mar 2021 20:08:47 +0000 (16:08 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Mar 2021 20:08:47 +0000 (16:08 -0400)
soft_copy.php

index 1b1865a..39655e9 100644 (file)
@@ -50,6 +50,11 @@ $offset_y = $dX['offset_y_cords'];
 $offset_x_circulator = $dX['offset_x_cords_circulator'];
 $offset_y_circulator = $dX['offset_y_cords_circulator'];
 
+  $petition_party_line1 = $dX['petition_party_line1'];
+  $petition_party_line2 = $dX['petition_party_line2'];
+  $petition_party_line3 = $dX['petition_party_line3'];
+  $petition_party_line4 = $dX['petition_party_line4'];
+
 // imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text ) 
 // x how far from left
 // y how far from top
@@ -82,6 +87,12 @@ if ($hide_county == 'NO'){
    imagettftext($jpg_image, $array[0], $array[1], $array[2], $array[3], $black, $font_path, str_replace('County','',$_COOKIE['pCOUNTY']) );
  }
 }
+// Party Information
+imagettftext($jpg_image, 50, 0, 200, 580, $black, $font_path, $petition_party_line1 );
+imagettftext($jpg_image, 50, 0, 700, 700, $black, $font_path, $petition_party_line2 );
+imagettftext($jpg_image, 50, 0, 340, 790, $black, $font_path, $petition_party_line3 );
+imagettftext($jpg_image, 50, 0, 340, 870, $black, $font_path, $petition_party_line4 );
+
 // name
 imagettftext($jpg_image, 50, 0, 350+$offset_x, 1070+$offset_y, $black, $font_path, $full_name);
 // signed