Sunting teks ing cURL SDK

Gunakake alat baris perintah cURL kanggo nyunting teks kanthi terprogram

Nalika pangembang ngowahi dokumen nganggo alat baris perintah cURL sing diwenehake, sing bener diowahi yaiku Model Obyek Dokumen (DOM). Mangkono, meh kabeh owah-owahan bisa digawe kanggo document dituduhake minangka DOM. Kanthi alat baris perintah cURL sing kasedhiya, pangembang bisa kanthi gampang ngowahi dokumen: ngowahi teks, nganyari tabel, nambah gambar lan liya-liyane. Cukup muat teks sampeyan, gawe owah-owahan sing dibutuhake kanthi program lan ekspor asil menyang format nyimpen sing padha utawa sing didhukung.

Ndeleng potongan kode

Sunting teks ing cURL nggunakake REST API

Pustaka cURL kita menehi pangembang kemampuan kanggo ngowahi teks dokumen kanthi langsung kanthi nyunting Document Object Model (DOM), tegese ora ana piranti lunak tambahan sing kudu diinstal.

Sunting teks ing teks file nggunakake cURL

Kasus sing paling populer kanggo nyunting teks file yaiku nyunting teks. Kanthi solusi piranti lunak sing diwenehake, sampeyan bisa nambah, ngowahi utawa mbusak teks nggunakake cURL ing dokumen kasebut.

Sunting tabel ing teks file nggunakake cURL

Pilihan editing teks liyane sing populer yaiku nyunting tabel. cURL SDK kita ngidini sampeyan nggarap tabel lan teks ing sel tabel.

Pangembang cURL bisa nambah utawa mbusak sel tabel lan tabel, uga nambah, ngowahi lan mbusak teks ing njero.

Tambah gambar menyang teks file nggunakake cURL

Saliyane nyunting teks lan tabel ing teks, ana pilihan umum liyane: nambahake gambar menyang dokumen ing cURL. Pangembang cURL uga bisa nambah gambar menyang teks file nggunakake DOM.

Sunting teks kanthi terprogram

Coba cURL SDK sing kuat iki lan evaluasi sawetara opsi ing panyuntingan teks dokumen. Nggunakake conto ing ngisor iki, muat teks dokumen lan gawe sawetara owah-owahan: nambah teks, nambah tabel lan sel tabel kanthi teks utawa lebokake gambar menyang teks dokumen:

Unggah dokumen sing pengin diowahi
Kode roto
Unggah gambar sing pengin dilebokake
Pilih format target saka dhaptar
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.txt"

curl -v "https://api.aspose.cloud/v4.0/words/convert?format=txt" \
     -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.txt"

curl -v "https://api.aspose.cloud/v4.0/words/convert?format=txt" \
     -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.txt" \
     -F ImageFile="@Input2.txt"
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer ####################" \

curl -v "https://api.aspose.cloud/v4.0/words/convert?format=txt" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@EditImage.docx"
Kode roto
  
Nyalin kode cURL menyang clipboard

Carane Ngowahi teks nggunakake cURL

  1. Instal cURL
  2. Entuk kunci aplikasi sampeyan nggunakake 'Aspose.Words Cloud kanggo cURL'
  3. Pass token Bearer ing header Wewenang
  4. Muat teks kanggo ngowahi nganggo cURL
  5. Lebokake isi ing wiwitan teks
  6. Download dokumen asil saka panyimpenan maya

Pustaka cURL kanggo nggunakake panyuntingan TXT.

Ngundhuh lan nginstal utilitas curl. Tututi Instructions iki supaya cepet entuk kredensial keamanan sing dibutuhake lan ngakses REST API kita.

Requirements Sistem

Ora ana syarat khusus kanggo nggunakake alat iki.

Format file liyane sing didhukung

Sampeyan bisa nindakake operasi suntingan kanggo format file liyane:

5%

Langganan kanggo Aspose Update Product

Entuk buletin saben wulan lan tawaran langsung dikirim menyang kothak layang.

© Aspose Pty Ltd 2001-2024. Kabeh hak dilindhungi undhang-undhang.