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");