Edit DOC in cURL SDK

Use cURL command line tool to edit DOC programmatically

When developers modify a document with the given cURL command line tool, what is actually being edited is the Document Object Model (DOM). Thus, almost any changes can be made to the document represented as DOM. With the provided cURL command line tool, developers can easily edit a document: modify text, update tables, add images and so on. Just load your DOC, make the necessary changes programmatically and export the result to the same or any supported save format.

View code snippet

Edit DOC in cURL using REST API

Our cURL library gives developers the ability to modify a DOC document directly by editing its Document Object Model (DOM), which means no additional software needs to be installed.

Edit text in DOC file using cURL

The most popular case to edit a DOC file is text editing. With the given software solution, you can add, modify or delete text using cURL within the document.

Edit table in DOC file using cURL

Another popular DOC editing option is table editing. Our cURL SDK allows you to work with tables and text in table cells.

cURL developers can add or remove table and table cells, as well as add, edit and remove text within them.

Add an image to DOC file using cURL

Besides editing text and tables in DOC, there is another common option: adding images to a document in cURL. cURL developers can also add an image into a DOC file using DOM.

Edit DOC programmatically

Try this powerful cURL SDK and evaluate some options in DOC document editing. Using the following example, load your DOC document and make some changes: add text, add a table and a table cell with text or insert an image into the DOC document:

Upload a document you want to modify
Run code
Upload an image you want insert
Select the target format from the list
curl -v "https://api.aspose.cloud/v4.0/words/online/post/{nodePath}/paragraphs" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@Input.doc"

curl -v "https://api.aspose.cloud/v4.0/words/convert?format=doc" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@EditText.docx"
curl -v "https://api.aspose.cloud/v4.0/words/online/post/tables" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@Input.doc"

curl -v "https://api.aspose.cloud/v4.0/words/convert?format=doc" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@EditTable.docx"
curl -v "https://api.aspose.cloud/v4.0/words/online/post/sections/0/drawingObjects" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@Input1.doc" \
     -F ImageFile="@Input2.doc"
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer ####################" \

curl -v "https://api.aspose.cloud/v4.0/words/convert?format=doc" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@EditImage.docx"
Run code
  
Copy cURL code to the clipboard

How to Edit DOC using cURL

  1. Install cURL
  2. Get your app keys to use Aspose.Words Cloud for cURL
  3. Pass the Bearer token in the Authorization header
  4. Load DOC to edit using cURL
  5. Insert content at the beginning of DOC
  6. Download the result document from the cloud storage

cURL library to use DOC editing

Download and install the curl utility. Please follow these Instructions to quickly get the necessary security credentials and access our REST API.

System Requirements

There are no special requirements for using this tool.

Other supported file formats

You can perform edit operation for other file formats:

5%

Subscribe to Aspose Product Updates

Get monthly newsletters and offers directly delivered to your mailbox.

© Aspose Pty Ltd 2001-2024. All Rights Reserved.