add_image_inside_pdf 0.1.2 → 0.1.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 +3 -3
- data/lib/add_image_inside_pdf/version.rb +1 -1
- 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: d09c3446e3e15d596028dd2685fa6400d2f4953c4f0961a40ed749edcbe9a3f7
|
4
|
+
data.tar.gz: 81e12d73ccd1dc47e101a3a00b910356827e4d9366d587ac6ca8db1f2f155913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29feef9a9e6c821950f60ba8af387d66f021047e82a19201c8b3b2e64f14e6817d6d8cb30c5f1aa787880777fa47f78868e0b542ebc01eff144db948263e2dba
|
7
|
+
data.tar.gz: f14d181328a75f2e0da5289ee286848478fb82b963261cb0a5686d2e07d8e249a6cc1b12a7353ebb76beb6759812dd00c2eb72dc505642455df93367216f6f36
|
data/README.md
CHANGED
@@ -20,13 +20,13 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
# Replace single text with the image
|
23
|
+
# Replace single text with the image [ height should be a number ]
|
24
24
|
AddImageInsidePdf.replace_text_by_image(pdf_file_path, 'string_to_replace', image_local_path, height)
|
25
|
-
AddImageInsidePdf.replace_text_by_image("sample1.pdf", "IMAGE PLACEHOLDER", "image.jpg",
|
25
|
+
AddImageInsidePdf.replace_text_by_image("sample1.pdf", "IMAGE PLACEHOLDER", "image.jpg", 20)
|
26
26
|
|
27
27
|
# Replace all required text with the image
|
28
28
|
AddImageInsidePdf.replace_all_text_by_image(pdf_file_path, ['string1', 'string2'], image_local_path, height)
|
29
|
-
AddImageInsidePdf.replace_all_text_by_image("sample2.pdf", ["image1", "image2", "image3"], "image.jpg",
|
29
|
+
AddImageInsidePdf.replace_all_text_by_image("sample2.pdf", ["image1", "image2", "image3"], "image.jpg", 20)
|
30
30
|
|
31
31
|
# Height parameter is optional so if you will ignore height parameter then it will take 20 automatically
|
32
32
|
AddImageInsidePdf.replace_text_by_image("sample3.pdf", "IMAGE PLACEHOLDER", "image.jpg")
|