Aspose Word Cloud API - NodeJS - python

Does anyone have a working sample in Github or other link that demonstrates the use of Aspose Word Cloud (https://products.aspose.cloud/words) in NodeJS or Python? Case scenario.. you have a MS Word file with content "Hello World". Your demo will upload the .docx file to Aspose Cloud, replace the text content to "How are you, Universe?" and download the .docx file.

https://github.com/aspose-words-cloud contains Cloud SDK for Node.js. Please check postReplaceText Unit Test that explains how to replace document text using Aspose.Words API.
Hope this helps!

Related

Google Drive API reading all content from a file

How do I retrieve all content from a file (e.g., all text from a document) using google drive API programmed python?
I couldn't find much about text extraction, but what I did manage to find was I could only extract specific word's from a document.

Visualizing JSON results from Microsoft Azure Read API

I was wondering whether there's any Python-based tool/script that I can use to visualize the OCR results, in JSON format, that I got after using Microsoft Azure Read API on a PDF document.
I've found this one but it's only available for MS Windows users.
Thank you!
There is a brand new online portal provided by Microsoft to test this service, among others, without developing (but it will use your own Azure resources): https://preview.vision.azure.com/demo/OCR
The advantage is that it will directly list your available resources so you just have to pick the right one, then you test, and there are also some samples.
I tested, it works with a PDF:
Here is the link to kiosk sample on github for computer vision explorer.
Document: https://github.com/microsoft/Cognitive-Samples-IntelligentKiosk/blob/master/Documentation/VisionAPIExplorer.md
Direct download: http://aka.ms/kioskapp

Getting share link of a word doccument downloaded from drive

I am programming a file organizer in python, so i have a bunch of word documents that were downloaded from google drive, i need the sharelink of drive from this documents so my question is if there is a way to get this sharelink from the metadata of the document.

Upload file to a publicly writeable folder on Google Drive - using Python and without going thru the authentication?

The python sample source code goes thru the details of authentication/etc. I am looking for a simple upload to the Google Drive folder that has public writable permissions. (Plan to implement authorization at a later point).
I want to replace the below code to upload file to Google Drive folder instead.
f = open('output.txt')
for line in allLines:
f.write (line)
f.close()
(If it makes any difference, I plan to run this thru Google App Engine).
Thanks.
You can't. All requests to the Drive API need authentication (source: http://developers.google.com/drive/about_auth)
As Wooble said, you cannot do this without authentication. You can use this service + file-upload widget to let your website visitors upload files to your Google Drive folder: https://github.com/cloudwok/file-upload-embed/

editing google doc programmatically

I need simple search-replace in doc file exported from google doc. and than upload it to google doc.
How do I do it in python ?
google doc also support pdf export. If editing pdf is easier , I will try that instead of doc.
I am using google app engine envrionment with python.
I am able to download and upload file easily. Just can't figure out how to edit the file programmatically.
You can use the Google Data APIs Python Client Library.
For example, you can write to a spreadsheet (for example) easily. "Matt Cuts" has a ticket on his blog about that : http://www.mattcutts.com/blog/write-google-spreadsheet-from-python
I think the Google Data API's will only allow you to export and upload documents. To manipulate the document itself, it will probably be easiest to export to OpenDocument format (.odt), and use a Python library for that. Search the Python Package Index for "opendocument" and you will find some. ezodf and lpod seem not too difficult at first sight.

Categories