Module: PdfMatcher
- Defined in:
- lib/pdf_matcher.rb,
lib/pdf_matcher/matcher.rb,
lib/pdf_matcher/version.rb,
lib/pdf_matcher/diff_pdf.rb,
lib/pdf_matcher/pdf_file.rb,
lib/pdf_matcher/match_result.rb
Defined Under Namespace
Modules: PdfFile
Classes: Config, DiffPdf, MatchResult, Matcher
Constant Summary
collapse
- VERSION =
'2.2.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
17
18
19
|
# File 'lib/pdf_matcher.rb', line 17
def self.config
@config ||= Config.new(nil)
end
|
.match(pdf1, pdf2, output_diff: nil, diff_pdf_opts: nil) ⇒ Object
25
26
27
|
# File 'lib/pdf_matcher.rb', line 25
def self.match(pdf1, pdf2, output_diff: nil, diff_pdf_opts: nil)
Matcher.new(pdf1, pdf2, output_diff: output_diff, diff_pdf_opts: diff_pdf_opts).match
end
|
.match?(pdf1, pdf2, output_diff: nil, diff_pdf_opts: nil) ⇒ Boolean
21
22
23
|
# File 'lib/pdf_matcher.rb', line 21
def self.match?(pdf1, pdf2, output_diff: nil, diff_pdf_opts: nil)
match(pdf1, pdf2, output_diff: output_diff, diff_pdf_opts: diff_pdf_opts).matched?
end
|