Thanks for contacting support.
We have tested the scenario with Aspose.Pdf for .NET 17.8 and observed that API was returning Layers count as zero. Please check following code snippet that we have tried to determine layers count from your PDF.
Document pdfDoc = new Document(dataDir + "Hagasha-part1SC.pdf");
foreach (Page page in pdfDoc.Pages)
if (page.Layers != null)
We have logged an issue as PDFNET-43314 in our issue tracking system, regarding null
For the sake of investigation, we have logged an investigation ticket as PDFNET-43315 in our issue tracking system. We will further look into the details of both logged tickets and as soon as we have some updates regarding resolution of them, we will let you know. Please be patient and spare us little time.
We are sorry for the inconvenience.