lib/hexapdf/cli/modify.rb in hexapdf-0.10.0 vs lib/hexapdf/cli/modify.rb in hexapdf-0.11.0
- old
+ new
@@ -91,10 +91,10 @@
private
# Arranges the pages of the document as specified with the --pages option.
def arrange_pages(doc)
all_pages = doc.pages.to_a
- new_page_tree = doc.add(Type: :Pages)
+ new_page_tree = doc.add({Type: :Pages})
parse_pages_specification(@pages, all_pages.length).each do |index, rotation|
page = all_pages[index]
page.value.update(page.copy_inherited_values)
if rotation == :none
page.delete(:Rotate)