<?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 How to convert Word.doc's to PDF's using Python??? in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500526#M5361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have Word.docs that I use to populate current date, then convert to pdf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm automating map packs using arcpy and want to include these pdf's in my pack without first having to convert Word.docs manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I accomplish this with Python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I need is the coversion piece that will populate current date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End product is a pdf with set text but has current date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance, Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 18:32:40 GMT</pubDate>
    <dc:creator>AaronPaul</dc:creator>
    <dc:date>2010-11-16T18:32:40Z</dc:date>
    <item>
      <title>How to convert Word.doc's to PDF's using Python???</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500526#M5361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have Word.docs that I use to populate current date, then convert to pdf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm automating map packs using arcpy and want to include these pdf's in my pack without first having to convert Word.docs manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I accomplish this with Python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I need is the coversion piece that will populate current date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End product is a pdf with set text but has current date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance, Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 18:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500526#M5361</guid>
      <dc:creator>AaronPaul</dc:creator>
      <dc:date>2010-11-16T18:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Word.doc's to PDF's using Python???</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500527#M5362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are several strategies you could take here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Set up a PDF printer as the default printer on the machine, turn off the print dialog, and use the command line to call MS word with the /P flag to print your word document out to a temporary location&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Have a pre-prepared PDF (potentially authored with Word) with blank areas where the dynamic parts go and use &lt;A href="http://www.reportlab.com/software/opensource/"&gt;ReportLab&lt;/A&gt; to place the additional text&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Put it into &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Working_with_dynamic_text/00s900000013000000/"&gt;Dynamic Text&lt;/A&gt; on an MXD layout (without data frames) and export that MXD to a PDF page each time for integrating into your final PDF&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;3 is the easiest.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 22:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500527#M5362</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-11-16T22:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Word.doc's to PDF's using Python???</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500528#M5363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent to have choices, thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using suggestion 3 and agree it may be the easiest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just didn't know if there was something simpler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You've confirmed that my practices are solid &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you once again and enjoy, Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 22:45:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500528#M5363</guid>
      <dc:creator>AaronPaul</dc:creator>
      <dc:date>2010-11-16T22:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Word.doc's to PDF's using Python???</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500529#M5364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try to convert &lt;/SPAN&gt;&lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/word-convert-pdf/"&gt;Word to pdf&lt;/A&gt;&lt;SPAN&gt; in prorgammaticaly by call the related methods, and the Word can be in the suffic of doc and docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Public Sub WordConvertToPdf()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If True Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WordInputFile = ("C:/1.docx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImageOutputFile = ImageFormat.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doc.Save(@"C:/1.docx", 1, @"C:/1.pdf")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 06:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-convert-word-doc-s-to-pdf-s-using-python/m-p/500529#M5364</guid>
      <dc:creator>HILLARYHALL</dc:creator>
      <dc:date>2014-04-02T06:48:38Z</dc:date>
    </item>
  </channel>
</rss>

