globalmapper.ExportPDF

globalmapper.ExportPDF(str aFilename, [GM_LayerHandle_t32] aLayerList, GM_Rectangle_t aWorldBounds, GM_ExportOptsPDF_t aExportOpts) GM_Error_t32[source]

Exports one or more layers to a new Geo-enabled PDF file. If None is passed for the layer list handle, all loaded layers will be saved to the new package file, otherwise only the specified layer(s) will be exported. If None is provided for the world bounds, the entirety of each layer will be exported, otherwise only data within the specified bounds will be exported.

Note

You must purchase a license to the QuickPDF library from http://www.quickpdflibrary.com/ and use the SetQuickPDFUnlockCode function to provide your registration key prior to calling this function.

Parameters
  • aFilename (str) – Name of new file to create

  • aLayerList ([GM_LayerHandle_t32]) – List of layers to export or None for all

  • aWorldBounds (GM_Rectangle_t) – World bounds to export or None for all

  • aExportOpts (GM_ExportOptsPDF_t) – PDF export options (None for default)

Returns

Error Code

Return type

GM_Error_t32