Jump to content

API/function to read number of words in .doc, .xlsx, .pptx and PDF files


Recommended Posts

Hi, have you heard of any APIs or modules/libraries/functions that would allow me to easily count the total number of words in a bunch of Microsoft Office files uploaded to the server? Word, Excel and PowerPoint.
Plus PDFs, if possible.

No, and I doubt you will find any.   

In the past there were few different paths: 

  • try and use apps like openoffice to open ms documents and use the openoffice api
  • Use windows specific integrations

In recent years, microsoft has introduced "add-ins" primarily for companies looking to integrate their office data into intranets or publish data on a website:  https://learn.microsoft.com/en-us/office/dev/add-ins/overview/office-add-ins

These are avenues I'd look into.  I don't know what scale you are looking at.  I worked for a company some years ago with millions of customer accounts, and that product needed to transform any of a large number of different document formats, into other formats, and this involved a complicated ingestion process that, depending on the type of document, passed it on to a cluster of different servers that would run native apps and perform various processes often running macros and other code native to the specific application, before exporting to other formats.  I suspect you would need something similar.  

And of course pdf is a whole different company and different platform.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.