The next task explains how to lock a PDF layer, extract PDF layer elements, flatten a layered PDF, and merge all layers inside PDF into one.... add () # Helper function to add a colored line layer...message is printed and the function exits. Iterate and Save Each...