add_image_inside_pdf 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71786a1753343d602d3191587317bc6e956666defa5d369d7aebbadfc6b2750a
4
- data.tar.gz: ea69c3ebe2e37876db436b203e895b50f6031c4709c4feef50089c47999f9c88
3
+ metadata.gz: d09c3446e3e15d596028dd2685fa6400d2f4953c4f0961a40ed749edcbe9a3f7
4
+ data.tar.gz: 81e12d73ccd1dc47e101a3a00b910356827e4d9366d587ac6ca8db1f2f155913
5
5
  SHA512:
6
- metadata.gz: e1747dd90c1602b0bc7794d2a075fa3417cfdc085c36fab442121f437a41f78b610bb90a1cfdae02a58dd6dd09d67f503a14d70c252001b360335809a2ae3b94
7
- data.tar.gz: aebc0587f33b66192f19472c19959cb00b61a95df22ecf60cb9aee2c487ae249f057f9797759789af94c0b27cfc57ab4c04a5e8fecf827e4feb98c12b3821c27
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", "20")
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", "20")
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")
@@ -1,3 +1,3 @@
1
1
  module AddImageInsidePdf
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: add_image_inside_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashish Prajapati