This article explains how to lock a PDF layer, extract PDF layer elements, flatten a layered PDF, and merge all layers inside a PDF into one....specific layer on the first page, and save the document with...Retrieve the first page with ‘document.pages’. Select the layer...