title: Indesign Exporting the Page
body: <p>I am trying to export the page of the document. I am facing issues both in exporting the page or even exporting an item of the PAGE of the document</p>
  <p>While exporting a Page of the Document:</p>
  <pre><code>app = win32com.client.Dispatch(&quot;InDesign.Application.CS6&quot;)
  doc = app.Documents(1)
  app.jpegExportPreferences.exportResolution = 150
  page = doc.Pages(1)
  page.Export(1699761735,f'{folder_selected}/test.png')
  </code></pre>
  <pre><code>ERROR
  
  Traceback (most recent call last):
    File &quot;c:\Users\Sofia\Desktop\C.py&quot;, line 85, in &lt;module&gt;
      page.Export(1699761735,f'{folder_selected}/test.png')
    File &quot;C:\Users\Sofia\AppData\Local\Programs\Python\Python39\lib\site-packages\win32com\client\dynamic.py&quot;, line 511, in __getattr__
      raise AttributeError(&quot;%s.%s&quot; % (self._username_, attr))
  AttributeError: &lt;unknown&gt;.Export
  </code></pre>
  <p>While Exporting an Item of the Page:</p>
  <pre><code>app = win32com.client.Dispatch(&quot;InDesign.Application.CS6&quot;)
  doc = app.Documents(1)
  app.jpegExportPreferences.exportResolution = 150
  page = doc.Pages(1)
  items = page.PageItems(1)
  items.Export(1699761735,f'{folder_selected}/test.png')
  </code></pre>
  <p>It works fine, But it exports a single item, I can change the item but I want the whole page to export.</p>
  <p>The Actual Page:</p>
  <p><a href="https://i.stack.imgur.com/TcSNr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TcSNr.png" alt="The Image which should be exported alongside the Page" /></a>
  The results after exporting an Item:</p>
  <p><a href="https://i.stack.imgur.com/zWakO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zWakO.png" alt="AFTER EXPORTING" /></a></p>
  <p>It works fine if I export as PDF. But I want it in JPG or PNG format. Any solutions Please?</p>