How to Delete Pages from a Word Document in Node.JS

npm install cloudmersive-convert-api-client --save
"dependencies": {
"cloudmersive-convert-api-client": "^2.4.8"
}
var CloudmersiveConvertApiClient = require('cloudmersive-convert-api-client');
var defaultClient = CloudmersiveConvertApiClient.ApiClient.instance;
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';
var apiInstance = new CloudmersiveConvertApiClient.EditDocumentApi();var reqConfig = new CloudmersiveConvertApiClient.RemoveDocxPagesRequest(); // RemoveDocxPagesRequest | Document input requestvar callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.editDocumentDocxDeletePages(reqConfig, callback);

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Vim — Beginner Basics

My Docker Cheat Sheet With Simple Cases as Back-end Engineer

Activating virtualenv in Python using CMD Windows

Leveraging Query Restructuring and Function-Based Indexes to Improve Performance

Libraries in C

Announcing HMock 0.3

How to Solve “Cannot Expand the Folder” Error in Outlook PST File

How to Solve “Cannot Expand the Folder” Error in Outlook PST File

Database and Tables in Azure Databricks

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
Cloudmersive

Cloudmersive

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

More from Medium

How to Convert an Audio File to .WAV using JavaScript

Upload files with any Cloud Storage Service with just 10 lines of code

Develop Backend Functions using node js

How To Make Your NodeJS Application Secure?