Thank you for contacting support. The latest version of Aspose.BarCode for Java 6.9.0 can read all DataMatrix codes perfectly from both of your provided barcode pictures. Please use this sample code:
BarCodeReader reader = new BarCodeReader(“C:\temp\page_6.1.tif”, BarCodeReadType.DataMatrix);
System.out.println("Code: " + reader.getCodeText() + " Type: " + reader.getReadType());
However, could you please provide us some other details of 1D code? For example, its type and the exact code text which you’re expecting from it. It’ll help us to investigate it further in details.
We’re looking forward to help you.