O'Reilly logo

Programming ArcGIS 10.1 with Python Cookbook by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exporting a map to a PDF file

Rather than sending your map or layout view to a printer, you may want to simply create PDF files that can be shared. Arcpy mapping provides an ExportToPDF() function, which you can use to do this.

Getting ready

PDF is a very popular interchange format designed to be viewable and printable from many different platforms. The arcpy mapping ExportToPDF() function can be used to export data frames or the page layout to PDF format. By default, the ExportToPDF() function exports the page layout, but you can pass in an optional parameter that references a particular data frame, which can be printed instead of the page layout. In this recipe, you will learn how to export the page layout as well as a specific data frame to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required