The task of reading DOCX documents is the task of reading hierarchical data structures within the DOM model. This implies knowing the format of each individual DOCX data element, including all of its possible child elements and attributes.
Our cURL library is a cloud-based solution that will allow you to open DOCX files for reading and writing easily. This distributed approach gives you flexibility in software development using cURL language, as all resource-intensive DOCX document processing will take place on Aspose servers. All you need is to get private keys to access Cloud API in cURL code.
You can iterate over all elements of a DOCX document or you can search for specific elements in a DOM tree. We provide a wide range of cURL functions both for working with the structure of the DOCX file and with the data contained in the document nodes.
The following code example will help you quickly figure out how to load a DOCX file using cURL and perform some actions on it.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input.docx" \
-X PUT \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer ####################" \
-F FileContent="@file://%FileName%"
curl -v "https://api.aspose.cloud/v4.0/words/Input.docx/{nodePath}/paragraphs" \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
-d "{\"Text\":\"Reading and writing to the file in the cloud occurs automatically.\"}"
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input.docx" \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
Download and install the curl utility. Please follow these Instructions to quickly get the necessary security credentials and access our REST API.
There are no special requirements for using this tool.