<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic adding metadata with ArcPy using export does not appear to work in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/adding-metadata-with-arcpy-using-export-does-not/m-p/1695880#M102763</link>
    <description>&lt;P&gt;Oregon Counties are required to produce PDF's of property taxmaps.&amp;nbsp; We use a tool/python script to produce these pdfs and now must meet&amp;nbsp;CAG 2.1 Level AA accessibility requirements.&amp;nbsp; Using ArcPro 3.6.2, when I use the export tool from the Share Ribbon and add accessibility properties I can create a document that meets accessibility&amp;nbsp; requirements when tested with AdobeAcrobatPro (has PDF metadata).&amp;nbsp; But, when I use python as called from a tool and set the document metadata within the python script&amp;nbsp; it does not give me an error but does not&amp;nbsp; add the metadata to the document.&lt;/P&gt;&lt;P&gt;pdf.title = "Accessor Map" # The accessibility title&lt;BR /&gt;pdf.author = "Klamath County GIS"&lt;BR /&gt;pdf.subject = "Asessor Map"&lt;BR /&gt;pdf.keywords = "Assessor, Klamath, Map, 2026, Taxlots"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, it appears that other properties such as&amp;nbsp; pdf.includeAccessibilityTags = True work.&amp;nbsp; &lt;STRONG&gt;Am I doing something wrong or is this not available at this time????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Our work around has been to use the pypdf library&amp;nbsp; to meet this requirement as follows (abbreviated code as a function - it works) :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;def updatePDFDOC(PDFDoc,MapToPrint):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; arcpy.AddMessage("pdatePDFDOC")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reader = PdfReader(PDFDoc)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writer = PdfWriter(clone_from=reader)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writer.root_object.update({NameObject("/Lang"): TextStringObject("en-US")})&lt;BR /&gt;&amp;nbsp; &amp;nbsp; title = 'Assessor Map ' + MapToPrint&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writer.add_metadata({"/Title": title,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Author": "Klamath County Assessor's Office",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Subject": "Assessment and Taxation",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Keywords": "Klamath County; Assessor's Office; Property Taxes",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Lang": "en-US",})&lt;BR /&gt;&lt;BR /&gt;writer.write(PDFDoc)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would rather use the ESRI tools to get this done.&amp;nbsp; But don't want to waste a lot of time if this capability&amp;nbsp; is not available.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2026 17:37:43 GMT</pubDate>
    <dc:creator>DeanAnderson2</dc:creator>
    <dc:date>2026-04-13T17:37:43Z</dc:date>
    <item>
      <title>adding metadata with ArcPy using export does not appear to work</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/adding-metadata-with-arcpy-using-export-does-not/m-p/1695880#M102763</link>
      <description>&lt;P&gt;Oregon Counties are required to produce PDF's of property taxmaps.&amp;nbsp; We use a tool/python script to produce these pdfs and now must meet&amp;nbsp;CAG 2.1 Level AA accessibility requirements.&amp;nbsp; Using ArcPro 3.6.2, when I use the export tool from the Share Ribbon and add accessibility properties I can create a document that meets accessibility&amp;nbsp; requirements when tested with AdobeAcrobatPro (has PDF metadata).&amp;nbsp; But, when I use python as called from a tool and set the document metadata within the python script&amp;nbsp; it does not give me an error but does not&amp;nbsp; add the metadata to the document.&lt;/P&gt;&lt;P&gt;pdf.title = "Accessor Map" # The accessibility title&lt;BR /&gt;pdf.author = "Klamath County GIS"&lt;BR /&gt;pdf.subject = "Asessor Map"&lt;BR /&gt;pdf.keywords = "Assessor, Klamath, Map, 2026, Taxlots"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, it appears that other properties such as&amp;nbsp; pdf.includeAccessibilityTags = True work.&amp;nbsp; &lt;STRONG&gt;Am I doing something wrong or is this not available at this time????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Our work around has been to use the pypdf library&amp;nbsp; to meet this requirement as follows (abbreviated code as a function - it works) :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;def updatePDFDOC(PDFDoc,MapToPrint):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; arcpy.AddMessage("pdatePDFDOC")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reader = PdfReader(PDFDoc)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writer = PdfWriter(clone_from=reader)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writer.root_object.update({NameObject("/Lang"): TextStringObject("en-US")})&lt;BR /&gt;&amp;nbsp; &amp;nbsp; title = 'Assessor Map ' + MapToPrint&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writer.add_metadata({"/Title": title,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Author": "Klamath County Assessor's Office",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Subject": "Assessment and Taxation",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Keywords": "Klamath County; Assessor's Office; Property Taxes",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"/Lang": "en-US",})&lt;BR /&gt;&lt;BR /&gt;writer.write(PDFDoc)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would rather use the ESRI tools to get this done.&amp;nbsp; But don't want to waste a lot of time if this capability&amp;nbsp; is not available.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 17:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/adding-metadata-with-arcpy-using-export-does-not/m-p/1695880#M102763</guid>
      <dc:creator>DeanAnderson2</dc:creator>
      <dc:date>2026-04-13T17:37:43Z</dc:date>
    </item>
  </channel>
</rss>

