We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Multi Layer PDF

I have PDF with tons of layers. (can see it in Acrobat).
When open in Aspose Layers are null?
Is it possible to make this PDF “simpler” - ie - merge all layers to a single layer or something like this?

The file is: 1440-00-1- 500SCA.pdf on:
The number of layers can be seen here: Capture.PNG
Please see PDF on:

Thanks
Dror

@DrorSegev

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 Layers collection.

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.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan