public bool HighQualityPrintEnabled { get; set; } Public Property HighQualityPrintEnabled As Boolean public boolean getHighQualityPrintEnabled();public void setHighQualityPrintEnabled(boolean booleanValue);
true to allow external viewers and editors to print in high quality (faithful); otherwise, it is false. The default value is true.
The value of HighQualityPrintEnabled is used only when protecting a PDF file with an owner password set in OwnerPassword.
HighQualityPrintEnabled is ignored unless the value of PrintEnabled is set to true.
High quality printing is not enabled by the RC 40-bit encryption mode. As a result, the value of HighQualityPrintEnabled is ignored unless the value of EncryptionMode is set to PDFEncryptionMode.RC128Bit.
using Leadtools;using Leadtools.Codecs;using Leadtools.Controls;using Leadtools.Drawing;using Leadtools.ImageProcessing;using Leadtools.Pdf;using Leadtools.Svg;using Leadtools.WinForms;/// This example will encrypt a PDF file with both a user password and an owner password and restrict printing.public void PDFFileSecurityOptionsExample(){string sourceFileName = Path.Combine(LEAD_VARS.ImagesDir, @"Leadtools.pdf");string destinationFileName = Path.Combine(LEAD_VARS.ImagesDir, @"LEAD_EncryptedNoPrint.pdf");PDFFile pdfFile = new PDFFile(sourceFileName);// Set the security optionspdfFile.SecurityOptions = new PDFSecurityOptions();pdfFile.SecurityOptions.UserPassword = "LEAD";pdfFile.SecurityOptions.OwnerPassword = "LEAD_SECRET";pdfFile.SecurityOptions.PrintEnabled = false;pdfFile.SecurityOptions.HighQualityPrintEnabled = false;pdfFile.SecurityOptions.EncryptionMode = PDFEncryptionMode.RC128Bit;// Encrypt the file by saving it to the destination filepdfFile.Convert(1, -1, destinationFileName);}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS21\Resources\Images";}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.PdfImports Leadtools.WinFormsImports Leadtools.SvgImports Leadtools.ImageProcessing''' This example will encrypt a PDF file with both a user password and an owner password and restrict printing.Public Sub PDFFileSecurityOptionsExample()Dim sourceFileName As String = Path.Combine(LEAD_VARS.ImagesDir, "Leadtools.pdf")Dim destinationFileName As String = Path.Combine(LEAD_VARS.ImagesDir, "LEAD_EncryptedNoPrint.pdf")Dim pdfFile As PDFFile = New PDFFile(sourceFileName)' Set the security optionspdfFile.SecurityOptions = New PDFSecurityOptions()pdfFile.SecurityOptions.UserPassword = "LEAD"pdfFile.SecurityOptions.OwnerPassword = "LEAD_SECRET"pdfFile.SecurityOptions.PrintEnabled = FalsepdfFile.SecurityOptions.HighQualityPrintEnabled = FalsepdfFile.SecurityOptions.EncryptionMode = PDFEncryptionMode.RC128Bit' Encrypt the file by saving it to the destination filepdfFile.Convert(1, -1, destinationFileName)End SubPublic NotInheritable Class LEAD_VARSPublic Const ImagesDir As String = "C:\LEADTOOLS21\Resources\Images"End Class
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
