Nambahake tandha banyu menyang Word utawa mbusak tandha banyu sing sadurunge ditambahake nggunakake cURL

Gunakake alat baris perintah cURL kanggo nambahake gambar utawa tandha banyu teks ing Word dokumen, uga mbusak tandha banyu sing wis ditambahake sajrone sawetara detik.

Nglindhungi Word dokumen sampeyan saka panyebaran sing ora sah lan tambahake tandha banyu kanthi online. Kanggo nindakake iki, mung mbukak Word format dokumen lan tambahake tandha banyu teks utawa gambar nggunakake alat baris perintah cURL sing kuat. Banjur simpen dokumen sing diwenehi tandha banyu ing format sing trep kayata DOC, DOCX, PDF, HTML, RTF, XPS lan liya-liyane. Sampeyan uga bisa mbusak tandha banyu saka Word dokumen supaya luwih gampang diproses kajaba nglanggar hak sapa wae.

Ndeleng potongan kode

Word - nambah watermark ing cURL

Kanthi API cURL iki, pangembang bisa nambah tandha banyu menyang Word online. Mung nggawe watermark nggunakake teks utawa gambar banjur lebokake watermark menyang Word dokumen ing cURL.

Cathetan: ora perlu nginstal aplikasi utawa perpustakaan pihak katelu. Mulane, solusi piranti lunak cURL kita gampang banget digunakake.

Mbusak tandha banyu saka Word - cURL

SDK cURL sing diwenehake uga mbiyantu mbusak tandha banyu saka Word. Mbusak tandha banyu ing Word tegese sampeyan bisa mbukak Word dokumen sing dipengini kanthi prangko teks utawa gambar, mbusak tandha banyu iki saka Word nggunakake cURL, banjur simpen file output ing format sing trep - DOC, DOCX, PDF, JPEG, PNG, TIFF lan liya-liyane.

Nggarap watermark ing Word

Kanggo ngevaluasi carane nambah utawa mbusak tandha banyu ing Word nganggo API cURL, muat Word lan tandha banyu minangka gambar utawa teks. Banjur pilih format file ekspor sing trep - DOC, DOCX, PDF, HTML, RTF, XPS lan liya-liyane.

Gunakake conto ing ngisor iki kanggo ndeleng cara kerjane:

Nambahake tandha banyu teks utawa gambar menyang DOCX utawa mbusak tandha banyu saka DOCX nggunakake cURL
File kudu nambah watermarks
Kode roto
Unggah gambar sing pengin dilebokake
Pilih format target saka dhaptar
curl -v "https://api.aspose.cloud/v4.0/words/online/post/watermarks/insert" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@Input1.docx" \
     -F WatermarkData="{ \"Image\": { \"Reference\": \"2b4ecf13-d42e-4e9c-a7cd-9dbf39d8593c\", \"Source\": \"Request\" } }"
     -F 2b4ecf13-d42e-4e9c-a7cd-9dbf39d8593c="@Input2.jpg"

curl -v "https://api.aspose.cloud/v4.0/words/convert?format=docx" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@document"
curl -v "https://api.aspose.cloud/v4.0/words/online/post/watermarks/insert" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F Document="@Input.docx"
     -F WatermarkData="{ \"Layout\": \"Diagonal\", \"Text\": \"This is the watermark text\" }"

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

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

Carane mbusak watermark ing Word nggunakake cURL

  1. Instal cURL
  2. Entuk kunci aplikasi sampeyan nggunakake Aspose.Words Cloud for cURL
  3. Pass token Bearer ing header Wewenang
  4. Muat Word dokumen sing pengin dibusak saka watermark
  5. Nggawe panjalukan kanggo mbusak watermark
  6. Simpen asil menyang format file sing trep

Pustaka cURL kanggo nggunakake tandha banyu ing DOCX

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 nambah watermark menyang dokumen ing format 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.