Sunday 28 July 2019

arcgis desktop - Adding PDF to backside printing for Data Driven Pages?


Is there an easy way to add a PDF to the backside of each map printed using data driven pages?


I know I could print one sided and then reinsert the printed pages upside down, and print the PDF on the reverse side. However, we may deliver this to our client digitally and would like it to be setup for them.


For example, I have data driven pages set up for 50 parcels. Each map printed will show a single parcel's data. I need a generic PDF to print on the backside of each of these 50 maps.



Answer



To do this I would use ArcPy with Data Driven Pages. There is some sample code in the help document entitled Creating a map book with facing pages which has all the necessary coding patterns but is a bit more complicated than what you want to do.


To create your PDF you just need to use arcpy.mapping to loop through your data driven pages one at a time, and then on each iteration to:




  1. export the current page using exportToPDF and then appendPages

  2. use appendPages again to put a copy of your generic PDF next


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...