ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

Help

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

Export Map Document

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

Exports a map document to either PDF, Production PDF, or a map package.

用法

  • When using MAP_PACKAGE as the export type, all the layers in the TOC must be sourced, and the map document properties must be filled out. For more requirements to export as a map package, see Package Map.

  • The PDF Setting File parameter is only used for exporting to Production PDF. The setting files installed can be found at <Installion Location>\ArcGIS\Desktop10.3.1\Styles.

语法

ExportMapDocument_defense (Input_Map_Document, Export_Type, {PDF_Setting_File})
参数说明数据类型
Input_Map_Document

The path to the map document.

注:

This needs to be an .mxd file and not a map document object.

ArcMap Document
Export_Type

Defines the type of export.

  • PDF —Exports into a standard PDF file.
  • PRODUCTION_PDF —Exports using a settings file that determines accurate color mappings for the PDF file.
  • MAP_PACKAGE —Exports a .zip file of the data and the MXD.
String
PDF_Setting_File
(可选)

A PDF settings file. The XML files are installed in <Installation path>ArcGIS\\Desktop10.3.1\Styles.

File

代码示例

Export Map Document example (Python window)

The following code sample demonstrates how to execute ExportMapDocument.

from arcpy import defense,CheckOutExtension,CheckInExtension

# Checking out Defense Mapping extension
CheckOutExtension('defense')

# Setting variables used in the tool
mapDocument=r'C:\Testing\V795X16573.mxd'
exportType="PRODUCTION_PDF"
pdfSettingsXML=r'C:\Program Files (x86)\ArcGIS\Desktop10.3\Styles\MGCP_Production_PDF.xml'

# Calling Export Map Document tool
defense.ExportMapDocument(mapDocument,exportType,pdfSettingsXML)

# Checking in Defense Mapping extension
CheckInExtension('defense')

环境

  • 当前工作空间
  • 临时工作空间
  • 范围

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 需要 Defense Mapping
  • ArcGIS Desktop Advanced: 需要 Defense Mapping

相关主题

  • An overview of the Utilities toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2017 Esri. | 隐私政策 | 法律声明