Refer to this article to create layered PDF in C#. It has details to set the IDE, a list of steps, and a sample code to add layers to PDF in C#....can set distinct foreground/background color for each layer, lock...to create a layered PDF. To remove blank pages from a PDF, refer...