title: Convert PDF OLE objects back to file (attachments) in Lotus Notes?
body: <p>I have a database with tons of PDF documents embedded as OLE objects in Notes RichText fields. Those are not compatible with XPages, so I need to convert the OLE objects into file(attachment)s.
  How can I do that in an automatic fashion (I know that it must run in a Notes client (must it?) - or is there a POI way to extract them?</p>
  
  <p><strong>Clarification</strong><br />
  I can extract the blob (into memory if I want), but writing it out to disk doesn't create a PDF File since that blob is an OLE container. So I see 2 possible path:</p>
  
  <ul>
  <li>Activate the OLE object and use a method in there</li>
  <li>Read the blob and have something that extracts the PDF part (possibly <a href="http://poi.apache.org/" rel="nofollow">Apache POI</a>) </li>
  </ul>
  
  <p>But I haven't touched any of these approaches and was wondering if some advice could save me hours of tests</p>