You can only delete the layer that exists in the source document

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public string DeleteOldLayer(
	string layerName,
	bool isDelAllContent,
	bool delLayerDocProperties
)
Public Function DeleteOldLayer ( 
	layerName As String,
	isDelAllContent As Boolean,
	delLayerDocProperties As Boolean
) As String
public:
String^ DeleteOldLayer(
	String^ layerName, 
	bool isDelAllContent, 
	bool delLayerDocProperties
)
member DeleteOldLayer : 
        layerName : string * 
        isDelAllContent : bool * 
        delLayerDocProperties : bool -> string 

Parameters

layerName
String
Layer Name.
isDelAllContent
Boolean
Is delete all content include in this layer.
delLayerDocProperties
Boolean
Is remove layerdefine in doc properties..

Return Value

String
delete layer message.

See Also