How do you access hidden layers in an existing document?

sample.pdf (318.1 KB)
In the attached document, there is a layer - it’s names “flowers”, and has a picture of flowers on it that appears in the lower right corner of the first page when it’s made visible. When I open up the document as an object in Aspose.PDF, the Document.Pages(1).Layers property is null. Changing the visibility of the layer does not affect the result - the property is still null whether the layer is visible or not.

Is there a way to access the already existing layer? Also, is there a way to determine if the layer is visible or not, and if not, to remove it? I haven’t been able to figure out a way from the documentation and samples, so hopefully there’s something that can be done.

Thanks,
Michael Whalen

Hi Michael,

Thanks for contacting support.

I have tested the scenario and was able to reproduce the issue in our environment. Therefore I have logged an issue as PDFNET-42940 in our issue tracking system. We will further investigate it and keep you updated with the status of its resolution.

I have logged a feature request as PDFNET-42941 in our issue tracking system for the requirement. Development team will further investigate the feasibility of the enhancement and as soon as we have some updates in this regard, we will let you know. Please be patient and spare us little time.

We are sorry for the inconvenience.


Best Regards,
Asad Ali

I am currently evaluating using Aspose PDF in some of our .Net applications. Has this issue been resolved yet? If not, is there an ETA on when it will be available?

Thank you,
Doris Manning

@dorismanning

Thanks for your inquiry.

I am afraid that earlier logged issue is not resolved yet, as there are other pending issues in the queue as well, which were reported prior to this issue. However, product team will surely plan to provide a fix against this issue, as per their development schedule. As soon as we have some definite updates in this regard, we will inform you. Please spare us little time.

We are sorry for the inconvenience.

Hi Ali,

is there any way to check the progress of those Jira tickets ?

I believe I’m facing the same problem using the Java API:
When I use layers = page.getLayers() , I get null.

Does it take new Jira issues as I see that the Jira number contains “NET” ?

Thanks,
Florent

@florent.roussel

Thanks for contacting support.

We have logged this issue for Aspose.Pdf for Java as PDFJAVA-37344 in our issue tracking system. We will let you know once we make any significant progress towards resolution of the issue. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFJAVA-37344) have been fixed in Aspose.PDF for Java 24.9.