Bandhingake rong DOC nggunakake Dart

Pemeriksa beda Dart sing akurat banget kanggo mbandhingake DOC file lan nemokake bedane

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.

Ndeleng potongan kode

Bandhingake DOC ing Dart

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.

Coba mbandhingake DOC dokumen

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:

Unggah file sing dibandhingake
Kode roto
Unggah file kapindho kanggo mbandhingake
Pilih format target saka dhaptar
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)
Kode roto
  
Nyalin kode Dart menyang clipboard

Cara mbandhingake rong file teks

  1. Pasang Aspose.Words Cloud for Dart/Flutter
  2. Tambah referensi perpustakaan (ngimpor perpustakaan) menyang proyek Dart sampeyan
  3. Muat rong DOC dokumen kanggo mbandhingake
  4. Telpon metode compareDocument() kanggo mbandhingake DOC docs
  5. Download dokumen asil saka panyimpenan maya

Dart perpustakaan kanggo nggunakake mbandhingake

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.

Requirements Sistem

Deleng Repository Documentation kanggo ndeleng rincian.

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.