The PDF SDK for .NET  product has been acquired by Sybrex company in January, 2011 and not available on our web-site anymore.

NEW: Check our new rich PDF reports generator for Javascript (completely client side generation): PDF Generator SDK for Javascriptclick here to read more details...


For 3rd party server side C# open-source PDF generation library?

Check the blog article: .NET Bear, Do You Know Any Free PDF Generation Libraries For Use In Commercial Applications?
 

Our commercial products for PDF format:

PDF Extractor SDK - extract tables, text, structured data from PDF files in your apps

PDF Renderer SDK - render PDF files to PNG, BMP, TIFF images in your apps

PDF To HTML SDK - convert PDF to HTML with images and formatting preserved

How to remove protection from PDF document using Bytescout.PDF library for .NET applications

Removing protection (password and security permissions) from existing PDF document using Bytescout.PDF library

This example demonstrates how to remove protection and security settings from existing PDF document using Bytescout.PDF library

Download example source code: bytescoutpdf_remove_protection_from_existing_pdf.zip (10 KB)

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Bytescout.PDF;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{

// Create main PDF Doc Engine
PDFDocEngine engine = new PDFDocEngine("", "");

// Add existing document
Document document = engine.AddDocument("HelloWorldWithSecurity.pdf");

// check if document is protected
if (document.Protected)
{
// check password
if (document.ValidatePassword("123") == PasswordValidationType.Invalid)
{
Console.WriteLine("Invalid password");
}
else // removing protection if password was correct
document.RemoveProtection();
}

// Save document
document.Save("HelloWorldWithSecurity_ProtectionRemoved.pdf");

}
}
}


Download example source code: bytescoutpdf_remove_protection_from_existing_pdf.zip (10 KB)

Filed in: PDF SDK for .NET

Tutorials: