is there anyway we can list layers in PDF and show/hide layers?
Yes. Look for the optional content group code.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.