List Numbers are Changed in Spanish Document | DOCX to PDF Conversion using Java

Hello,

We’ve converted the Spanish document ‘Example_numbered_list.docx’ to PDF/A. Our problem is that the results aren’t optimal: the ordinals of the numbered lists are displayed in English in the PDF.

For example (page #6): ‘1º’ becomes ‘1st’, ‘2º’ becomes ‘2nd’,…

What would be the solution?

Thank you very much.

Example_numbered_list.docx (175.0 KB)
Example_numbered_list.pdf (1.0 MB)

@gadd

We have tested the scenario using the latest version of Aspose.Words for .NET 21.9 with following code example. We have not found the shared issue. So, please use the latest version of Aspose.Words for .NET 21.9. We have attached the output PDF with this post for your kind reference.
output.pdf (355.9 KB)

Document doc = new Document(MyDir + "Example_numbered_list.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.Compliance = PdfCompliance.PdfA2a;
doc.Save(MyDir + @"output.pdf", options);

We don’t use Aspose.Words for .NET 21.9.

Does PdfCompliance.PdfA2a exist in Aspose.Words for JAVA?

Our current source code:

PdfSaveOptions options = new PdfSaveOptions (); 
options.setCompliance (PdfCompliance.PDF_A_1_A); 
doc.save (path, options); 

@gadd

Yes, this compliance exists in Aspose.Words for Java. Please check the detail from here:

PDF/A-1 have significant limitations which are removed in PDF/A-2. Please, use the PDF/A-2a compliance instead of PDF/A-1a.

Please use the latest version of Aspose.Words for Java 21.9 to get the desired output.

Correct. Thanks!