README.md in fillable-pdf-0.9.5.2 vs README.md in fillable-pdf-0.9.6
- old
+ new
@@ -1,10 +1,11 @@
# FillablePDF
[![Gem Version](https://badge.fury.io/rb/fillable-pdf.svg)](https://rubygems.org/gems/fillable-pdf)
-[![Test Status](https://github.com/vkononov/fillable-pdf/actions/workflows/test.yml/badge.svg)](https://github.com/vkononov/fillable-pdf/actions)
+[![Lint Status](https://github.com/vkononov/fillable-pdf/actions/workflows/lint.yml/badge.svg)](https://github.com/vkononov/fillable-pdf/actions/workflows/lint.yml)
+[![Test Status](https://github.com/vkononov/fillable-pdf/actions/workflows/test.yml/badge.svg)](https://github.com/vkononov/fillable-pdf/actions/workflows/test.yml)
FillablePDF is an extremely simple and lightweight utility that bridges iText and Ruby in order to fill out fillable PDF forms or extract field values from previously filled out PDF forms.
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png)](https://www.buymeacoffee.com/vkononov)
@@ -36,11 +37,11 @@
* **Expected Result:**
![Blank](images/checked.png)
-If only of the fields are blank, try setting the `generate_appearance` flag to `true` when calling `set_field` or `set_fields`.
+If all of the fields are blank, try setting the `generate_appearance` flag to `true` when calling `set_field` or `set_fields`.
### Invalid Checkbox Appearances
* **Actual Result:**
@@ -173,21 +174,21 @@
pdf.field_type(:football)
pdf.field_type('football')
# output example: '/Btn'
# list of all field types
- Field::BUTTON ('/Btn')
- Field::CHOICE ('/Ch')
- Field::SIGNATURE ('/Sig')
- Field::TEXT ('/Tx')
+ FillablePDF::Field::BUTTON ('/Btn')
+ FillablePDF::Field::CHOICE ('/Ch')
+ FillablePDF::Field::SIGNATURE ('/Sig')
+ FillablePDF::Field::TEXT ('/Tx')
```
You can check the field type by using:
```ruby
- pdf.field_type(:football) == Field::BUTTON
- pdf.field_type('football') == Field::BUTTON
+ pdf.field_type(:football) == FillablePDF::Field::BUTTON
+ pdf.field_type('football') == FillablePDF::Field::BUTTON
```
* `fields`
*Retrieves a hash of all fields and their values.*
@@ -414,11 +415,11 @@
puts "Values: #{pdf.values}"
puts
# Checking field type
-if pdf.field_type(:rugby) == Field::BUTTON
+if pdf.field_type(:rugby) == FillablePDF::Field::BUTTON
puts "Field 'football' is of type BUTTON"
else
puts "Field 'football' is not of type BUTTON"
end
@@ -474,6 +475,6 @@
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
-However, you must also adhere to the [iText License](https://github.com/itext/itext7) when using this gem in your project.
\ No newline at end of file
+However, you must also adhere to the [iText License](https://github.com/itext/itext7) when using this gem in your project.