title: How to read picture/image from word document using Win32::OLE in perl
body: <p>Using Win32::OLE i am able to read tables, paragraphs from word document. But i want to read picture/image from word document, is there any function to get pictures ?</p>
  
  <p>Below is the code for tables and paragraphs reading.</p>
  
  <pre><code>$Word = Win32::OLE-&gt;GetActiveObject('Word.Application') || Win32::OLE-&gt;new('Word.Application');
  $Word-&gt;{'Visible'}     = 0;
  $Word-&gt;{DisplayAlerts} = 0;
  
  my $document = $Word-&gt;Documents-&gt;Open($Req_doc_path);
  
  ### for tables reading
  my $tables = $document-&gt;{'Tables'};
  for my $table (in $tables){
     my $tableText = $table-&gt;ConvertToText({ Separator =&gt; wdSeparateByTabs });
     #print "Table: ", $tableText-&gt;Text(), "\n";
  }
  
  ### for paragraphs reading
  $paragraphs = $document-&gt;paragraphs();
  $enumerate = new Win32::OLE::Enum($paragraphs);
  while(defined($paragraph = $enumerate-&gt;Next()))
  {
  
  }
  </code></pre>
  
  <h3>#</h3>
  
  <p>please help me out to read images/pictures also.
  Thanks in advance.</p>