Is it possible to save as plain text while preserving line breaks?

MS Word has the ability to insert line breaks to keep paragraphs wrapped at certain length when saving as plain text. It is achieved via save format ( wdFormatDOSTextLineBreaks 5 Microsoft DOS text with line breaks preserved.) Is something similar possible in Aspose?

@Peter_V,

Please see these sample Word and TXT files: conversion of line breaks to txt format.zip (9.7 KB)

C# code of Aspose.Words for .NET that was used to convert to TXT format:

Document doc = new Document("C:\\Temp\\line break.docx");
// Specify any options here
TxtSaveOptions txtSaveOptions = new TxtSaveOptions();
doc.Save("C:\\Temp\\21.1.txt", txtSaveOptions);

Do you see any problems in above 21.1.txt? Can you please ZIP and upload your sample source Word document containing line breaks and your expected TXT file showing the desired output here for our reference? You may manually create expected Text (.txt) file by using MS Word. We will then investigate the scenario further on our end and provide you more information.

@awais.hafeez,

I am looking for automatically inserted line breaks, not hard entered. The wdFormatDOSTextLineBreaks when saving from Word, will auto insert line breaks to make a long sentence wrap to fit within margins. Please see attached samples.zip (10.7 KB).

@Peter_V,

We have logged your requirement in our issue tracking system. Your ticket number is WORDSNET-21716. We will further look into the details of this requirement and will keep you updated on the status of the linked ticket.