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....APIs and manipulate Layer objects via the page’s layers collection...methods and property on the Layer object: layer.lock() – Locks the layer...