Dart SDK kita sing kuat ngidini sampeyan nemokake prabédan antarane DOC dokumen lan nyimpen asil menyang format sing trep kanggo dideleng. Kanggo verifikasi kemampuan produk, mbandhingake DOC file nggunakake perpustakaan Dart iki lan deleng bedane.
Kita Dart/Flutter 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 Dart/Flutter 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 Dart/Flutter 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:
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final config = Configuration("####-####-####-####-####", "##################");
final wordsApi = WordsApi(config);
final fileName1 = 'Input1.doc';
final fileName2 = 'Input2.doc';
final fileResult = 'Output.doc';
// Upload dokumen menyang panyimpenan maya.
final firstDocumentContent = (await File(fileName1).readAsBytes()).buffer.asByteData();
final uploadFirstFileRequest = UploadFileRequest(firstDocumentContent, fileName1);
await wordsApi.uploadFile(uploadFirstFileRequest);
final secondDocumentContent = (await File(fileName2).readAsBytes()).buffer.asByteData();
final uploadSecondFileRequest = UploadFileRequest(secondDocumentContent, fileName2);
await wordsApi.uploadFile(uploadSecondFileRequest);
// Mbandhingake dokumen ing awan.
final compareDataOptions = CompareData();
compareDataOptions.author = 'author';
compareDataOptions.fileReference = FileReference.fromRemoteFile(fileName2);
final compareDocumentRequest =
CompareDocumentRequest(fileName1, compareDataOptions, destFileName: fileResult);
await wordsApi.compareDocument(compareDocumentRequest);
// Download dokumen asil saka panyimpenan maya.
final downloadFileRequest = DownloadFileRequest(fileResult);
final downloadFileResult = await wordsApi.downloadFile(downloadFileRequest);
await File('compareResult.pdf').writeAsBytes(
downloadFileResult.buffer.asUint8List(
downloadFileResult.offsetInBytes, downloadFileResult.lengthInBytes)
Klone Aspose.Words Cloud SDK for Dart saka GitHub lan gunakake ing proyek sampeyan. Tambah dependensi iki menyang pubspec.yaml: dependencies: aspose_words_cloud: 22.4.0
Tututi Instructions iki supaya cepet entuk kredensial keamanan sing dibutuhake lan ngakses REST API kita.
Deleng Repository Documentation kanggo ndeleng rincian.
Sampeyan bisa nindakake operasi mbandhingake kanggo format file liyane: