hexapdf-extras 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hexapdf/extras/layout/swiss_qr_bill.rb +0 -27
- data/lib/hexapdf/extras/version.rb +1 -1
- data/lib/hexapdf/extras.rb +27 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e7fe626cf7fd851cd203b739c69bdd193b5debffcd129c656d59b51c2d326ad
|
4
|
+
data.tar.gz: 588a1a744477c437035ca66fd187f4c3563b135946efb8a21d5f73e77f15d238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb195eef642905d2797b96c545f63eaee7edff117982e16e8c3965d05c9abdf537331d35cfa09df6d9aebac3d03e4a28dbb921714bc3a4968984789f2f4548ea
|
7
|
+
data.tar.gz: 8682207937162bef5c86ca5f0f061dbb25469b989e65fa51dc4fbe7f3bc75739cc382911efee4c954e30a14650322bd870aa308e56436a1e18a665e0f4174a9d
|
@@ -14,33 +14,6 @@ end
|
|
14
14
|
|
15
15
|
using HexaPDF::Extras::Layout::NumericMeasurementHelper
|
16
16
|
|
17
|
-
# These values comes from the "Style Guide QR-bill", available at
|
18
|
-
# https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/style-guide-qr-bill-en.pdf
|
19
|
-
font = '/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf'
|
20
|
-
font_bold = '/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf'
|
21
|
-
HexaPDF::DefaultDocumentConfiguration['layout.swiss_qr_bill'] = {
|
22
|
-
'section.heading.font' => font_bold,
|
23
|
-
'section.heading.font_size' => 11,
|
24
|
-
'payment.heading.font' => font_bold,
|
25
|
-
'payment.heading.font_size' => 8,
|
26
|
-
'payment.heading.line_height' => 11,
|
27
|
-
'payment.value.font' => font,
|
28
|
-
'payment.value.font_size' => 10,
|
29
|
-
'payment.value.line_height' => 11,
|
30
|
-
'receipt.heading.font' => font_bold,
|
31
|
-
'receipt.heading.font_size' => 6,
|
32
|
-
'receipt.heading.line_height' => 9,
|
33
|
-
'receipt.value.font' => font,
|
34
|
-
'receipt.value.font_size' => 8,
|
35
|
-
'receipt.value.line_height' => 9,
|
36
|
-
'alternative_procedures.heading.font' => font_bold,
|
37
|
-
'alternative_procedures.heading.font_size' => 7,
|
38
|
-
'alternative_procedures.heading.line_height' => 8,
|
39
|
-
'alternative_procedures.value.font' => font,
|
40
|
-
'alternative_procedures.value.font_size' => 7,
|
41
|
-
'alternative_procedures.value.line_height' => 8,
|
42
|
-
}
|
43
|
-
|
44
17
|
module HexaPDF
|
45
18
|
module Extras
|
46
19
|
module Layout
|
data/lib/hexapdf/extras.rb
CHANGED
@@ -17,3 +17,30 @@ HexaPDF::DefaultDocumentConfiguration['layout.boxes.map'][:qrcode] =
|
|
17
17
|
|
18
18
|
HexaPDF::DefaultDocumentConfiguration['layout.boxes.map'][:swiss_qr_bill] =
|
19
19
|
'HexaPDF::Extras::Layout::SwissQRBill'
|
20
|
+
|
21
|
+
# These values comes from the "Style Guide QR-bill", available at
|
22
|
+
# https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/style-guide-qr-bill-en.pdf
|
23
|
+
font = '/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf'
|
24
|
+
font_bold = '/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf'
|
25
|
+
HexaPDF::DefaultDocumentConfiguration['layout.swiss_qr_bill'] = {
|
26
|
+
'section.heading.font' => font_bold,
|
27
|
+
'section.heading.font_size' => 11,
|
28
|
+
'payment.heading.font' => font_bold,
|
29
|
+
'payment.heading.font_size' => 8,
|
30
|
+
'payment.heading.line_height' => 11,
|
31
|
+
'payment.value.font' => font,
|
32
|
+
'payment.value.font_size' => 10,
|
33
|
+
'payment.value.line_height' => 11,
|
34
|
+
'receipt.heading.font' => font_bold,
|
35
|
+
'receipt.heading.font_size' => 6,
|
36
|
+
'receipt.heading.line_height' => 9,
|
37
|
+
'receipt.value.font' => font,
|
38
|
+
'receipt.value.font_size' => 8,
|
39
|
+
'receipt.value.line_height' => 9,
|
40
|
+
'alternative_procedures.heading.font' => font_bold,
|
41
|
+
'alternative_procedures.heading.font_size' => 7,
|
42
|
+
'alternative_procedures.heading.line_height' => 8,
|
43
|
+
'alternative_procedures.value.font' => font,
|
44
|
+
'alternative_procedures.value.font_size' => 7,
|
45
|
+
'alternative_procedures.value.line_height' => 8,
|
46
|
+
}
|