Module: DerivativeRodeo::Services::PdfSplitter
- Defined in:
- lib/derivative_rodeo/services/pdf_splitter/base.rb,
lib/derivative_rodeo/services/pdf_splitter/jpg_page.rb,
lib/derivative_rodeo/services/pdf_splitter/png_page.rb,
lib/derivative_rodeo/services/pdf_splitter/tiff_page.rb,
lib/derivative_rodeo/services/pdf_splitter/pages_summary.rb
Overview
A service module for splitting PDFs into one image per page.
Defined Under Namespace
Classes: Base, JpgPage, PagesSummary, PngPage, TiffPage
Class Method Summary collapse
-
.call(path, image_extension:, image_file_basename_template:) ⇒ Enumerable, ...
Split the file found at the given :path.
Class Method Details
.call(path, image_extension:, image_file_basename_template:) ⇒ Enumerable, ...
Split the file found at the given :path
27 28 29 30 31 |
# File 'lib/derivative_rodeo/services/pdf_splitter/base.rb', line 27 def self.call(path, image_extension:, image_file_basename_template:) klass_name = "#{image_extension.to_s.classify}_page".classify klass = "DerivativeRodeo::Services::PdfSplitter::#{klass_name}".constantize klass.new(path, image_file_basename_template: image_file_basename_template) end |