<commit_before>TerraGo Publisher for ArcGIS Sample Code
========================================

# Building applications with TerraGo Publisher for ArcGIS
TerraGo Publisher for ArcGIS (Publisher) is an extension of ArcGIS that allows creation of GeoPDF documents. Publisher can be automated and extended using PubPy, allowing for integration of Publisher functionality in ArcGIS geoprocessing toolboxes, ArcGIS for Server applications, etc.

# What is PubPy?
PubPy is [ArcPy](https://arcpy.wordpress.com/ "Esri's ArcPy blog")-compatible Python extensions for TerraGo Publisher for ArcGIS. With PubPy, you can automate the creation of GeoPDF documents as well as integrate Publisher capabilities into ArcGIS for Server implentations. The design of PubPy closely follows that of ArcPy, so if you know ArcPy, PubPy should come easily.

# Samples
This repo contains samples for different applications of PubPy and supporting files for the implementation of ArcGIS for Server applications which leverage Publisher. All samples are open source and available under the Apache 2.0 license. Use and modification is encouraged.

## MXD2GeoPDF: Create a GeoPDF document from an MXD
Creating a GeoPDF from an MXD is as simple as:

    from pubpy.geopdf_export.api import ExportMXDToGeoPDF
    ExportMXDToGeoPDF("my.mxd", "geo.pdf")

from the Python window inside of ArcMap. This theme is expanded upon in the sample [MXD2GeoPDF.py](./MXD2GeoPDF.py) which is a command-line utility for creating GeoPDF documents from extant MXDs. You don't need to open ArcMap to make a GeoPDF map!

## WebMap2GeoPDF: Create GeoPDF document from an ArcGIS web map
<commit_msg>Added PubPy support page README.md<commit_after>TerraGo Publisher for ArcGIS Sample Code
========================================

# Building applications with TerraGo Publisher for ArcGIS
TerraGo Publisher for ArcGIS (Publisher) is an extension of ArcGIS that allows creation of GeoPDF documents. Publisher can be automated and extended using PubPy, allowing for integration of Publisher functionality in ArcGIS geoprocessing toolboxes, ArcGIS for Server applications, etc.

# What is PubPy?
PubPy is [ArcPy](https://arcpy.wordpress.com/ "Esri's ArcPy blog")-compatible Python extensions for TerraGo Publisher for ArcGIS. With PubPy, you can automate the creation of GeoPDF documents as well as integrate Publisher capabilities into ArcGIS for Server implentations. The design of PubPy closely follows that of ArcPy, so if you know ArcPy, PubPy should come easily. More documentation and tutorials can be found on the [PubPy support page](http://www.terragotech.com/geopdf-support/pubpy).

# Samples
This repo contains samples for different applications of PubPy and supporting files for the implementation of ArcGIS for Server applications which leverage Publisher. All samples are open source and available under the Apache 2.0 license. Use and modification is encouraged.

## MXD2GeoPDF: Create a GeoPDF document from an MXD
Creating a GeoPDF from an MXD is as simple as:

    from pubpy.geopdf_export.api import ExportMXDToGeoPDF
    ExportMXDToGeoPDF("my.mxd", "geo.pdf")

from the Python window inside of ArcMap. This theme is expanded upon in the sample [MXD2GeoPDF.py](./MXD2GeoPDF.py) which is a command-line utility for creating GeoPDF documents from extant MXDs. You don't need to open ArcMap to make a GeoPDF map!

## WebMap2GeoPDF: Create GeoPDF document from an ArcGIS web map

{'fraction_non_alphanumeric': 0.0674614713579529, 'fraction_numerical': 0.0034893864495492877, 'mean_word_length': 5.142857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '697019', 'n_tokens_mistral': 953, 'n_tokens_neox': 878, 'n_words': 456}