Gunakake alat baris perintah cURL kanggo nggunakake pamriksa prabédan file, mbandhingake rong DOC 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.
Kita cURL SDK dirancang kanggo menehi asil sing paling akurat, sanajan perbandingan minangka fungsi sing kompleks.
Kadhangkala sampeyan kudu mesthekake yen dokumen ing DOC format durung diganti, lan yen wis, sampeyan kudu ngerteni apa bedane. Cukup gunakake alat diff cURL kanggo mbandhingake rong DOC 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 DOC dokumen, lan sampeyan bisa kanthi cepet nemokake owah-owahan cilik lan ngekspor bedane kasebut menyang dokumen kanthi format sing trep.
Priksa kepiye solusi kanggo mbandhingake DOC file nggunakake cURL SDK. Kanggo entuk iki, muat DOC 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:
// Upload dokumen menyang panyimpenan maya.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input1.doc" \
-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.doc" \
-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.doc/compareDocument?destFileName=Output.doc" \
-X PUT \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
-d "{\"Author\":\"author\",\"ComparingWithDocument\":\"Input2.doc\"}"
// Download dokumen asil saka panyimpenan maya.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Output.doc" \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
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 nindakake operasi mbandhingake kanggo format file liyane: