Cloudmersive
There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Have you ever edited a Word document online and realized you need to remove an object (paragraph, table, image, etc.)? If so, you know that it can be a tedious task to attempt manually. By using our Remove Object function, you’ll save significant time in your overall process. This function can be used after our Begin Editing function, which opens up the document for editing.

Image for post
Image for post

Start the Remove Object function by running this command to install the SDK:

npm install cloudmersive-convert-api-client –save

Or, you can add this snippet to your package.json:

  "dependencies": {
"cloudmersive-convert-api-client": "^2.4.8"
}

Next, you can call the function — be sure to have the path of your target object ready for this step. If you don’t have the path, you can obtain it using our Get-Image, Get-Paragraph, Get-Body, etc. …


If you’re editing an online Word document and need to insert a table with relevant data, we’re here to make that a less painful process. This article will detail the process for inserting a table in DOCX using Java, and is a complementary article to the previously posted Begin Editing and Finish Editing tutorials.

Image for post
Image for post

First things first — here is the request configuration:

{
"InputFileBytes": "string",
"InputFileUrl": "string",
"TableToInsert": {
"TableID": "string",
"Path": "string",
"Width": "string",
"WidthType": "string",
"TableRows": [
{
"RowIndex": 0,
"Path": "string",
"RowCells": [
{
"CellIndex": 0,
"Path": "string",
"Paragraphs": [
{
"ParagraphIndex": 0,
"Path": "string",
"ContentRuns": [
{
"RunIndex": 0,
"Path": "string",
"TextItems": [
{
"TextIndex": 0,
"Path": "string",
"TextContent": "string"
}
],
"Bold": true,
"Italic": true,
"Underline": "string",
"FontFamily": "string",
"FontSize": "string"
}
],
"StyleID": "string"
}
],
"CellShadingColor": "string",
"CellShadingFill": "string",
"CellShadingPattern": "string",
"CellWidthMode": "string",
"CellWidth": "string"
}
]
}
],
"TopBorderType": "string",
"TopBorderSize": 0,
"TopBorderSpace": 0,
"TopBorderColor": "string",
"BottomBorderType": "string",
"BottomBorderSize": 0,
"BottomBorderSpace": 0,
"BottomBorderColor": "string",
"LeftBorderType": "string",
"LeftBorderSize": 0,
"LeftBorderSpace": 0,
"LeftBorderColor": "string",
"RightBorderType": "string",
"RightBorderSize": 0,
"RightBorderSpace": 0,
"RightBorderColor": "string",
"CellHorizontalBorderType": "string",
"CellHorizontalBorderSize": 0,
"CellHorizontalBorderSpace": 0,
"CellHorizontalBorderColor": "string",
"CellVerticalBorderType": "string",
"CellVerticalBorderSize": 0,
"CellVerticalBorderSpace": 0,
"CellVerticalBorderColor": "string",
"StartBorderType": "string",
"StartBorderSize": 0,
"StartBorderSpace": 0,
"StartBorderColor": "string",
"EndBorderType": "string",
"EndBorderSize": 0,
"EndBorderSpace": 0,
"EndBorderColor": "string",
"TableIndentationMode": "string",
"TableIndentationWidth": 0
},
"InsertPlacement": "string",
"InsertPath": "string"…

Do you need to find and replace a text string in a Word document? If so, we have an API that will transform the operation into a simple and efficient process. This article will provide step-by-step instructions on how to use this helpful Cloudmersive API in Python.

Image for post
Image for post

Without further ado, let’s get started! First, we need to install the package:

pip install cloudmersive-convert-api-client

Then, we are going to call the function with the following code:

from __future__ import print_function
import time
import cloudmersive_convert_api_client
from cloudmersive_convert_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_convert_api_client.Configuration()
configuration.api_key['Apikey'] …

Simplifying your online editing process is a huge time-saver, and with the right equipment, it can be as easy as 1–2–3. Once you’ve opened a Word document for modifications with our Begin Editing function, the following process can be used to remove objects (paragraphs, tables, images, etc.) from the text.

Image for post
Image for post

Starting off, we are going to install the .NET Framework SDK (.NET Core available as well):

Install-Package Cloudmersive.APIClient.NET.DocumentAndDataConvert -Version 3.2.8

Next, we will call the remove object function:

using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Api;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Client;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Model;
namespace Example
{
public class EditDocumentDocxRemoveObjectExample
{
public void main()
{
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", …

Need to add a new table to your online Word document? We’re here to make inserting your rows and columns of information easier. This helpful process is one of several editing tools you can utilize after opening up editing with our Begin Editing API.

Image for post
Image for post

In order to ensure an accurate output, be sure to input the request configuration:

{
"InputFileBytes": "string",
"InputFileUrl": "string",
"TableToInsert": {
"TableID": "string",
"Path": "string",
"Width": "string",
"WidthType": "string",
"TableRows": [
{
"RowIndex": 0,
"Path": "string",
"RowCells": [
{
"CellIndex": 0,
"Path": "string",
"Paragraphs": [
{
"ParagraphIndex": 0,
"Path": "string",
"ContentRuns": [
{
"RunIndex": 0,
"Path": "string",
"TextItems": [
{
"TextIndex": 0,
"Path": "string",
"TextContent": "string"
}
],
"Bold": true,
"Italic": true,
"Underline": "string",
"FontFamily": "string",
"FontSize": "string"
}
],
"StyleID": "string"
}
],
"CellShadingColor": "string",
"CellShadingFill": "string",
"CellShadingPattern": "string",
"CellWidthMode": "string",
"CellWidth": "string"
}
]
}
],
"TopBorderType": "string",
"TopBorderSize": 0,
"TopBorderSpace": 0,
"TopBorderColor": "string",
"BottomBorderType": "string",
"BottomBorderSize": 0,
"BottomBorderSpace": 0,
"BottomBorderColor": "string",
"LeftBorderType": "string",
"LeftBorderSize": 0,
"LeftBorderSpace": 0,
"LeftBorderColor": "string",
"RightBorderType": "string",
"RightBorderSize": 0,
"RightBorderSpace": 0,
"RightBorderColor": "string",
"CellHorizontalBorderType": "string",
"CellHorizontalBorderSize": 0,
"CellHorizontalBorderSpace": 0,
"CellHorizontalBorderColor": "string",
"CellVerticalBorderType": "string",
"CellVerticalBorderSize": 0,
"CellVerticalBorderSpace": 0,
"CellVerticalBorderColor": "string",
"StartBorderType": "string",
"StartBorderSize": 0,
"StartBorderSpace": 0,
"StartBorderColor": "string",
"EndBorderType": "string",
"EndBorderSize": 0,
"EndBorderSpace": 0,
"EndBorderColor": "string",
"TableIndentationMode": "string",
"TableIndentationWidth": 0
},
"InsertPlacement": "string",
"InsertPath": "string"…


When editing a Word document, finding and replacing text can be a tedious, manual task — but, it doesn’t have to be! In this tutorial we’re going to demonstrate how you can leverage API technology in Java to simplify the search and replace process.

Image for post
Image for post

Starting off, we’re going to employ Maven or Gradle to install our Java SDK. For Maven, add a reference to the repository in pom.xml:

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

Then, add a reference to the dependency:

<dependencies>
<dependency>
<groupId>com.github.Cloudmersive</groupId>
<artifactId>Cloudmersive.APIClient.Java</artifactId>
<version>v3.54</version>
</dependency>
</dependencies>

If you prefer to use Gradle, you will first add the following to your root build.gradle …


Have you finished editing a document online, and need to download the result? The following API is the counterpart to our Begin Editing API and will bring your project full circle. Once all editing operations have been completed, you can call this function to save and download your updated document.

Image for post
Image for post

To get started, you can install the SDK with Maven (Gradle also available) by adding a reference to the repository in pom.xml:

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

Then, add a reference to the dependency:

<dependencies>
<dependency>
<groupId>com.github.Cloudmersive</groupId>
<artifactId>Cloudmersive.APIClient.Java</artifactId>
<version>v3.54</version>
</dependency>
</dependencies>

Now, you can plug in the editing URL to call the Finish Editing function with the following…


Looking for a simple and effective way to edit a document online? If so, you’ve come to the right place — the following API is the initial step in opening up the online editing process. Utilizing this innovative solution, you can create a secure URL to perform various editing operations on any kind of document, such as Word, Excel, or PowerPoint.

Image for post
Image for post

To install the SDK with Maven, add a reference to the repository in pom.xml:

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

Then, add a reference to the dependency:

<dependencies>
<dependency>
<groupId>com.github.Cloudmersive</groupId>
<artifactId>Cloudmersive.APIClient.Java</artifactId>
<version>v3.54</version>
</dependency>
</dependencies>

Now, we can call the begin editing function with the following…


Due to the nature of technology, we know that it’s constantly changing and evolving. However, there’s at least one piece of knowledge that remains consistent — every computer we interact with online has an IP address. Whether the IP address is an actual user or not, is another matter. The following process can give you an answer on the validity of an IP address by comparing it to a list of known high-probability bots/botnets.

Image for post
Image for post

To begin, run this command to install the SDK:

composer require cloudmersive/cloudmersive_validate_api_client

Next, call the function by inputting the IP address into the following code:

Next, call the function by inputting the IP address into the following code:
<?php
require_once(__DIR__ …

Once you’ve finished editing a document online, you will need to download and save the finished product. The following process is the endgame to our Begin Editing function and should be performed after all editing operations have been completed.

Image for post
Image for post

First, run this command to install the SDK:

pip install cloudmersive-convert-api-client

To call the function, input the editing URL generated by the Begin Editing function into the following code:

from __future__ import print_function
import time
import cloudmersive_convert_api_client
from cloudmersive_convert_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_convert_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = cloudmersive_convert_api_client.EditDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration))
req_config = cloudmersive_convert_api_client.FinishEditingRequest() # FinishEditingRequest | Cloudmersive Document URL to complete editing…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store