Text to PDF conversion adopts numbered list incrementing when a line starts with 1

Input data file content:

        letter 1
        1 Accacia Avenue                                                          
        some text

        letter 2
        2 Accacia Avenue
        Some other random text
        2 Accacia Avenue                                                      

        letter 3
        3 Accacia Avenue
        Some other random text
        3 Accacia Avenue                                                      

Note that the PDF output assumes the line starting 1 is the start of a numbered list and increments ALL subsequent numbers in the sequence.

Reproduced in your online converter tool and using .NET Aspose.words version 24.4 using code:

var doc = new Aspose.Words.Document(@"C:\input.txt");
doc.Save(@"C:\Output.pdf");

@ithelpdesksdl This is expected behavior. By default Aspose.Words auto detects numbering upon loading TXT documents. You can disable this using TxtLoadOptions.AutoNumberingDetection property:

TxtLoadOptions opt = new TxtLoadOptions();
opt.AutoNumberingDetection = false;
Document doc = new Document(@"C:\Temp\in.txt", opt);
doc.Save(@"C:\Temp\out.pdf");

out.pdf (16.9 KB)

Interested to understand the use case where a function to convert text to PDF actually modifies it by default.

Is this documented behaviour? As you see in my example, it effectively changes the address of letters in a text input file.

@ithelpdesksdl Yes, this is documented in TxtLoadOptions.
The behavior to auto detect numbering in TXT documents has been requested by our users to make it easier to use with lists imported from TXT. The functionality has been implemented a long time ago as well as the above mentioned option to control this behaviour.