Skip to content

Commit

Permalink
Improve README documentation and error messaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
vkononov committed Dec 2, 2021
1 parent a04cc42 commit 3ad19aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ FillablePDF is an extremely simple and lightweight utility that bridges iText an
gem 'spring-watcher-listen'
```

3. Read-only, write-protected or encrypted PDF files are currently not supported.

## Deployment with Heroku

Expand Down
2 changes: 1 addition & 1 deletion lib/fillable-pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def initialize(file_path)
@pdf_form = ITEXT::PdfAcroForm.getAcroForm(@pdf_doc, true)
@form_fields = @pdf_form.getFormFields
rescue StandardError => e
raise "#{e.message} (input file may be corrupt, incompatible, or may not have any forms)"
raise "#{e.message} (Input file may be corrupt, incompatible, read-only, write-protected, encrypted, or may not have any form fields)" # rubocop:disable Layout/LineLength
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fillable-pdf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class FillablePDF
VERSION = '0.9.2'
VERSION = '0.9.3'
end

0 comments on commit 3ad19aa

Please sign in to comment.