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.
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.
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.
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:
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"
Ngundhuh lan nginstal utilitas curl. Tututi Instructions iki supaya cepet entuk kredensial keamanan sing dibutuhake lan ngakses REST API kita.
Ora ana syarat khusus kanggo nggunakake alat iki.
Sampeyan bisa nambah watermark menyang dokumen ing format liyane: