README.md in fillable-pdf-th-1.0.0 vs README.md in fillable-pdf-th-1.0.1

- old
+ new

@@ -12,35 +12,35 @@ * OSX: `/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home` * Ubuntu/CentOS: `/usr/lib/jvm/java-1.8.0-openjdk` Add this line to your application's Gemfile: - gem 'fillable-pdf' + gem 'fillable-pdf-th' And then execute: bundle Or install it yourself as: - gem install fillable-pdf + gem install fillable-pdf-th If you are using this gem in a script, you need to require it manually: ```ruby -require 'fillable-pdf' +require 'fillable-pdf-th' ``` ## Usage First of all, you should open a fillable PDF file: ```ruby -pdf = FillablePDF.new 'input.pdf' +pdf = FillablePDFTH.new 'input.pdf' ``` -An instance of `FillablePDF` has the following methods at its disposal: +An instance of `FillablePDFTH` has the following methods at its disposal: ```ruby fillable-pdf # output example: true pdf.any_fields? @@ -146,14 +146,14 @@ ## Example The following example [example.rb](example/run.rb) and the input file [input.pdf](example/input.pdf) are located in the `test` directory. It uses all of the methods that are described above and generates the output files [output.pdf](example/output.pdf) and [output.flat.pdf](example/output.flat.pdf). ```ruby -require 'fillable-pdf' +require 'fillable-pdf-th' # opening a fillable PDF -pdf = FillablePDF.new('input.pdf') +pdf = FillablePDFTH.new('input.pdf') # total number of fields if pdf.any_fields? puts "The form has a total of #{pdf.num_fields} fields." else @@ -208,10 +208,10 @@ # saving the filled out PDF in another file pdf.save_as('output.pdf') # saving another copy of the filled out PDF in another file and making it non-editable -pdf = FillablePDF.new('output.pdf') +pdf = FillablePDFTH.new('output.pdf') pdf.save_as 'output.flat.pdf', flatten: true ``` The example above produces the following output and also generates the output file [output.pdf](example/output.pdf).