ByteScout PDF Suite - VB.NET - Remove protection from pdf with pdf sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF Suite – VB.NET – Remove protection from pdf with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VB.NET – Remove protection from pdf with pdf sdk

How to remove protection from pdf with pdf sdk in VB.NET and ByteScout PDF Suite

Continuous learning is a crucial part of computer science and this tutorial shows how to remove protection from pdf with pdf sdk in VB.NET

We made thousands of pre-made source code pieces for easy implementation in your own programming projects. ByteScout PDF Suite is the bundle that provides six different SDK libraries to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript and you can use it to remove protection from pdf with pdf sdk with VB.NET.

The SDK samples given below describe how to quickly make your application do remove protection from pdf with pdf sdk in VB.NET with the help of ByteScout PDF Suite. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.

Our website gives trial version of ByteScout PDF Suite for free. It also includes documentation and source code samples.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
Imports Bytescout.PDF Module Program Sub Main() Try 'Files Dim fileName As String = "ProtectedPDFFile.pdf" Dim fileName_UnProtected As String = "UnProtectedPDFFile.pdf" 'Protected file password Dim filePassword As String = "admin@123" 'Process file to remove password Dim document As Document = New Document() document.RegistrationName = "demo" document.RegistrationKey = "demo" document.Load(fileName, filePassword) ' Remove password protection and encryption document.Security.OwnerPassword = String.Empty document.Security.UserPassword = String.Empty document.Security.EncryptionAlgorithm = EncryptionAlgorithm.None ' Remove restrictions document.Security.AllowAccessibilitySupport = True document.Security.AllowAssemlyDocument = True document.Security.AllowContentExtraction = True document.Security.AllowFillForms = True document.Security.AllowModifyAnnotations = True document.Security.AllowModifyDocument = True document.Security.AllowPrintDocument = True document.Security.PrintQuality = PrintQuality.HightResolution 'Save Unprotected file document.Save(fileName_UnProtected) Console.WriteLine("PDF restrictions removed successfully!") Process.Start(fileName_UnProtected) Catch ex As Exception Console.WriteLine(ex.Message) End Try Console.WriteLine("Press any key to continue...") Console.ReadLine() End Sub End Module

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next