PDF, the Portable Document Format, is a popular graphics file format that supports vector and raster graphics in a single compact file. A single PDF file can contain multiple pages, and the format has the ability to preserve layers and graphic feature attributes and map georeference information. PDF is one of the most widely used ways of publishing geographic information to non-GIS users and is an important archival and hard-copy press exchange format.
Because a large majority of computers already have Adobe Reader or Adobe Acrobat software installed, you should consider exporting your map to PDF when you need to reliably exchange a map with a non-GIS user. PDF files are especially useful when you want to provide a document that can output to a printer in addition to being viewed on-screen. Because PDF allows preservation of vector graphics and embedded fonts, it will provide the best opportunity for a high-quality print by the end map user.
You should also use PDF when you wish to provide a simple, self-contained interactive map viewing experience. PDF documents store all map information in a single file, making it is a useful medium for sharing content with those who work in locations where a network connection is not available. Exporting map layer information and georeference information can geoenable the PDF document, allowing the user to interact with and search through the map content.
ArcMap's Export Map dialog box allows you to control the settings used to create the PDF file. For most cases, using the default values should produce a usable file, but you can set export options to create output for specific requirements.
This specifies the output resolution or (dots per inch) in the output image. Higher values usually produce sharper images. However, this can also substantially increase the file size and processing time. For PDF, the default resolution is 300 dpi.
The Output Image Quality control is intended to resample raster data prior to printing or exporting the map. For maps with raster data or transparent vector layers, adjusting this value can significantly reduce the amount of data being passed through the output pipeline and will reduce export times and file sizes.
Destination Colorspace controls the color space in which colors are specified in the output file. RGB is the default and is appropriate for on-screen viewing and printing to inkjet or laser printers. CMYK mode is intended for commerical print production, when your output will be sent to a print shop. If you want to compress the vector portions of your PDF to produce a smaller output file, check the Compress Vector Graphics option. There is a separate Image Compression option for compressing raster portions of the PDF. Adaptive mode produces the smallest file size but may produce compression artifacts on the export image. For lossless compression of raster images in the PDF, use Deflate mode. The Embed All Document Fonts option allows you to include the fonts that are used within the document itself. This allows the PDF to look the same when opened on any platform that supports PDF viewing, even if the platform does not have the document's fonts installed. This is the default and should usually be used.
Note:
Some fonts do not support embedding and will not embed even when this option is checked.PDF includes support for exporting Data Driven Pages to PDF format. When Data Driven Pages are enabled in your map document and ArcMap is set to layout view, the Pages tab provides access to the options that control Data Driven Pages export.
The arcpy.mapping module is a Python scripting library that allows you to open and manipulate map documents and layers. It can also modify PDF documents. Using the arcpy.mapping PDFDocument class, you can merge PDF pages together, password protect PDF files, and attach other files to PDF documents.
pdfDoc = arcpy.mapping.PDFDocumentOpen(r"C:\Project.pdf") pdfDoc.updateDocSecurity("secret", "secret") pdfDoc.saveAndClose() del pdfDoc
PDF files exported from ArcMap can include advanced functionality in addition to their usage as a graphic interchange format. PDF files can contain layers from the ArcMap table of contents so that users can enable and disable the visibility of layers and graphic elements on the PDF page. PDF files exported from ArcMap can also include attributes for GIS features as well as georeference information for each map data frame. Anyone viewing the PDF document in Adobe Reader or Adobe Acrobat can use the Acrobat Analysis tools to inspect feature attributes and look up and identify geographic coordinates. The following sections contain information about these advanced features and their usage.
ArcMap PDF exports can contain layers whose visibility can be controlled in PDF viewing applications. To enable layers in a PDF export, select the Export PDF Layers Only option or the Export PDF Layers and Feature Attributes option under the Layers and Attributes drop-down menu on the Export Map dialog box's Advanced tab:
The Export PDF Layers Only option will add PDF layers without adding attributes.Most ArcMap table of contents layers, data frames, and layout elements will be included as separate layers in the export. However, certain types of symbology may affect the presentation of a layer in the finished PDF. Refer to the graphic below for an outline of the PDF layer creation from within ArcMap.
and the PDF Layers (left)." /> |
Below are some facts and tips concerning PDF layer creation from ArcMap:
PDF files exported from ArcGIS can include feature attributes from the feature's attribute table using functionality built in to Adobe Acrobat and Adobe Reader. This option can be enabled by choosing the Export PDF Layers and Feature Attributes option from the Advanced tab of the Export Map dialog box:
The Export PDF Layers and Attributes option enables both PDF layers and the export of ttributes based on options chosen in the Fields tab of the Layer Properties dialog box.
The visibility of fields in the feature's attribute table determines what fields will be exported in the resulting PDF. To turn these fields on and off, go to the Fields tab of the Layer Properties dialog box. The check boxes determine the visibility of the given field. Check or uncheck the check boxes to expose more or fewer attributes in the resultant PDF.
The Fields tab on the Layer Properties dialog box showing visibility of attribute table fieldsAlternatively, the visibility of the fields can be controlled in the Table window by right-clicking the column heading and choosing the Turn Field Off option:
The Turn Field Off shortcut menu option also toggles field visibility, disabling its export in the PDF attributes.
Caution:
Exporting attributes to PDF can result in performance problems in compatible PDF viewers. If possible, limit exported fields to one layer per map. To suppress field export, turn off field visibility in the Layer Properties dialog box.
People using your PDF can access these attributes in Adobe Acrobat and Adobe Reader using the Object Data tool (see Tools > Object Data , or enable the Model Tree view in either of those programs).
Adobe Acrobat and Adobe Reader versions 9 and later allow viewing of map coordinates and georeference information encoded inside the PDF file. Exporting a map with the Export Map Georeference Information option enabled will record each data frame's georeference information inside the PDF. When the georeferenced PDF is opened in a compatible viewer, such as Adobe Reader 9, the user can access geospatial functions such as coordinate readout and finding x,y.
The Export Map Georeference Information check box on the Advanced tab of the Export Map dialog boxNote:
The geospatial functionality available to Adobe Acrobat and Adobe Reader users depends on which Acrobat 9 product they are using. When a PDF exported from ArcMap is used directly in the free Adobe Reader 9 product, tools for coordinate readout and find x,y will be available. If that same PDF is opened in any of the pay-for Acrobat products, an extended geospatial toolset is provided, including coordinate readout, find x,y, geodesic measurement, and georeferenced markup. This same extended toolset can be accessed in the free Adobe Reader if the PDF has first been resaved in Adobe Acrobat 9 Pro or Pro Extended using the Extend Features in Adobe Reader command in those programs. Enabling PDF for extended Adobe Reader features is only available in software from Adobe Systems, such as Adobe Acrobat Pro, and cannot be performed in ArcMap.
The georeference information saved inside the PDF file contains the following for each data frame on the page layout: corner coordinates of the data frame's boundary, both in latitude and longitude and in PDF page units (points), and a string describing the data frame's coordinate system as defined in the data frame properties coordinate system options. This information is saved into the internal stream of the PDF file for use by Adobe Reader or Adobe Acrobat, and the raw data is not user viewable. When a map is exported from data view instead of layout view, the PDF will contain a single map image along with its corresponding georeference information.
PDF files containing georeference information are still compatible with earlier (pre-Acrobat 9) versions of Adobe Acrobat and Adobe Reader. Files will open without problems, but the coordinate-related functions will not be available. Exporting to PDF with the Georeference option enabled does not negatively impact performance. Export takes the same amount of time with the option on or off. With these facts in mind, you may wish to keep the option enabled for all map exports. However, if you desire to not have the georeference information included in the PDF file, uncheck the Export Map Georeference Information check box to suppress export of georeference information.