Many developers have asked how to take advantage of the enhanced PDF export capabilities in 9.3 and the “Map Export Patch to Support Acrobat 9 PDF” in their code, so we’ve prepared a short primer on this new functionality.
All of these new capabilities are contained in a new interface, IExportPDF2. Unfortunately the web help for the SDK was erroneously published based on an older version of the interface. We are in the process of updating the web help, but in the mean time here is the skinny on the new interface’s two properties:
This one is pretty self-explanatory. There are three possible values for this parameter, that control what content is exported into the resultant PDF:
|esriExportPDFLayerOptionsNone||No Layers and Feature Attributes.|
|esriExportPDFLayerOptionsLayersOnly||Layers Only. This is the default value.|
|esriExportPDFLayerOptionsLayersAndFeatureAttributes||Layers and Feature Attributes.|
Be careful when using the option “LayersAndFeatureAttributes”. All of the visible attribute fields in each feature class in the ArcMap document will be exported to the PDF.
Exporting attributes to PDF can lead to performance problems when viewing the file in supported PDF readers. If possible, limit exported fields to one layer per map. To suppress field export, turn off field visibility in the Fields tab of the Layer Properties dialog.
Recent versions of Adobe Acrobat and Adobe reader allow for encoding of map coordinate system and georeference information inside the PDF file. Exporting a map with the ExportMeasureInfo property set to True will record map georeference information inside the PDF. If you have installed the 9.3 PDF patch, ExportMeasureInfo will be True by default. This means with any patched install of ArcGIS, even your existing PDF export code will include the new georeference info in exported PDF files. Set this property to False to suppress the inclusion of georeference info in your PDF.
For more detailed information on the functionality controlled by these properties, take a look at the desktop help for Advanced PDF Features. Here’s a link to the web help version of this topic: http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Advanced_PDF_features
Let us know what you think of this new functionality!