Hi,
Please see the attached text files and corresponding output PDFs inside a .zip file.
For the file , DoesNOT_Work_TestNumbering.txt the output PDF modifies the numbering incorrectly.
NumberingIssue.zip (33.0 KB)
The code I use is:
public class Test2PDF {
public static void main(String[] args) throws Exception {
Document textDoc = new Document("Works_TestNumbering.txt");
textDoc.save("Works_TestNumbering.pdf");
}
}
Please suggest if I am missing something.
BR,
Dip
@dipsarkar
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-25450
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@dipsarkar I have closed the defect as not a bug. To get the expected output it is required to set AutoNumberingDetection
to false. Close as not a bug. Please see the following code:
TxtLoadOptions opt = new TxtLoadOptions();
opt.setAutoNumberingDetection(false);
Document doc = new Document("C:\\Temp\\in.txt", opt);
doc.save("C:\\Temp\\out.pdf");
FYI @eduardo.canal
1 Like
The issues you have found earlier (filed as WORDSNET-25450) have been fixed in this Aspose.Words for Java 23.6 update.