Class: PdfEditor::RemovePages
- Defined in:
- lib/pdf_editor/remove_pages.rb
Constant Summary
Constants included from Errors
Errors::ArgumentMissingError, Errors::InvalidInputError, Errors::InvalidPDFError, Errors::PageCountError, Errors::PageOrderInvalidError, Errors::PageRangeError, Errors::ResourcesEmptyError, Errors::TitlePageTitleError
Constants included from Service
Service::InterfaceNotImplementedError, Service::MustPassBlockToAsTempfile
Instance Attribute Summary
Attributes inherited from Shuffle
Instance Method Summary collapse
-
#post_init ⇒ Object
Page order has a unique set of members and is sorted.
Methods inherited from Shuffle
Methods included from PdfRunner
Methods included from Service
Instance Method Details
#post_init ⇒ Object
Page order has a unique set of members and is sorted. This allows pdftk to not burst the document into single pages where possible.
12 13 14 15 |
# File 'lib/pdf_editor/remove_pages.rb', line 12 def post_init super @page_order = @page_order.uniq.sort end |