Closed leesmith closed 6 years ago
Hi @leesmith
Sure it's possible. Read the documentation for CombinePDF::PDF#number_pages
and consider:
filename = "foo.pdf"
pdf = CombinePDF.load filename
page_count = pdf.pages.length
number_format = "%s of #{page_count}"
pdf.number_pages number_format: number_format
Kindly, Bo.
That worked perfectly! Thanks @boazsegev 🍻
Is it possible to show "3 of 8" as an optional format to the
number_pages
method? Thanks!