Bandhingake rong Word nggunakake cURL

Alat baris perintah cURL kuat kanggo mbandhingake Word file ing PDF, Word, HTML, TXT, MD lan format liyane

Gunakake alat baris perintah cURL kanggo nggunakake pamriksa prabédan file, mbandhingake rong Word dokumen lan deleng prabédan antarane dokumen kasebut kanthi jelas ing output. Sampeyan ora perlu maneh mbandhingake dokumen kanthi manual. Elinga uga yen asil perbandingan bisa diekspor menyang DOCX, PDF, DOC lan liya-liyane.

Ndeleng potongan kode

Bandhingake Word ing cURL

Kita cURL SDK dirancang kanggo menehi asil sing paling akurat, sanajan perbandingan minangka fungsi sing kompleks.

Kadhangkala sampeyan kudu mesthekake yen dokumen ing Word format durung diganti, lan yen wis, sampeyan kudu ngerteni apa bedane. Cukup gunakake alat diff cURL kanggo mbandhingake rong Word file lan temokake bedane kabeh tembung utawa karakter tunggal. Kajaba iku, yen mung siji karakter ing tembung sing diganti, tembung iki bakal ditandhani minangka diganti kabeh.

Saiki sampeyan ora perlu maneh nglampahi wektu kanthi manual mbandhingake Word dokumen, lan sampeyan bisa kanthi cepet nemokake owah-owahan cilik lan ngekspor bedane kasebut menyang dokumen kanthi format sing trep.

Coba mbandhingake Word dokumen

Priksa kepiye solusi kanggo mbandhingake Word file nggunakake cURL SDK. Kanggo entuk iki, muat Word file sing pengin dibandhingake lan pilih format file ekspor - bakal dimuat kanthi otomatis sawise mbandhingake.

Elinga yen sampeyan kudu nampa kabeh revisi ing dokumen sing dibandhingake sadurunge nelpon metode perbandingan, kaya sing ditampilake ing conto kita:

Unggah file sing dibandhingake
Kode roto
Unggah file kapindho kanggo mbandhingake
Pilih format target saka dhaptar
//  Upload dokumen menyang panyimpenan maya.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input1.docx" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F FileContent="@%FileName1%"

curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input2.docx" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F FileContent="@%FileName2%"

//  Mbandhingake dokumen ing awan.
curl -v "https://api.aspose.cloud/v4.0/words/Input1.docx/compareDocument?destFileName=Output.docx" \
     -X PUT \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer ####################" \
     -d "{\"Author\":\"author\",\"ComparingWithDocument\":\"Input2.docx\"}"

//  Download dokumen asil saka panyimpenan maya.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Output.docx" \
     -X GET \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer ####################" \
Kode roto
  
Nyalin kode cURL menyang clipboard

Cara Mbandhingake rong versi file

  1. Instal cURL
  2. Entuk kunci aplikasi sampeyan kanggo nggunakake Aspose.Words Cloud for cURL
  3. Pass token Bearer ing header Wewenang
  4. Muat rong Word dokumen kanggo mbandhingake
  5. Telpon metode /compareDocument kanggo mbandhingake Word docs
  6. Download dokumen asil saka panyimpenan maya

cURL perpustakaan kanggo nggunakake mbandhingake

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 mbandhingake 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.