ByteScout PDF SDK - VB.NET - Remove Protection from PDF - ByteScout

ByteScout PDF SDK – VB.NET – Remove Protection from PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VB.NET – Remove Protection from PDF

How to remove protection from PDF in VB.NET with ByteScout PDF SDK

This code in VB.NET shows how to remove protection from PDF with this how to tutorial

The sample source codes on this page shows how to remove protection from PDF in VB.NET. ByteScout PDF SDK: the component to help programmers in generating new pdf files, modifying and updating existing pdf documents or pdf forms. Provides support for auto-filling pdf forms, adding text with adjustable font, style, size, font family, new form fields, vector and raster drawings. It can remove protection from PDF in VB.NET.

The SDK samples like this one below explain how to quickly make your application do remove protection from PDF in VB.NET with the help of ByteScout PDF SDK. In your VB.NET project or application you may simply copy & paste the code and then run your app! Test VB.NET sample code examples whether they respond your needs and requirements for the project.

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

Try ByteScout PDF SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

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

Try ByteScout PDF SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Get ByteScout PDF SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next