Export multiple pdfs using DDP - page numbers mid filename

850
2
Jump to solution
12-12-2012 05:15 AM
WillByman
New Contributor
I understand how to export multiple pdf maps from my DDP document and get page numbers added to the end of the file name, but how can I have them inserted part-way through the filename?

For example:
2013AWS_HOps_Map_UTM16_200.pdf - 200 is the page name - this I can do!
vs.
2013AWS_HOps_Map_UTM16_200_00.pdf - this I can't do! 

The file name needs the extra _00 at the end to pass automated control checks.  Is there some kind of placeholder character that can be used?

Will.
0 Kudos
1 Solution

Accepted Solutions
JeffBarrette
Esri Regular Contributor
You could use string concatenation.

a = "2013AWS_HOps_Map_UTM16_" b = "200" c = "_00.pdf" fileName = "{0}{1}{2}".format(a,b,c) print fileName



Jeff

View solution in original post

0 Kudos
2 Replies
CPoynter
Occasional Contributor III
Hi,

Have a look at this thread. It may contain some ideas for you to try.

http://forums.arcgis.com/threads/71291-Data-Driven-Pages-Need-to-prepend-field-to-file-name-when-exp...

Regards,

Craig
0 Kudos
JeffBarrette
Esri Regular Contributor
You could use string concatenation.

a = "2013AWS_HOps_Map_UTM16_" b = "200" c = "_00.pdf" fileName = "{0}{1}{2}".format(a,b,c) print fileName



Jeff
0 Kudos