Closed josegrad closed 4 years ago
Of course.
Here:
require 'combine_pdf'
pages = CombinePDF.load("my_pdf.pdf").pages;
i = 0
pages.each do |page|
pdf = CombinePDF.new
pdf << page
pdf.save("#{i}.pdf")
i+=1
end
Credits and thanks to: https://stackoverflow.com/a/36121589
Is it possible to extract and save each page of a multi-page pdf with combine_pdf?