Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Fellow Monks,

I seek PowerPoint/Win32/Linux enlightenment (not the X WM...).
Help me, O Wise Ones!

This is a challenge with which I will have to deal in the next couple of months. I'd like to get some ideas and feedback before I get started so that I can plan it well.

Manipulation of MS PowerPoint files from a Linux server.

RH Linux 6.1 connected to Internet via cable modem
Win95 routed to outside using ip_masquerading / the Linux box as a router

The Challenges:

1) Retrieve PowerPoint file from remote site.
- At this point, I am not sure if I will be able to use FTP or not. How do I retrieve a PPT file from a remote site? (I have permission to do so.)

2) Be able to manipulate all text in the PPT file.
- This is for a translation project, so I need to get the text and compare it to a dictionary file, etc. I can do this with plain text files, but does anyone know how to do this with PPT? I assume there must be some way to do it with Win32, perhaps by using the 'Save As HTML' feature and then parsing the HTML? A more direct way would be preferred, of course...

3) Allow remote user to be able to use the script
- I will also want a remote user to be able to call the script, have the script get the file, parse the contents, and display a custom lexicon/dictionary for that PPT file. I have no problem building displaying the custom lexicon. My problem is that the remote user can only see the Linux box, not the Win95 box, due to the ip_masquerading setup. So the script has to either A) run on the Linux box, or B) be called on the Win95 box from the Linux box and return results to the user somehow from there. Since I assume that the program will have to use Win32 to manipulate the PPT file, I assume that something like B) would be in order.

Thanks in advance for any help/input into any area of this challenge!


In reply to PowerPoint, Linux/Win32 by GridMonk

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others meditating upon the Monastery: (6)
    As of 2018-03-22 05:04 GMT
    Find Nodes?
      Voting Booth?
      When I think of a mole I think of:

      Results (273 votes). Check out past polls.