I've used the arcpy.mapping module for some time now to create mapbooks and other pdf documents, using a combination of Data Driven Pages and Python. I would like to take an existing pdf and save each individual page as separate pdfs.
I have read through the online documentation for PDFDocument
, and while I can see the usefulness of the pageCount
property, I don't see how I can access an individual page. The only reference I see to a page number is when using the insertPages
method to insert a page before an existing page.
I know that using something like pypdf
enables one to iterate over the pages in a pdf and other useful things, but I'd like to know if I can do this using arcpy
before downloading it.
deletePages (page_range)
once either side of the page you are interested in.