Encrypt a PDF Example for C# (.NET Core) This example shows how to encrypt a new and an existing PDF document. More details can be found here.