Class: Rl1PdfForm
Instance Attribute Summary
Attributes inherited from PdfForm
Class Method Summary collapse
Methods inherited from PdfForm
#initialize, #save_as, #to_file
Constructor Details
This class inherits a constructor from PdfForm
Class Method Details
.boxes_by_field_name ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'app/pdf_forms/rl1_pdf_form.rb', line 7 def boxes_by_field_name { code: 'codeReleve', box_A: 'caseA', box_B_A: 'caseB-A', box_B_B: 'caseB-B', box_C: 'caseC', box_D: 'caseD', box_E: 'caseE', box_F: 'caseF', box_G: 'caseG', box_H: 'caseH', box_I: 'caseI', box_J: 'caseJ', box_K: 'caseK', box_L: 'caseL', box_M: 'caseM', box_N: 'caseN', box_O: 'caseO', box_P: 'caseP', box_Q: 'caseQ', box_R: 'caseR', box_S: 'caseS', box_T: 'caseT', box_V: 'caseV', box_W: 'caseW', other_information_box_number_1: 'codeRenseignement1', other_information_amount_1: 'infoRenseignement1', other_information_box_number_2: 'codeRenseignement2', other_information_amount_2: 'infoRenseignement2', other_information_box_number_3: 'codeRenseignement3', other_information_amount_3: 'infoRenseignement3', other_information_box_number_4: 'codeRenseignement4', other_information_amount_4: 'infoRenseignement4', employee_last_name: 'nom1', employee_first_name: 'prenom1', employee_appartment: 'app1', employee_number: 'numero1', employee_street: 'rue1', employee_city: 'ville1', employee_province: 'province1', employee_postal_code: 'cp1', ssn: 'nas', reference: 'ref', employer_name: 'nom2', employer_first_name: 'prenom2', employer_appartment: 'app2', employer_number: 'numero2', employer_street: 'rue2', employer_city: 'ville2', employer_province: 'province2', employer_postal_code: 'cp2' } end |
.dummy ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'app/pdf_forms/rl1_pdf_form.rb', line 62 def dummy new({ code: '123456', box_A: '1000.00', box_B_A: '2000.00', box_B_B: '3000.00', box_C: '4000.00', box_D: '5000.00', box_E: '6000.00', box_F: '7000.00', box_G: '8000.00', box_H: '9000.00', box_I: '10000.00', box_J: '11000.00', box_K: '12000.00', box_L: '13000.00', box_M: '14000.00', box_N: '15000.00', box_O: '16000.00', box_P: '17000.00', box_Q: '18000.00', box_R: '19000.00', box_S: '20000.00', box_T: '21000.00', box_V: '22000.00', box_W: '23000.00', other_information_box_number_1: '1', other_information_amount_1: '100.00', other_information_box_number_2: '2', other_information_amount_2: '200.00', other_information_box_number_3: '3', other_information_amount_3: '300.00', other_information_box_number_4: '4', other_information_amount_4: '400.00', employee_last_name: 'Doe', employee_first_name: 'John', employee_appartment: 'Apt 1', employee_number: '123', employee_street: 'Main St', employee_city: 'Anytown', employee_province: 'QC', employee_postal_code: 'A1A 1A1', ssn: '123456789', reference: '123456', employer_name: 'Acme Corp', employer_first_name: 'Jane', employer_appartment: 'Suite 100', employer_number: '456', employer_street: 'Elm St', employer_city: 'Othertown', employer_province: 'ON', employer_postal_code: 'B2B 2B2' }) end |
.template_path ⇒ Object
3 4 5 |
# File 'app/pdf_forms/rl1_pdf_form.rb', line 3 def template_path './app/assets/pdfs/rl1-fill-24.pdf' end |