I have three cover pages and I want the map pages to start at 1 under the page thumbnails. I've succesfuly made this happen by opening up the map book in a text editor and adding the following in the metadata section
This says that starting at page index 0, number pages with lowercase roman, and starting at page index 3, number with decimal. This works and I can even do a search and replace with my text editor to get it in the right pace and make it happen. What won't work is doing a simple search and replace using python since it gets fouled up on the binary characters in the pdf. My python code iterates through 256 towns to build separate map books.
OK with that said I would like to add this to my Python code in ArcGIS, but I can't get the syntax right. I am trying to use pdf_keywords attribute which applies to metadata. the here is what I am trying;
One more thing I looked at is getting the properties of a modified working pdf with pdfMiner. This property is listed as follows;
Attachment 29710
Any help would be appreciated.
Code:
PageLabels << /Nums [0 << /S /r >>3 << /S /D >>]>>OK with that said I would like to add this to my Python code in ArcGIS, but I can't get the syntax right. I am trying to use pdf_keywords attribute which applies to metadata. the here is what I am trying;
Code:
#Append cover sheets PDF file
for f in coverSheets:
finalPdf.appendPages(f)
#Append Locus
finalPdf.appendPages(tmpPdf_locus)
#Append pages
finalPdf.appendPages(tmpPdf)
#Update the properties of the final pdf to show thumbnail view
finalPdf.updateDocProperties(pdf_open_view='USE_THUMBS',
pdf_keywords="PageLabels << /Nums [0 << /S /r >>3 << /S /D >>]>>", #NOT WORKING
pdf_layout='SINGLE_PAGE')Attachment 29710
Any help would be appreciated.







