Nalika pangembang ngowahi MD dokumen nganggo perpustakaan Dart iki, sing lagi diowahi yaiku Model Obyek Dokumen (DOM). Dadi, meh kabeh owah-owahan bisa ditindakake kanggo MD dokumen sing diwakili minangka DOM. Kanthi Dart/Flutter SDK sing disedhiyakake, pangembang bisa kanthi gampang nyunting dokumen: ngowahi teks, nganyari tabel, nambah gambar lan liya-liyane. Cukup mbukak MD, gawe owah-owahan sing dibutuhake kanthi program lan ekspor asil menyang format nyimpen sing padha utawa sing didhukung.
Pustaka Dart/Flutter kita menehi pangembang kemampuan kanggo ngowahi MD dokumen kanthi langsung kanthi nyunting Document Object Model (DOM), tegese ora ana piranti lunak tambahan sing kudu diinstal.
Kasus sing paling populer kanggo nyunting MD file yaiku nyunting teks. Kanthi solusi piranti lunak sing diwenehake, sampeyan bisa nambah, ngowahi utawa mbusak teks nggunakake Dart ing dokumen kasebut.
Pilihan editing MD liyane sing populer yaiku nyunting tabel. Dart/Flutter SDK kita ngidini sampeyan nggarap tabel lan teks ing sel tabel.
Pangembang Dart bisa nambah utawa mbusak sel tabel lan tabel, uga nambah, ngowahi lan mbusak teks ing njero.
Saliyane nyunting teks lan tabel ing MD, ana pilihan umum liyane: nambahake gambar menyang dokumen ing Dart. Pangembang Dart/Flutter uga bisa nambah gambar menyang MD file nggunakake DOM.
Coba Dart/Flutter SDK sing kuat iki lan evaluasi sawetara opsi ing panyuntingan MD dokumen. Nggunakake conto ing ngisor iki, muat MD dokumen lan gawe sawetara owah-owahan: nambah teks, nambah tabel lan sel tabel kanthi teks utawa lebokake gambar menyang MD dokumen:
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final config = Configuration("####-####-####-####-####", "##################");
final wordsApi = WordsApi(config);
final requestDocument = (await File(
'Input.md').readAsBytes()).buffer.asByteData();
final requestParagraph = ParagraphInsert();
requestParagraph.text = 'Morbi enim nunc faucibus a.';
final insertParagraphRequest = InsertParagraphOnlineRequest(requestDocument, requestParagraph);
final insertParagraph = await wordsApi.insertParagraphOnline(insertParagraphRequest);
final convertRequest = ConvertDocumentRequest(insertParagraph.document.values.first, 'md');
final convert = await wordsApi.convertDocument(convertRequest);
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final config = Configuration("####-####-####-####-####", "##################");
final wordsApi = WordsApi(config);
final requestDocument = (await File(
'Input.md').readAsBytes()).buffer.asByteData();
final requestTable = TableInsert();
requestTable.columnsCount = 1;
requestTable.rowsCount = 2;
final insertTableRequest = InsertTableOnlineRequest(requestDocument,
requestTable, nodePath: '');
final insertTable = await wordsApi.insertTableOnline(insertTableRequest);
final convertRequest = ConvertDocumentRequest(insertTable.document.values.first, 'md');
final convert = await wordsApi.convertDocument(convertRequest);
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final config = Configuration("####-####-####-####-####", "##################");
final wordsApi = WordsApi(config);
final requestDocument = (await File(
'Input1.md').readAsBytes()).buffer.asByteData();
final requestDrawingObject = DrawingObjectInsert();
requestDrawingObject.height = 0;
requestDrawingObject.left = 0;
requestDrawingObject.top = 0;
requestDrawingObject.width = 0;
requestDrawingObject.relativeHorizontalPosition =
DrawingObjectInsert_RelativeHorizontalPositionEnum.margin;
requestDrawingObject.relativeVerticalPosition =
DrawingObjectInsert_RelativeVerticalPositionEnum.margin;
requestDrawingObject.wrapType = DrawingObjectInsert_WrapTypeEnum.inline;
final requestImageFile = (await File(
'Input2.md').readAsBytes()).buffer.asByteData();
final insertDrawingObjectRequest = InsertDrawingObjectOnlineRequest(requestDocument,
requestDrawingObject, requestImageFile, nodePath: 'sections/0');
final insertDrawingObject =
await wordsApi.insertDrawingObjectOnline(insertDrawingObjectOnline);
final convertRequest = ConvertDocumentRequest(insertDrawingObject.document.values.first,
'md');
final convert = await wordsApi.convertDocument(convertRequest);
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 suntingan kanggo format file liyane: