invoice_printer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/examples/czech_invoice.jpg +0 -0
- data/examples/czech_invoice.pdf +174 -181
- data/examples/simple_invoice.pdf +127 -134
- data/lib/invoice_printer/pdf_document.rb +140 -83
- data/lib/invoice_printer/version.rb +1 -1
- data/test/dates_box_test.rb +4 -0
- data/test/invoice_printer_test.rb +1 -1
- data/test/items_table_test.rb +3 -5
- data/test/labels_test.rb +0 -2
- data/test/test_ext.rb +52 -20
- data/test/test_helper.rb +1 -1
- metadata +3 -2
data/examples/simple_invoice.pdf
CHANGED
@@ -17,7 +17,7 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 5326
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
@@ -72,6 +72,17 @@ BT
|
|
72
72
|
[<4e5943>] TJ
|
73
73
|
ET
|
74
74
|
|
75
|
+
42.0 706.0 m
|
76
|
+
300.0 706.0 l
|
77
|
+
303.3137 706.0 306.0 703.3137 306.0 700.0 c
|
78
|
+
306.0 562.0 l
|
79
|
+
306.0 558.6863 303.3137 556.0 300.0 556.0 c
|
80
|
+
42.0 556.0 l
|
81
|
+
38.6863 556.0 36.0 558.6863 36.0 562.0 c
|
82
|
+
36.0 700.0 l
|
83
|
+
36.0 703.3137 38.6863 706.0 42.0 706.0 c
|
84
|
+
h
|
85
|
+
S
|
75
86
|
|
76
87
|
BT
|
77
88
|
326.0 688.82 Td
|
@@ -107,17 +118,6 @@ BT
|
|
107
118
|
[<4e5943>] TJ
|
108
119
|
ET
|
109
120
|
|
110
|
-
42.0 706.0 m
|
111
|
-
300.0 706.0 l
|
112
|
-
303.3137 706.0 306.0 703.3137 306.0 700.0 c
|
113
|
-
306.0 562.0 l
|
114
|
-
306.0 558.6863 303.3137 556.0 300.0 556.0 c
|
115
|
-
42.0 556.0 l
|
116
|
-
38.6863 556.0 36.0 558.6863 36.0 562.0 c
|
117
|
-
36.0 700.0 l
|
118
|
-
36.0 703.3137 38.6863 706.0 42.0 706.0 c
|
119
|
-
h
|
120
|
-
S
|
121
121
|
322.0 706.0 m
|
122
122
|
580.0 706.0 l
|
123
123
|
583.3137 706.0 586.0 703.3137 586.0 700.0 c
|
@@ -131,306 +131,306 @@ h
|
|
131
131
|
S
|
132
132
|
|
133
133
|
BT
|
134
|
-
46.0
|
134
|
+
46.0 526.82 Td
|
135
135
|
/F1.0 10 Tf
|
136
136
|
[<50> 40 <61> 30 <796d656e742062> 20 <792062616e6b207472> 10 <616e7366> 30 <6572206f6e20746865206163636f756e742062656c6f> 15 <773a>] TJ
|
137
137
|
ET
|
138
138
|
|
139
139
|
|
140
140
|
BT
|
141
|
-
46.0
|
141
|
+
46.0 511.82 Td
|
142
142
|
/F1.0 10 Tf
|
143
143
|
[<4163636f756e74204e4f3a>] TJ
|
144
144
|
ET
|
145
145
|
|
146
146
|
|
147
147
|
BT
|
148
|
-
111.0
|
148
|
+
111.0 511.82 Td
|
149
149
|
/F1.0 10 Tf
|
150
150
|
[<313536353436353436343635>] TJ
|
151
151
|
ET
|
152
152
|
|
153
|
-
42.0
|
154
|
-
300.0
|
155
|
-
303.3137
|
156
|
-
306.0
|
157
|
-
306.0
|
158
|
-
42.0
|
159
|
-
38.6863
|
160
|
-
36.0
|
161
|
-
36.0
|
153
|
+
42.0 544.0 m
|
154
|
+
300.0 544.0 l
|
155
|
+
303.3137 544.0 306.0 541.3137 306.0 538.0 c
|
156
|
+
306.0 505.0 l
|
157
|
+
306.0 501.6863 303.3137 499.0 300.0 499.0 c
|
158
|
+
42.0 499.0 l
|
159
|
+
38.6863 499.0 36.0 501.6863 36.0 505.0 c
|
160
|
+
36.0 538.0 l
|
161
|
+
36.0 541.3137 38.6863 544.0 42.0 544.0 c
|
162
162
|
h
|
163
163
|
S
|
164
164
|
|
165
165
|
BT
|
166
|
-
326.0
|
166
|
+
326.0 526.82 Td
|
167
167
|
/F1.0 10 Tf
|
168
168
|
[<497373756520646174653a>] TJ
|
169
169
|
ET
|
170
170
|
|
171
171
|
|
172
172
|
BT
|
173
|
-
426.0
|
173
|
+
426.0 526.82 Td
|
174
174
|
/F1.0 10 Tf
|
175
175
|
[<30352f30332f32303136>] TJ
|
176
176
|
ET
|
177
177
|
|
178
178
|
|
179
179
|
BT
|
180
|
-
326.0
|
180
|
+
326.0 511.82 Td
|
181
181
|
/F1.0 10 Tf
|
182
182
|
[<44756520646174653a>] TJ
|
183
183
|
ET
|
184
184
|
|
185
185
|
|
186
186
|
BT
|
187
|
-
426.0
|
187
|
+
426.0 511.82 Td
|
188
188
|
/F1.0 10 Tf
|
189
189
|
[<31392f30332f32303136>] TJ
|
190
190
|
ET
|
191
191
|
|
192
|
-
322.0
|
193
|
-
580.0
|
194
|
-
583.3137
|
195
|
-
586.0
|
196
|
-
586.0
|
197
|
-
322.0
|
198
|
-
318.6863
|
199
|
-
316.0
|
200
|
-
316.0
|
192
|
+
322.0 544.0 m
|
193
|
+
580.0 544.0 l
|
194
|
+
583.3137 544.0 586.0 541.3137 586.0 538.0 c
|
195
|
+
586.0 505.0 l
|
196
|
+
586.0 501.6863 583.3137 499.0 580.0 499.0 c
|
197
|
+
322.0 499.0 l
|
198
|
+
318.6863 499.0 316.0 501.6863 316.0 505.0 c
|
199
|
+
316.0 538.0 l
|
200
|
+
316.0 541.3137 318.6863 544.0 322.0 544.0 c
|
201
201
|
h
|
202
202
|
S
|
203
203
|
0.961 0.961 0.961 scn
|
204
|
-
36.0
|
204
|
+
36.0 458.128 148.6971 22.872 re
|
205
205
|
f
|
206
206
|
0.000 0.000 0.000 scn
|
207
207
|
1 w
|
208
|
-
36.0
|
209
|
-
36.0
|
208
|
+
36.0 481.5 m
|
209
|
+
36.0 456.628 l
|
210
210
|
S
|
211
|
-
184.6971
|
212
|
-
184.6971
|
211
|
+
184.6971 481.5 m
|
212
|
+
184.6971 456.628 l
|
213
213
|
S
|
214
|
-
36.0
|
215
|
-
184.6971
|
214
|
+
36.0 481.0 m
|
215
|
+
184.6971 481.0 l
|
216
216
|
S
|
217
|
-
36.0
|
218
|
-
184.6971
|
217
|
+
36.0 457.128 m
|
218
|
+
184.6971 457.128 l
|
219
219
|
S
|
220
220
|
/DeviceRGB CS
|
221
221
|
0.000 0.000 0.000 SCN
|
222
222
|
1 w
|
223
223
|
|
224
224
|
BT
|
225
|
-
41.0
|
225
|
+
41.0 464.756 Td
|
226
226
|
/F1.0 12 Tf
|
227
227
|
[<4974656d>] TJ
|
228
228
|
ET
|
229
229
|
|
230
230
|
0.000 0.000 0.000 scn
|
231
231
|
0.961 0.961 0.961 scn
|
232
|
-
184.6971
|
232
|
+
184.6971 458.128 98.5342 22.872 re
|
233
233
|
f
|
234
234
|
0.000 0.000 0.000 scn
|
235
235
|
1 w
|
236
|
-
184.6971
|
237
|
-
184.6971
|
236
|
+
184.6971 481.5 m
|
237
|
+
184.6971 456.628 l
|
238
238
|
S
|
239
|
-
283.2313
|
240
|
-
283.2313
|
239
|
+
283.2313 481.5 m
|
240
|
+
283.2313 456.628 l
|
241
241
|
S
|
242
|
-
184.6971
|
243
|
-
283.2313
|
242
|
+
184.6971 481.0 m
|
243
|
+
283.2313 481.0 l
|
244
244
|
S
|
245
|
-
184.6971
|
246
|
-
283.2313
|
245
|
+
184.6971 457.128 m
|
246
|
+
283.2313 457.128 l
|
247
247
|
S
|
248
248
|
0.000 0.000 0.000 SCN
|
249
249
|
1 w
|
250
250
|
|
251
251
|
BT
|
252
|
-
233.5433
|
252
|
+
233.5433 464.756 Td
|
253
253
|
/F1.0 12 Tf
|
254
254
|
[<5175616e74697479>] TJ
|
255
255
|
ET
|
256
256
|
|
257
257
|
0.000 0.000 0.000 scn
|
258
258
|
0.961 0.961 0.961 scn
|
259
|
-
283.2313
|
259
|
+
283.2313 458.128 57.329 22.872 re
|
260
260
|
f
|
261
261
|
0.000 0.000 0.000 scn
|
262
262
|
1 w
|
263
|
-
283.2313
|
264
|
-
283.2313
|
263
|
+
283.2313 481.5 m
|
264
|
+
283.2313 456.628 l
|
265
265
|
S
|
266
|
-
340.5603
|
267
|
-
340.5603
|
266
|
+
340.5603 481.5 m
|
267
|
+
340.5603 456.628 l
|
268
268
|
S
|
269
|
-
283.2313
|
270
|
-
340.5603
|
269
|
+
283.2313 481.0 m
|
270
|
+
340.5603 481.0 l
|
271
271
|
S
|
272
|
-
283.2313
|
273
|
-
340.5603
|
272
|
+
283.2313 457.128 m
|
273
|
+
340.5603 457.128 l
|
274
274
|
S
|
275
275
|
0.000 0.000 0.000 SCN
|
276
276
|
1 w
|
277
277
|
|
278
278
|
BT
|
279
|
-
314.2243
|
279
|
+
314.2243 464.756 Td
|
280
280
|
/F1.0 12 Tf
|
281
281
|
[<556e6974>] TJ
|
282
282
|
ET
|
283
283
|
|
284
284
|
0.000 0.000 0.000 scn
|
285
285
|
0.961 0.961 0.961 scn
|
286
|
-
340.5603
|
286
|
+
340.5603 458.128 152.2801 22.872 re
|
287
287
|
f
|
288
288
|
0.000 0.000 0.000 scn
|
289
289
|
1 w
|
290
|
-
340.5603
|
291
|
-
340.5603
|
290
|
+
340.5603 481.5 m
|
291
|
+
340.5603 456.628 l
|
292
292
|
S
|
293
|
-
492.8404
|
294
|
-
492.8404
|
293
|
+
492.8404 481.5 m
|
294
|
+
492.8404 456.628 l
|
295
295
|
S
|
296
|
-
340.5603
|
297
|
-
492.8404
|
296
|
+
340.5603 481.0 m
|
297
|
+
492.8404 481.0 l
|
298
298
|
S
|
299
|
-
340.5603
|
300
|
-
492.8404
|
299
|
+
340.5603 457.128 m
|
300
|
+
492.8404 457.128 l
|
301
301
|
S
|
302
302
|
0.000 0.000 0.000 SCN
|
303
303
|
1 w
|
304
304
|
|
305
305
|
BT
|
306
|
-
413.6444
|
306
|
+
413.6444 464.756 Td
|
307
307
|
/F1.0 12 Tf
|
308
308
|
[<5072> -15 <69636520706572206974656d>] TJ
|
309
309
|
ET
|
310
310
|
|
311
311
|
0.000 0.000 0.000 scn
|
312
312
|
0.961 0.961 0.961 scn
|
313
|
-
492.8404
|
313
|
+
492.8404 458.128 93.1596 22.872 re
|
314
314
|
f
|
315
315
|
0.000 0.000 0.000 scn
|
316
316
|
1 w
|
317
|
-
492.8404
|
318
|
-
492.8404
|
317
|
+
492.8404 481.5 m
|
318
|
+
492.8404 456.628 l
|
319
319
|
S
|
320
|
-
586.0
|
321
|
-
586.0
|
320
|
+
586.0 481.5 m
|
321
|
+
586.0 456.628 l
|
322
322
|
S
|
323
|
-
492.8404
|
324
|
-
586.0
|
323
|
+
492.8404 481.0 m
|
324
|
+
586.0 481.0 l
|
325
325
|
S
|
326
|
-
492.8404
|
327
|
-
586.0
|
326
|
+
492.8404 457.128 m
|
327
|
+
586.0 457.128 l
|
328
328
|
S
|
329
329
|
0.000 0.000 0.000 SCN
|
330
330
|
1 w
|
331
331
|
|
332
332
|
BT
|
333
|
-
539.648
|
333
|
+
539.648 464.756 Td
|
334
334
|
/F1.0 12 Tf
|
335
335
|
[<416d6f756e74>] TJ
|
336
336
|
ET
|
337
337
|
|
338
338
|
0.000 0.000 0.000 scn
|
339
339
|
1 w
|
340
|
-
36.0
|
341
|
-
36.0
|
340
|
+
36.0 457.628 m
|
341
|
+
36.0 432.756 l
|
342
342
|
S
|
343
|
-
184.6971
|
344
|
-
184.6971
|
343
|
+
184.6971 457.628 m
|
344
|
+
184.6971 432.756 l
|
345
345
|
S
|
346
|
-
36.0
|
347
|
-
184.6971
|
346
|
+
36.0 433.256 m
|
347
|
+
184.6971 433.256 l
|
348
348
|
S
|
349
349
|
0.000 0.000 0.000 SCN
|
350
350
|
1 w
|
351
351
|
|
352
352
|
BT
|
353
|
-
41.0
|
353
|
+
41.0 440.884 Td
|
354
354
|
/F1.0 12 Tf
|
355
355
|
[<50726f67> 10 <72> 10 <616d6d696e67>] TJ
|
356
356
|
ET
|
357
357
|
|
358
358
|
0.000 0.000 0.000 scn
|
359
359
|
1 w
|
360
|
-
184.6971
|
361
|
-
184.6971
|
360
|
+
184.6971 457.628 m
|
361
|
+
184.6971 432.756 l
|
362
362
|
S
|
363
|
-
283.2313
|
364
|
-
283.2313
|
363
|
+
283.2313 457.628 m
|
364
|
+
283.2313 432.756 l
|
365
365
|
S
|
366
|
-
184.6971
|
367
|
-
283.2313
|
366
|
+
184.6971 433.256 m
|
367
|
+
283.2313 433.256 l
|
368
368
|
S
|
369
369
|
0.000 0.000 0.000 SCN
|
370
370
|
1 w
|
371
371
|
|
372
372
|
BT
|
373
|
-
264.8873
|
373
|
+
264.8873 440.884 Td
|
374
374
|
/F1.0 12 Tf
|
375
375
|
[<3130>] TJ
|
376
376
|
ET
|
377
377
|
|
378
378
|
0.000 0.000 0.000 scn
|
379
379
|
1 w
|
380
|
-
283.2313
|
381
|
-
283.2313
|
380
|
+
283.2313 457.628 m
|
381
|
+
283.2313 432.756 l
|
382
382
|
S
|
383
|
-
340.5603
|
384
|
-
340.5603
|
383
|
+
340.5603 457.628 m
|
384
|
+
340.5603 432.756 l
|
385
385
|
S
|
386
|
-
283.2313
|
387
|
-
340.5603
|
386
|
+
283.2313 433.256 m
|
387
|
+
340.5603 433.256 l
|
388
388
|
S
|
389
389
|
0.000 0.000 0.000 SCN
|
390
390
|
1 w
|
391
391
|
|
392
392
|
BT
|
393
|
-
324.8923
|
393
|
+
324.8923 440.884 Td
|
394
394
|
/F1.0 12 Tf
|
395
395
|
[<6872>] TJ
|
396
396
|
ET
|
397
397
|
|
398
398
|
0.000 0.000 0.000 scn
|
399
399
|
1 w
|
400
|
-
340.5603
|
401
|
-
340.5603
|
400
|
+
340.5603 457.628 m
|
401
|
+
340.5603 432.756 l
|
402
402
|
S
|
403
|
-
492.8404
|
404
|
-
492.8404
|
403
|
+
492.8404 457.628 m
|
404
|
+
492.8404 432.756 l
|
405
405
|
S
|
406
|
-
340.5603
|
407
|
-
492.8404
|
406
|
+
340.5603 433.256 m
|
407
|
+
492.8404 433.256 l
|
408
408
|
S
|
409
409
|
0.000 0.000 0.000 SCN
|
410
410
|
1 w
|
411
411
|
|
412
412
|
BT
|
413
|
-
464.4884
|
413
|
+
464.4884 440.884 Td
|
414
414
|
/F1.0 12 Tf
|
415
415
|
[<24203930>] TJ
|
416
416
|
ET
|
417
417
|
|
418
418
|
0.000 0.000 0.000 scn
|
419
419
|
1 w
|
420
|
-
492.8404
|
421
|
-
492.8404
|
420
|
+
492.8404 457.628 m
|
421
|
+
492.8404 432.756 l
|
422
422
|
S
|
423
|
-
586.0
|
424
|
-
586.0
|
423
|
+
586.0 457.628 m
|
424
|
+
586.0 432.756 l
|
425
425
|
S
|
426
|
-
492.8404
|
427
|
-
586.0
|
426
|
+
492.8404 433.256 m
|
427
|
+
586.0 433.256 l
|
428
428
|
S
|
429
429
|
0.000 0.000 0.000 SCN
|
430
430
|
1 w
|
431
431
|
|
432
432
|
BT
|
433
|
-
550.976
|
433
|
+
550.976 440.884 Td
|
434
434
|
/F1.0 12 Tf
|
435
435
|
[<2420393030>] TJ
|
436
436
|
ET
|
@@ -438,18 +438,11 @@ ET
|
|
438
438
|
0.000 0.000 0.000 scn
|
439
439
|
|
440
440
|
BT
|
441
|
-
480.352
|
441
|
+
480.352 381.768 Td
|
442
442
|
/F2.0 16 Tf
|
443
443
|
[<54> 80 <6f74616c3a2020202420393030>] TJ
|
444
444
|
ET
|
445
445
|
|
446
|
-
|
447
|
-
BT
|
448
|
-
552.648 27.384 Td
|
449
|
-
/F1.0 12 Tf
|
450
|
-
[<31202f2031>] TJ
|
451
|
-
ET
|
452
|
-
|
453
446
|
Q
|
454
447
|
|
455
448
|
endstream
|
@@ -487,14 +480,14 @@ xref
|
|
487
480
|
0000000109 00000 n
|
488
481
|
0000000158 00000 n
|
489
482
|
0000000215 00000 n
|
490
|
-
|
491
|
-
|
492
|
-
|
483
|
+
0000005593 00000 n
|
484
|
+
0000005783 00000 n
|
485
|
+
0000005880 00000 n
|
493
486
|
trailer
|
494
487
|
<< /Size 8
|
495
488
|
/Root 2 0 R
|
496
489
|
/Info 1 0 R
|
497
490
|
>>
|
498
491
|
startxref
|
499
|
-
|
492
|
+
5982
|
500
493
|
%%EOF
|