diff --git a/PDFEncrypt.csproj b/PDFEncrypt.csproj index 22a6ba5..3cb6280 100644 --- a/PDFEncrypt.csproj +++ b/PDFEncrypt.csproj @@ -48,7 +48,7 @@ 4 - logo.ico + logo2.ico false @@ -161,6 +161,7 @@ + diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index d8364da..5315580 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -1,4 +1,5 @@ -using System.Reflection; +using System.Resources; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -10,7 +11,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("PDFEncrypt.net")] [assembly: AssemblyProduct("PDFEncrypt")] -[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyCopyright("Copyright © 2019-2022")] [assembly: AssemblyTrademark("Released under AGPL")] [assembly: AssemblyCulture("")] @@ -32,5 +33,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.1.*")] +[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: NeutralResourcesLanguage("en")] diff --git a/frmInputBox.Designer.cs b/frmInputBox.Designer.cs index 76193aa..d804897 100644 --- a/frmInputBox.Designer.cs +++ b/frmInputBox.Designer.cs @@ -28,70 +28,77 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.btnOK = new System.Windows.Forms.Button(); - this.btnCancel = new System.Windows.Forms.Button(); - this.lblPrompt = new System.Windows.Forms.Label(); - this.txtInput = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // btnOK - // - this.btnOK.Location = new System.Drawing.Point(451, 12); - this.btnOK.Name = "btnOK"; - this.btnOK.Size = new System.Drawing.Size(75, 34); - this.btnOK.TabIndex = 0; - this.btnOK.Text = "OK"; - this.btnOK.UseVisualStyleBackColor = true; - this.btnOK.Click += new System.EventHandler(this.btnOK_Click); - // - // btnCancel - // - this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(451, 57); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(75, 34); - this.btnCancel.TabIndex = 1; - this.btnCancel.Text = "Cancel"; - this.btnCancel.UseVisualStyleBackColor = true; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - // - // lblPrompt - // - this.lblPrompt.AutoSize = true; - this.lblPrompt.Location = new System.Drawing.Point(12, 12); - this.lblPrompt.Name = "lblPrompt"; - this.lblPrompt.Size = new System.Drawing.Size(46, 17); - this.lblPrompt.TabIndex = 2; - this.lblPrompt.Text = "label1"; - // - // txtInput - // - this.txtInput.Location = new System.Drawing.Point(12, 44); - this.txtInput.Name = "txtInput"; - this.txtInput.Size = new System.Drawing.Size(415, 22); - this.txtInput.TabIndex = 3; - // - // frmInputBox - // - this.AcceptButton = this.btnOK; - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.CancelButton = this.btnCancel; - this.ClientSize = new System.Drawing.Size(538, 105); - this.Controls.Add(this.txtInput); - this.Controls.Add(this.lblPrompt); - this.Controls.Add(this.btnCancel); - this.Controls.Add(this.btnOK); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "frmInputBox"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Title"; - this.Load += new System.EventHandler(this.frmInputBox_Load); - this.Shown += new System.EventHandler(this.frmInputBox_Shown); - this.ResumeLayout(false); - this.PerformLayout(); + this.btnOK = new System.Windows.Forms.Button(); + this.btnCancel = new System.Windows.Forms.Button(); + this.txtInput = new System.Windows.Forms.TextBox(); + this.lblPrompt = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // btnOK + // + this.btnOK.Location = new System.Drawing.Point(338, 10); + this.btnOK.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(56, 28); + this.btnOK.TabIndex = 0; + this.btnOK.Text = "OK"; + this.btnOK.UseVisualStyleBackColor = true; + this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + // + // btnCancel + // + this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.btnCancel.Location = new System.Drawing.Point(338, 42); + this.btnCancel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(56, 28); + this.btnCancel.TabIndex = 1; + this.btnCancel.Text = "Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // txtInput + // + this.txtInput.Location = new System.Drawing.Point(11, 74); + this.txtInput.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.txtInput.Name = "txtInput"; + this.txtInput.Size = new System.Drawing.Size(312, 20); + this.txtInput.TabIndex = 3; + // + // lblPrompt + // + this.lblPrompt.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.lblPrompt.Location = new System.Drawing.Point(11, 10); + this.lblPrompt.Multiline = true; + this.lblPrompt.Name = "lblPrompt"; + this.lblPrompt.ReadOnly = true; + this.lblPrompt.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.lblPrompt.Size = new System.Drawing.Size(312, 59); + this.lblPrompt.TabIndex = 4; + this.lblPrompt.Text = "prompt"; + // + // frmInputBox + // + this.AcceptButton = this.btnOK; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.btnCancel; + this.ClientSize = new System.Drawing.Size(404, 105); + this.Controls.Add(this.lblPrompt); + this.Controls.Add(this.txtInput); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOK); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "frmInputBox"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Title"; + this.Load += new System.EventHandler(this.frmInputBox_Load); + this.Shown += new System.EventHandler(this.frmInputBox_Shown); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -99,7 +106,7 @@ private void InitializeComponent() private System.Windows.Forms.Button btnOK; private System.Windows.Forms.Button btnCancel; - private System.Windows.Forms.Label lblPrompt; private System.Windows.Forms.TextBox txtInput; - } + private System.Windows.Forms.TextBox lblPrompt; + } } \ No newline at end of file diff --git a/frmInputBox.cs b/frmInputBox.cs index a2d62b0..d2be214 100644 --- a/frmInputBox.cs +++ b/frmInputBox.cs @@ -15,6 +15,8 @@ public partial class frmInputBox : Form public string result; // The result of the input box action. public string prompt; // Prompt to be displayed. public string title; // Title of box + public bool password; // Is the input a password? + public bool cancelled; public frmInputBox() { @@ -23,8 +25,7 @@ public frmInputBox() private void frmInputBox_Load(object sender, EventArgs e) { - lblPrompt.Text = prompt; - this.Text = title; + } @@ -45,6 +46,10 @@ private void btnCancel_Click(object sender, EventArgs e) private void frmInputBox_Shown(object sender, EventArgs e) { txtInput.Focus(); + txtInput.Text = ""; // Clear input on load. + lblPrompt.Text = prompt; + this.Text = title; + txtInput.PasswordChar = (password) ? '*' : (char)0; } } } diff --git a/frmMain.Designer.cs b/frmMain.Designer.cs index aceea17..aca9ef4 100644 --- a/frmMain.Designer.cs +++ b/frmMain.Designer.cs @@ -28,244 +28,304 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.label4 = new System.Windows.Forms.Label(); - this.btnInputBrowse = new System.Windows.Forms.Button(); - this.txtInputFile = new System.Windows.Forms.TextBox(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.label2 = new System.Windows.Forms.Label(); - this.btnOutputBrowse = new System.Windows.Forms.Button(); - this.txtOutputFile = new System.Windows.Forms.TextBox(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.lblCopied = new System.Windows.Forms.Label(); - this.btnCopy = new System.Windows.Forms.Button(); - this.label3 = new System.Windows.Forms.Label(); - this.btnPasswordGenerate = new System.Windows.Forms.Button(); - this.txtPassword = new System.Windows.Forms.TextBox(); - this.btnEncrypt = new System.Windows.Forms.Button(); - this.btnClose = new System.Windows.Forms.Button(); - this.dlgOpen = new System.Windows.Forms.OpenFileDialog(); - this.dlgSave = new System.Windows.Forms.SaveFileDialog(); - this.btnSettings = new System.Windows.Forms.Button(); - this.groupBox1.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.groupBox3.SuspendLayout(); - this.SuspendLayout(); - // - // groupBox1 - // - this.groupBox1.Controls.Add(this.label4); - this.groupBox1.Controls.Add(this.btnInputBrowse); - this.groupBox1.Controls.Add(this.txtInputFile); - this.groupBox1.Location = new System.Drawing.Point(12, 12); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(620, 123); - this.groupBox1.TabIndex = 8; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "Source File"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label4.Location = new System.Drawing.Point(23, 25); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(270, 29); - this.label4.TabIndex = 11; - this.label4.Text = "Choose a file to encrypt:"; - // - // btnInputBrowse - // - this.btnInputBrowse.Location = new System.Drawing.Point(557, 62); - this.btnInputBrowse.Name = "btnInputBrowse"; - this.btnInputBrowse.Size = new System.Drawing.Size(48, 34); - this.btnInputBrowse.TabIndex = 10; - this.btnInputBrowse.Text = "..."; - this.btnInputBrowse.UseVisualStyleBackColor = true; - this.btnInputBrowse.Click += new System.EventHandler(this.btnInputBrowse_Click); - // - // txtInputFile - // - this.txtInputFile.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtInputFile.Location = new System.Drawing.Point(28, 62); - this.txtInputFile.Name = "txtInputFile"; - this.txtInputFile.Size = new System.Drawing.Size(512, 34); - this.txtInputFile.TabIndex = 8; - // - // groupBox2 - // - this.groupBox2.Controls.Add(this.label2); - this.groupBox2.Controls.Add(this.btnOutputBrowse); - this.groupBox2.Controls.Add(this.txtOutputFile); - this.groupBox2.Location = new System.Drawing.Point(12, 141); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(620, 123); - this.groupBox2.TabIndex = 12; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "Destination File"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2.Location = new System.Drawing.Point(23, 25); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(468, 29); - this.label2.TabIndex = 11; - this.label2.Text = "Choose a destination for the encrypted file:"; - // - // btnOutputBrowse - // - this.btnOutputBrowse.Location = new System.Drawing.Point(557, 62); - this.btnOutputBrowse.Name = "btnOutputBrowse"; - this.btnOutputBrowse.Size = new System.Drawing.Size(48, 34); - this.btnOutputBrowse.TabIndex = 10; - this.btnOutputBrowse.Text = "..."; - this.btnOutputBrowse.UseVisualStyleBackColor = true; - this.btnOutputBrowse.Click += new System.EventHandler(this.btnOutputBrowse_Click); - // - // txtOutputFile - // - this.txtOutputFile.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtOutputFile.Location = new System.Drawing.Point(28, 62); - this.txtOutputFile.Name = "txtOutputFile"; - this.txtOutputFile.Size = new System.Drawing.Size(512, 34); - this.txtOutputFile.TabIndex = 8; - // - // groupBox3 - // - this.groupBox3.Controls.Add(this.lblCopied); - this.groupBox3.Controls.Add(this.btnCopy); - this.groupBox3.Controls.Add(this.label3); - this.groupBox3.Controls.Add(this.btnPasswordGenerate); - this.groupBox3.Controls.Add(this.txtPassword); - this.groupBox3.Location = new System.Drawing.Point(13, 270); - this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(620, 123); - this.groupBox3.TabIndex = 13; - this.groupBox3.TabStop = false; - this.groupBox3.Text = "Password"; - // - // lblCopied - // - this.lblCopied.AutoSize = true; - this.lblCopied.ForeColor = System.Drawing.Color.Green; - this.lblCopied.Location = new System.Drawing.Point(457, 99); - this.lblCopied.Name = "lblCopied"; - this.lblCopied.Size = new System.Drawing.Size(134, 17); - this.lblCopied.TabIndex = 13; - this.lblCopied.Text = "Copied to clipboard."; - this.lblCopied.Visible = false; - // - // btnCopy - // - this.btnCopy.Location = new System.Drawing.Point(534, 62); - this.btnCopy.Name = "btnCopy"; - this.btnCopy.Size = new System.Drawing.Size(70, 34); - this.btnCopy.TabIndex = 12; - this.btnCopy.Text = "Copy"; - this.btnCopy.UseVisualStyleBackColor = true; - this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.Location = new System.Drawing.Point(23, 25); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(505, 29); - this.label3.TabIndex = 11; - this.label3.Text = "Specify a password (required to open the file):"; - // - // btnPasswordGenerate - // - this.btnPasswordGenerate.Location = new System.Drawing.Point(444, 62); - this.btnPasswordGenerate.Name = "btnPasswordGenerate"; - this.btnPasswordGenerate.Size = new System.Drawing.Size(84, 34); - this.btnPasswordGenerate.TabIndex = 10; - this.btnPasswordGenerate.Text = "Generate"; - this.btnPasswordGenerate.UseVisualStyleBackColor = true; - this.btnPasswordGenerate.Click += new System.EventHandler(this.btnPasswordGenerate_Click); - // - // txtPassword - // - this.txtPassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtPassword.Location = new System.Drawing.Point(28, 62); - this.txtPassword.Name = "txtPassword"; - this.txtPassword.Size = new System.Drawing.Size(410, 34); - this.txtPassword.TabIndex = 8; - this.txtPassword.TextChanged += new System.EventHandler(this.txtPassword_TextChanged); - this.txtPassword.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPassword_KeyDown); - // - // btnEncrypt - // - this.btnEncrypt.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnEncrypt.Location = new System.Drawing.Point(482, 415); - this.btnEncrypt.Name = "btnEncrypt"; - this.btnEncrypt.Size = new System.Drawing.Size(150, 49); - this.btnEncrypt.TabIndex = 14; - this.btnEncrypt.Text = "Encrypt"; - this.btnEncrypt.UseVisualStyleBackColor = true; - this.btnEncrypt.Click += new System.EventHandler(this.btnEncrypt_Click); - // - // btnClose - // - this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnClose.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnClose.Location = new System.Drawing.Point(313, 415); - this.btnClose.Name = "btnClose"; - this.btnClose.Size = new System.Drawing.Size(150, 49); - this.btnClose.TabIndex = 15; - this.btnClose.Text = "Close"; - this.btnClose.UseVisualStyleBackColor = true; - this.btnClose.Click += new System.EventHandler(this.btnClose_Click); - // - // dlgOpen - // - this.dlgOpen.Filter = "PDF Files|*.pdf|All files|*.*"; - // - // dlgSave - // - this.dlgSave.Filter = "PDF Files|*.pdf|All files|*.*"; - this.dlgSave.OverwritePrompt = false; - // - // btnSettings - // - this.btnSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnSettings.Location = new System.Drawing.Point(12, 430); - this.btnSettings.Name = "btnSettings"; - this.btnSettings.Size = new System.Drawing.Size(104, 34); - this.btnSettings.TabIndex = 16; - this.btnSettings.Text = "Settings..."; - this.btnSettings.UseVisualStyleBackColor = true; - this.btnSettings.Click += new System.EventHandler(this.btnSettings_Click); - // - // frmMain - // - this.AcceptButton = this.btnEncrypt; - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.CancelButton = this.btnClose; - this.ClientSize = new System.Drawing.Size(646, 478); - this.Controls.Add(this.btnSettings); - this.Controls.Add(this.btnClose); - this.Controls.Add(this.btnEncrypt); - this.Controls.Add(this.groupBox3); - this.Controls.Add(this.groupBox2); - this.Controls.Add(this.groupBox1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "frmMain"; - this.Text = "PDFEncrypt - free, open-source PDF encryption utility"; - this.Load += new System.EventHandler(this.frmMain_Load); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - this.groupBox3.ResumeLayout(false); - this.groupBox3.PerformLayout(); - this.ResumeLayout(false); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label4 = new System.Windows.Forms.Label(); + this.btnInputBrowse = new System.Windows.Forms.Button(); + this.txtInputFile = new System.Windows.Forms.TextBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label2 = new System.Windows.Forms.Label(); + this.btnOutputBrowse = new System.Windows.Forms.Button(); + this.txtOutputFile = new System.Windows.Forms.TextBox(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.lblOwnerPasswordSet = new System.Windows.Forms.Label(); + this.lnkPasswordOwner = new System.Windows.Forms.LinkLabel(); + this.lblPasswordLength = new System.Windows.Forms.Label(); + this.lblCopied = new System.Windows.Forms.Label(); + this.btnCopy = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.btnPasswordGenerate = new System.Windows.Forms.Button(); + this.txtPassword = new System.Windows.Forms.TextBox(); + this.btnEncrypt = new System.Windows.Forms.Button(); + this.btnClose = new System.Windows.Forms.Button(); + this.dlgOpen = new System.Windows.Forms.OpenFileDialog(); + this.dlgSave = new System.Windows.Forms.SaveFileDialog(); + this.btnSettings = new System.Windows.Forms.Button(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.btnInputBrowse); + this.groupBox1.Controls.Add(this.txtInputFile); + this.groupBox1.Location = new System.Drawing.Point(12, 12); + this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.groupBox1.Size = new System.Drawing.Size(620, 123); + this.groupBox1.TabIndex = 8; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Source File"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(23, 25); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(270, 29); + this.label4.TabIndex = 11; + this.label4.Text = "Choose a file to encrypt:"; + // + // btnInputBrowse + // + this.btnInputBrowse.Location = new System.Drawing.Point(557, 62); + this.btnInputBrowse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnInputBrowse.Name = "btnInputBrowse"; + this.btnInputBrowse.Size = new System.Drawing.Size(48, 34); + this.btnInputBrowse.TabIndex = 10; + this.btnInputBrowse.Text = "..."; + this.btnInputBrowse.UseVisualStyleBackColor = true; + this.btnInputBrowse.Click += new System.EventHandler(this.btnInputBrowse_Click); + // + // txtInputFile + // + this.txtInputFile.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtInputFile.Location = new System.Drawing.Point(28, 62); + this.txtInputFile.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.txtInputFile.Name = "txtInputFile"; + this.txtInputFile.Size = new System.Drawing.Size(512, 34); + this.txtInputFile.TabIndex = 8; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.label2); + this.groupBox2.Controls.Add(this.btnOutputBrowse); + this.groupBox2.Controls.Add(this.txtOutputFile); + this.groupBox2.Location = new System.Drawing.Point(12, 142); + this.groupBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.groupBox2.Size = new System.Drawing.Size(620, 123); + this.groupBox2.TabIndex = 12; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Destination File"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(23, 25); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(468, 29); + this.label2.TabIndex = 11; + this.label2.Text = "Choose a destination for the encrypted file:"; + // + // btnOutputBrowse + // + this.btnOutputBrowse.Location = new System.Drawing.Point(557, 62); + this.btnOutputBrowse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnOutputBrowse.Name = "btnOutputBrowse"; + this.btnOutputBrowse.Size = new System.Drawing.Size(48, 34); + this.btnOutputBrowse.TabIndex = 10; + this.btnOutputBrowse.Text = "..."; + this.btnOutputBrowse.UseVisualStyleBackColor = true; + this.btnOutputBrowse.Click += new System.EventHandler(this.btnOutputBrowse_Click); + // + // txtOutputFile + // + this.txtOutputFile.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtOutputFile.Location = new System.Drawing.Point(28, 62); + this.txtOutputFile.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.txtOutputFile.Name = "txtOutputFile"; + this.txtOutputFile.Size = new System.Drawing.Size(512, 34); + this.txtOutputFile.TabIndex = 8; + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.lblOwnerPasswordSet); + this.groupBox3.Controls.Add(this.lnkPasswordOwner); + this.groupBox3.Controls.Add(this.lblPasswordLength); + this.groupBox3.Controls.Add(this.lblCopied); + this.groupBox3.Controls.Add(this.btnCopy); + this.groupBox3.Controls.Add(this.label3); + this.groupBox3.Controls.Add(this.btnPasswordGenerate); + this.groupBox3.Controls.Add(this.txtPassword); + this.groupBox3.Location = new System.Drawing.Point(13, 270); + this.groupBox3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.groupBox3.Size = new System.Drawing.Size(619, 153); + this.groupBox3.TabIndex = 13; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "Password"; + // + // lblOwnerPasswordSet + // + this.lblOwnerPasswordSet.AutoSize = true; + this.lblOwnerPasswordSet.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); + this.lblOwnerPasswordSet.Location = new System.Drawing.Point(207, 123); + this.lblOwnerPasswordSet.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblOwnerPasswordSet.Name = "lblOwnerPasswordSet"; + this.lblOwnerPasswordSet.Size = new System.Drawing.Size(131, 16); + this.lblOwnerPasswordSet.TabIndex = 16; + this.lblOwnerPasswordSet.Text = "Owner password set."; + this.lblOwnerPasswordSet.Visible = false; + // + // lnkPasswordOwner + // + this.lnkPasswordOwner.AutoSize = true; + this.lnkPasswordOwner.Location = new System.Drawing.Point(37, 123); + this.lnkPasswordOwner.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lnkPasswordOwner.Name = "lnkPasswordOwner"; + this.lnkPasswordOwner.Size = new System.Drawing.Size(131, 16); + this.lnkPasswordOwner.TabIndex = 15; + this.lnkPasswordOwner.TabStop = true; + this.lnkPasswordOwner.Text = "Set Owner Password"; + this.lnkPasswordOwner.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkPasswordOwner_LinkClicked); + // + // lblPasswordLength + // + this.lblPasswordLength.AutoSize = true; + this.lblPasswordLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.lblPasswordLength.Location = new System.Drawing.Point(25, 98); + this.lblPasswordLength.Name = "lblPasswordLength"; + this.lblPasswordLength.Size = new System.Drawing.Size(327, 16); + this.lblPasswordLength.TabIndex = 14; + this.lblPasswordLength.Text = "Passwords longer than 32 characters will be truncated."; + this.lblPasswordLength.Visible = false; + // + // lblCopied + // + this.lblCopied.AutoSize = true; + this.lblCopied.ForeColor = System.Drawing.Color.Green; + this.lblCopied.Location = new System.Drawing.Point(457, 98); + this.lblCopied.Name = "lblCopied"; + this.lblCopied.Size = new System.Drawing.Size(128, 16); + this.lblCopied.TabIndex = 13; + this.lblCopied.Text = "Copied to clipboard."; + this.lblCopied.Visible = false; + // + // btnCopy + // + this.btnCopy.Location = new System.Drawing.Point(533, 62); + this.btnCopy.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnCopy.Name = "btnCopy"; + this.btnCopy.Size = new System.Drawing.Size(69, 34); + this.btnCopy.TabIndex = 12; + this.btnCopy.Text = "Copy"; + this.btnCopy.UseVisualStyleBackColor = true; + this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.Location = new System.Drawing.Point(23, 25); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(505, 29); + this.label3.TabIndex = 11; + this.label3.Text = "Specify a password (required to open the file):"; + // + // btnPasswordGenerate + // + this.btnPasswordGenerate.Location = new System.Drawing.Point(444, 62); + this.btnPasswordGenerate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnPasswordGenerate.Name = "btnPasswordGenerate"; + this.btnPasswordGenerate.Size = new System.Drawing.Size(84, 34); + this.btnPasswordGenerate.TabIndex = 10; + this.btnPasswordGenerate.Text = "Generate"; + this.btnPasswordGenerate.UseVisualStyleBackColor = true; + this.btnPasswordGenerate.Click += new System.EventHandler(this.btnPasswordGenerate_Click); + // + // txtPassword + // + this.txtPassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtPassword.Location = new System.Drawing.Point(28, 62); + this.txtPassword.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.txtPassword.Name = "txtPassword"; + this.txtPassword.Size = new System.Drawing.Size(409, 34); + this.txtPassword.TabIndex = 8; + this.txtPassword.TextChanged += new System.EventHandler(this.txtPassword_TextChanged); + this.txtPassword.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPassword_KeyDown); + // + // btnEncrypt + // + this.btnEncrypt.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnEncrypt.Location = new System.Drawing.Point(475, 446); + this.btnEncrypt.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnEncrypt.Name = "btnEncrypt"; + this.btnEncrypt.Size = new System.Drawing.Size(149, 49); + this.btnEncrypt.TabIndex = 14; + this.btnEncrypt.Text = "Encrypt"; + this.btnEncrypt.UseVisualStyleBackColor = true; + this.btnEncrypt.Click += new System.EventHandler(this.btnEncrypt_Click); + // + // btnClose + // + this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.btnClose.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnClose.Location = new System.Drawing.Point(303, 446); + this.btnClose.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnClose.Name = "btnClose"; + this.btnClose.Size = new System.Drawing.Size(149, 49); + this.btnClose.TabIndex = 15; + this.btnClose.Text = "Close"; + this.btnClose.UseVisualStyleBackColor = true; + this.btnClose.Click += new System.EventHandler(this.btnClose_Click); + // + // dlgOpen + // + this.dlgOpen.Filter = "PDF Files|*.pdf|All files|*.*"; + // + // dlgSave + // + this.dlgSave.Filter = "PDF Files|*.pdf|All files|*.*"; + this.dlgSave.OverwritePrompt = false; + // + // btnSettings + // + this.btnSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnSettings.Location = new System.Drawing.Point(15, 460); + this.btnSettings.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnSettings.Name = "btnSettings"; + this.btnSettings.Size = new System.Drawing.Size(104, 34); + this.btnSettings.TabIndex = 16; + this.btnSettings.Text = "Settings..."; + this.btnSettings.UseVisualStyleBackColor = true; + this.btnSettings.Click += new System.EventHandler(this.btnSettings_Click); + // + // frmMain + // + this.AcceptButton = this.btnEncrypt; + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.btnClose; + this.ClientSize = new System.Drawing.Size(641, 503); + this.Controls.Add(this.btnSettings); + this.Controls.Add(this.btnClose); + this.Controls.Add(this.btnEncrypt); + this.Controls.Add(this.groupBox3); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "frmMain"; + this.Text = "PDFEncrypt - free, open-source PDF encryption utility"; + this.Load += new System.EventHandler(this.frmMain_Load); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.groupBox3.ResumeLayout(false); + this.groupBox3.PerformLayout(); + this.ResumeLayout(false); } @@ -289,6 +349,9 @@ private void InitializeComponent() private System.Windows.Forms.Button btnCopy; private System.Windows.Forms.Label lblCopied; private System.Windows.Forms.Button btnSettings; - } + private System.Windows.Forms.Label lblPasswordLength; + private System.Windows.Forms.LinkLabel lnkPasswordOwner; + private System.Windows.Forms.Label lblOwnerPasswordSet; + } } diff --git a/frmMain.cs b/frmMain.cs index cda4885..6e3dcb5 100644 --- a/frmMain.cs +++ b/frmMain.cs @@ -24,8 +24,9 @@ public partial class frmMain : Form { const int PW_LENGTH_MIN = 12; // Minimum generated password length const int PW_LENGTH_MAX = 24; // Maximum generated password length - const string PW_CHARS = "abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789"; // List of characters to be used in random passwords + const string PW_CHARS = "abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789"; // List of characters to be used in random passwords + private string owner_password = ""; // The owner password, if any. public frmMain() { @@ -112,6 +113,9 @@ private void txtPassword_TextChanged(object sender, EventArgs e) // Hide Copied label lblCopied.Visible = false; + // Show Password Length warning if exceeding 32 chars. + lblPasswordLength.Visible = txtPassword.Text.Length > 32; + } private void txtPassword_KeyDown(object sender, KeyEventArgs e) @@ -168,8 +172,9 @@ private void btnEncrypt_Click(object sender, EventArgs e) if (Settings.password_confirm) { var input = new frmInputBox(); - input.prompt = "Please retype the password to confirm."; - input.title = "Confirm password"; + input.prompt = "Please retype the User password to confirm."; + input.title = "Confirm User Password"; + input.password = true; input.ShowDialog(); // Modal, blocking call if (input.cancelled) { return; } @@ -177,9 +182,23 @@ private void btnEncrypt_Click(object sender, EventArgs e) // If password doesn't match, stop. if (input.result != txtPassword.Text) { - MessageBox.Show("Password does not match. Please retry."); + MessageBox.Show("User password does not match. Please retry."); return; } + + if (owner_password != "") + { + input.prompt = "An Owner password has been set. Please confirm Owner password."; + input.title = "Confirm Owner Password"; + input.password = true; + input.ShowDialog(); + if (input.cancelled) { return; } + if (input.result != owner_password) + { + MessageBox.Show("Owner password does not match. Please retry."); + return; + } + } } // See https://itextpdf.com/en/resources/faq/technical-support/itext-7/how-protect-already-existing-pdf-password @@ -212,7 +231,8 @@ private void btnEncrypt_Click(object sender, EventArgs e) PdfReader reader = new PdfReader(txtInputFile.Text); // Create a PdfReader with the input file. WriterProperties prop = new WriterProperties(); // Set properties of output - prop.SetStandardEncryption(Encoding.ASCII.GetBytes(txtPassword.Text), null, document_options, encryption_properties); // Enable encryption + + prop.SetStandardEncryption(Encoding.ASCII.GetBytes(txtPassword.Text), owner_password == "" ? null : Encoding.ASCII.GetBytes(owner_password), document_options, encryption_properties); // Enable encryption // Setting Owner Password to null generates random password. PdfWriter writer = new PdfWriter(txtOutputFile.Text, prop); // Set up the output file @@ -261,5 +281,23 @@ private void btnSettings_Click(object sender, EventArgs e) var settings = new frmSettings(); settings.ShowDialog(); } - } + + private void lnkPasswordOwner_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + var input = new frmInputBox(); + input.title = "Set Owner Password"; + input.prompt = "Specify Owner password.\r\n(Owner password allows the viewer to bypass all permissions and gain full control of the PDF file.)\r\nIf no Owner password is specified, a random one will be generated.\r\n Click Cancel to clear existing Owner password."; + input.password = true; + input.ShowDialog(); + if (input.cancelled) + { + owner_password = ""; + } + else + { + owner_password = input.result; + } + lblOwnerPasswordSet.Visible = (owner_password != ""); + } + } } diff --git a/frmMain.resx b/frmMain.resx index 9a8c581..f00f332 100644 --- a/frmMain.resx +++ b/frmMain.resx @@ -123,4 +123,292 @@ 184, 17 + + + + AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAAOABAADgAQAAAAAAAAAA + AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wAVIv8lFiH/lBYh + /9oWIf/3FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf/3FiH/2Rch/5MWJP8j////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wAXIv9xFiH/+hYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH/+Rcg/2////8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wAWIv9yFiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FSD/bv///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wAXHv8iFiH/+RYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//oVI/8k////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AFiH/lBYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FyH/kv///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////ABYh + /9oWIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + /9n///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wAWIf/3FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf/3////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8AFiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//////wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////ABYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//////8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wAWIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8AFiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//////wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////ABYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//////8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wAWIf//FiH//xYh + //8WIf//FiH//8LF///Q0///0NP//9DT//9QWP//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //+usv//0NP//9DT///Q0///0NP//9DT///Hyv//oKT//1BZ//8WIf//FiH//xYh//8WIf//FiH//8vN + ///Q0///0NP//9DT//8nMv//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8AFiH//xYh//8WIf//FiH//xYh///t7v//////////////////Xmb//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//09X/////////////////////////////////////////////trn//yIs + //8WIf//FiH//xYh///4+P//////////////////LDb//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////ABYh//8WIf//FiH//xYh//8WIf//7e7//////////////////15m + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//9PV//////////////////////////////// + ///////////////////FyP//GiT//xYh//8WIf//+Pj//////////////////yw2//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//////8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wAWIf//FiH//xYh//8WIf//FiH//+3u + //////////////////9eZv//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh///T1f////////// + ////////kZf//2Jp//+5vP///////////////////////3uB//8WIf//FiH///j4//////////////// + //8sNv//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AFiH//xYh + //8WIf//FiH//xYh///t7v//////////////////Xmb//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//09X//////////////////2px//8WIf//GCP//8XH///////////////////f4f//FiH//xYh + ///4+P//////////////////LDb//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH///// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////ABYh//8WIf//FiH//xYh//8WIf//7e7//////////////////+nq///g4f//4OH//9XX + //+nq///R1D//xYh//8WIf//FiH//9PV//////////////////9qcf//FiH//xYh//9haP////////// + /////////////zA6//8WIf//+Pj//////////////////8bJ///BxP//wcT//8HE//9wdv//FiH//xYh + //8WIf//FiH//xYh//////8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wAWIf//FiH//xYh//8WIf//FiH//+3u//////////////// + //////////////////////////////39//98g///FiH//xYh///T1f//////////////////anH//xYh + //8WIf//PEb///////////////////////9LU///FiH///j4//////////////////////////////// + ////////kJX//xYh//8WIf//FiH//xYh//8WIf//////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AFiH//xYh//8WIf//FiH//xYh + ///t7v///////////////////////////////////////////////////f3//0BJ//8WIf//09X///// + /////////////2px//8WIf//FiH//zpD////////////////////////TFT//xYh///4+P////////// + /////////////////////////////5CV//8WIf//FiH//xYh//8WIf//FiH//////wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////ABYh + //8WIf//FiH//xYh//8WIf//7e7//////////////////1xk//8mMP//QEn//9rc//////////////// + //+Ok///FiH//9PV//////////////////9qcf//FiH//xYh//9fZ////////////////////////y85 + //8WIf//+Pj//////////////////3J5//9ka///ZGv//2Rr//8+R///FiH//xYh//8WIf//FiH//xYh + //////8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wAWIf//FiH//xYh//8WIf//FiH//+3u//////////////////9QWf//FiH//xYh + //+an///////////////////o6f//xYh///T1f//////////////////anH//xYh//8XIv//v8L///// + /////////////9na//8WIf//FiH///j4//////////////////8sNv//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8AFiH//xYh//8WIf//FiH//xYh///t7v////////// + ////////i5D//2Rr//9+hP//7/D//////////////////4SJ//8WIf//09X//////////////////5ug + //9qcf//tLj///////////////////////9wd///FiH//xYh///4+P//////////////////j5T//4OJ + //+Dif//g4n//4OJ//9zev//FiH//xYh//8WIf//FiH//////wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////ABYh//8WIf//FiH//xYh + //8WIf//7e7///////////////////////////////////////////////////f3//8vOf//FiH//9PV + //////////////////////////////////////////////////++wf//GCP//xYh//8WIf//+Pj///// + ////////////////////////////////////////3d///xYh//8WIf//FiH//xYh//////8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wAWIf//FiH//xYh//8WIf//FiH//+3u//////////////////////////////////////////////X1 + //9fZ///FiH//xYh///T1f////////////////////////////////////////////+wtP//Hyr//xYh + //8WIf//FiH///j4/////////////////////////////////////////////93f//8WIf//FiH//xYh + //8WIf//////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8AFiH//xYh//8WIf//FiH//xYh///Cxf//0NP//9DT///Q0///0NP//9DT + ///Cxf//sLT//4KI//8wOv//FiH//xYh//8WIf//rrL//9DT///Q0///0NP//9DT///Kzf//ubz//5GX + //9HUP//FiH//xYh//8WIf//FiH//xYh///Lzf//0NP//9DT///Q0///0NP//9DT///Q0///0NP//9DT + //+2uf//FiH//xYh//8WIf//FiH//////wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////ABYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//////8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wAWIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8AFiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////ABYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//////8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wAWIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AFiH/9hYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH/9v// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////ABYh/9gWIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xUh/9b///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wAVIv+QFiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIP+O////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AFx//IRYh//gWIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf/3GSH/H////wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wAWIP9oFiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FyH/Zf// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////ABch/2UWIf/2FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh//8WIf//FiH//xYh + //8WIf/1FyH/Y////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AEiT/HBcg/4cWIv/NGCL68Bwl + 8/8cJfP/HCXz/xwl8/8cJfP/HCXz/xwl8/8XIv3xFyH/7hch/+4XIf/uFyH/7hch/+4XIf/uFyH/7hch + /+4XIf/uFyH/7hch/+4XIf/uFyH/7hch/+4XIf/uFyH/7hci/fEcJfP/HCXz/xwl8/8cJfP/HCXz/xwl + 8/8cJfP/GCL68Bch/8wXIP+GExz/G////wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AGNbRFpkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZlxHMv///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wBmXEcyZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2NbRFr///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wBjW0RaZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Zc + RzL///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8AZlxHMmRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9jW0Ra////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AY1tEWmRaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9mXEcy////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AGZcRzJkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/Y1tEWv// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AGNb + RFpkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZlxHMv///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wBmXEcyZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2NbRFr///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wBjW0RaZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2ZcRzL///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AZlxHMmRa + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9jW0Ra////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8AY1tEWmRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9mXEcy////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AGZcRzJkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/Y1tEWv///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AGNbRFpkWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZlxHMv///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wBmXEcyZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Nb + RFr///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wBjW0RaZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2ZcRzL///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AZlxHMmRaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9jW0Ra////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8AY1tEWmRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9mXEcy////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AGZc + RzJkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/Y1tEWv///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AGRZRVlkWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/YlhFNP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wBiWEU0ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RZRVn///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wBkWkRPZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2VaREf///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8AZVtGSWRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9jWUZN////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8AZllEPGRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9lWUZq////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AGNaRGxkWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/YllDOf///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AGhdRhZkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpFtf// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wBkW0a3ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/15eQxP///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AZFpF4GRaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRfpjXEck////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wBnWkUlZFpF+mRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRtz///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AGRa + RZtkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFlFrv///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wAAAAABY1lFsWRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkWX////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wBkXERAZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWUR4////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AZFlEe2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFxHPf///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8AAAAAAWRaRdJkWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RbRoeAgIAC////AP///wD///8A////AP///wD///8A////AP///wBVVVUDZFtEimRa + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpFzwAAAAH///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wBkW0ZUZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpG0WVcRU5mZjMF////AP///wD///8A////AFVV + VQZjWUZQZFpF0mRaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRE////8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AGRaRbpkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF72Na + RbZkWkWcZFpFnGNaRbZkWkXwZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + RbX///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wBoXkIbZFpF62RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaReliWEUa////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AGRcRz1kWkX2ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRfVlWEY6////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8AYltFRmRaRfRkWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRfNlWkRE////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wBiWEU0Y1pF32RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRd1mXEcy////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AGBgQBBlW0WYZFpF/WRa + Rf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/WRa + RpZmVUQP////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AGNdRixkWkSkZFpF92RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2RaRf9kWkX/ZFpF/2Ra + Rf9kWkX3ZVpFomVZRyv///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AGBgQBBkWUVcZVlEnWRaRcpkWkXqZFpF+mRa + RflkWkXqZFpFymRaRZxlWkZbYGBAEP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP// + /wD///8A//AAAAAAD///4AAAAAAH///AAAAAAAP//4AAAAAAAf//gAAAAAAB//+AAAAAAAH//4AAAAAA + Af//gAAAAAAB//+AAAAAAAH//4AAAAAAAf//gAAAAAAB//+AAAAAAAH//4AAAAAAAf//gAAAAAAB//+A + AAAAAAH//4AAAAAAAf//gAAAAAAB//+AAAAAAAH//4AAAAAAAf//gAAAAAAB//+AAAAAAAH//4AAAAAA + Af//gAAAAAAB//+AAAAAAAH//4AAAAAAAf//gAAAAAAB//+AAAAAAAH//4AAAAAAAf//gAAAAAAB//+A + AAAAAAH//4AAAAAAAf//gAAAAAAB//+AAAAAAAH//4AAAAAAAf//gAAAAAAB///AAAAAAAP//+AAAAAA + B///8AAAAAAP///+AP//AH////4A//8Af////gD//wB////+AP//AH////4A//8Af////gD//wB////+ + AP//AH////4A//8Af////gD//wB////+AP//AH////4A//8Af////gD//wB////+AP//AH////8Af/4A + /////wB//AD/////AD/8AP////8AD/AA/////4ADwAH/////wAAAA//////AAAAD/////+AAAAf///// + 8AAAD//////4AAAf//////wAAD///////wAA////////wAP///8= + + \ No newline at end of file diff --git a/frmSettings.Designer.cs b/frmSettings.Designer.cs index 1b37541..0df74f7 100644 --- a/frmSettings.Designer.cs +++ b/frmSettings.Designer.cs @@ -28,340 +28,381 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.lblVersion = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.dlgOpen = new System.Windows.Forms.OpenFileDialog(); - this.btnOK = new System.Windows.Forms.Button(); - this.btnCancel = new System.Windows.Forms.Button(); - this.lblVisitSite = new System.Windows.Forms.LinkLabel(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.chkOpen = new System.Windows.Forms.CheckBox(); - this.chkShowFolder = new System.Windows.Forms.CheckBox(); - this.chkCloseAfterCompletion = new System.Windows.Forms.CheckBox(); - this.btnRunBrowse = new System.Windows.Forms.Button(); - this.txtRun = new System.Windows.Forms.TextBox(); - this.chkRun = new System.Windows.Forms.CheckBox(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.chkDegradedPrinting = new System.Windows.Forms.CheckBox(); - this.chkAssembly = new System.Windows.Forms.CheckBox(); - this.chkScreenreaders = new System.Windows.Forms.CheckBox(); - this.chkForms = new System.Windows.Forms.CheckBox(); - this.chkNotations = new System.Windows.Forms.CheckBox(); - this.chkModifying = new System.Windows.Forms.CheckBox(); - this.chkCopying = new System.Windows.Forms.CheckBox(); - this.label2 = new System.Windows.Forms.Label(); - this.chkPrinting = new System.Windows.Forms.CheckBox(); - this.chkEncryptMetadata = new System.Windows.Forms.CheckBox(); - this.label3 = new System.Windows.Forms.Label(); - this.cboEncryptionType = new System.Windows.Forms.ComboBox(); - this.chkPasswordConfirmation = new System.Windows.Forms.CheckBox(); - this.groupBox1.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.SuspendLayout(); - // - // lblVersion - // - this.lblVersion.AutoSize = true; - this.lblVersion.Location = new System.Drawing.Point(12, 366); - this.lblVersion.Name = "lblVersion"; - this.lblVersion.Size = new System.Drawing.Size(72, 17); - this.lblVersion.TabIndex = 0; - this.lblVersion.Text = "Version: []"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 383); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(255, 17); - this.label1.TabIndex = 1; - this.label1.Text = "Copyright 2019. Licensed under AGPL."; - // - // dlgOpen - // - this.dlgOpen.Filter = "Executable files|*.exe,*.bat,*.com|All files|*.*"; - // - // btnOK - // - this.btnOK.Location = new System.Drawing.Point(434, 12); - this.btnOK.Name = "btnOK"; - this.btnOK.Size = new System.Drawing.Size(97, 39); - this.btnOK.TabIndex = 8; - this.btnOK.Text = "OK"; - this.btnOK.UseVisualStyleBackColor = true; - this.btnOK.Click += new System.EventHandler(this.btnOK_Click); - // - // btnCancel - // - this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(434, 58); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(97, 40); - this.btnCancel.TabIndex = 9; - this.btnCancel.Text = "Cancel"; - this.btnCancel.UseVisualStyleBackColor = true; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - // - // lblVisitSite - // - this.lblVisitSite.AutoSize = true; - this.lblVisitSite.Location = new System.Drawing.Point(389, 383); - this.lblVisitSite.Name = "lblVisitSite"; - this.lblVisitSite.Size = new System.Drawing.Size(142, 17); - this.lblVisitSite.TabIndex = 14; - this.lblVisitSite.TabStop = true; - this.lblVisitSite.Text = "https://pdfencrypt.net"; - this.lblVisitSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lblVisitSite_LinkClicked); - // - // groupBox1 - // - this.groupBox1.Controls.Add(this.chkOpen); - this.groupBox1.Controls.Add(this.chkShowFolder); - this.groupBox1.Controls.Add(this.chkCloseAfterCompletion); - this.groupBox1.Controls.Add(this.btnRunBrowse); - this.groupBox1.Controls.Add(this.txtRun); - this.groupBox1.Controls.Add(this.chkRun); - this.groupBox1.Location = new System.Drawing.Point(15, 245); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(516, 118); - this.groupBox1.TabIndex = 15; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "After successful encryption:"; - // - // chkOpen - // - this.chkOpen.AutoSize = true; - this.chkOpen.Location = new System.Drawing.Point(283, 31); - this.chkOpen.Name = "chkOpen"; - this.chkOpen.Size = new System.Drawing.Size(160, 21); - this.chkOpen.TabIndex = 19; - this.chkOpen.Text = "Open destination file"; - this.chkOpen.UseVisualStyleBackColor = true; - // - // chkShowFolder - // - this.chkShowFolder.AutoSize = true; - this.chkShowFolder.Location = new System.Drawing.Point(20, 30); - this.chkShowFolder.Name = "chkShowFolder"; - this.chkShowFolder.Size = new System.Drawing.Size(230, 21); - this.chkShowFolder.TabIndex = 18; - this.chkShowFolder.Text = "Show destination file in Explorer"; - this.chkShowFolder.UseVisualStyleBackColor = true; - // - // chkCloseAfterCompletion - // - this.chkCloseAfterCompletion.AutoSize = true; - this.chkCloseAfterCompletion.Location = new System.Drawing.Point(20, 57); - this.chkCloseAfterCompletion.Name = "chkCloseAfterCompletion"; - this.chkCloseAfterCompletion.Size = new System.Drawing.Size(144, 21); - this.chkCloseAfterCompletion.TabIndex = 17; - this.chkCloseAfterCompletion.Text = "Close PDFEncrypt"; - this.chkCloseAfterCompletion.UseVisualStyleBackColor = true; - // - // btnRunBrowse - // - this.btnRunBrowse.Location = new System.Drawing.Point(455, 84); - this.btnRunBrowse.Name = "btnRunBrowse"; - this.btnRunBrowse.Size = new System.Drawing.Size(49, 23); - this.btnRunBrowse.TabIndex = 16; - this.btnRunBrowse.Text = "..."; - this.btnRunBrowse.UseVisualStyleBackColor = true; - this.btnRunBrowse.Click += new System.EventHandler(this.btnRunBrowse_Click); - // - // txtRun - // - this.txtRun.Location = new System.Drawing.Point(145, 84); - this.txtRun.Name = "txtRun"; - this.txtRun.Size = new System.Drawing.Size(304, 22); - this.txtRun.TabIndex = 15; - // - // chkRun - // - this.chkRun.AutoSize = true; - this.chkRun.Location = new System.Drawing.Point(20, 84); - this.chkRun.Name = "chkRun"; - this.chkRun.Size = new System.Drawing.Size(129, 21); - this.chkRun.TabIndex = 14; - this.chkRun.Text = "Run a program:"; - this.chkRun.UseVisualStyleBackColor = true; - // - // groupBox2 - // - this.groupBox2.Controls.Add(this.chkDegradedPrinting); - this.groupBox2.Controls.Add(this.chkAssembly); - this.groupBox2.Controls.Add(this.chkScreenreaders); - this.groupBox2.Controls.Add(this.chkForms); - this.groupBox2.Controls.Add(this.chkNotations); - this.groupBox2.Controls.Add(this.chkModifying); - this.groupBox2.Controls.Add(this.chkCopying); - this.groupBox2.Controls.Add(this.label2); - this.groupBox2.Controls.Add(this.chkPrinting); - this.groupBox2.Controls.Add(this.chkEncryptMetadata); - this.groupBox2.Controls.Add(this.label3); - this.groupBox2.Controls.Add(this.cboEncryptionType); - this.groupBox2.Controls.Add(this.chkPasswordConfirmation); - this.groupBox2.Location = new System.Drawing.Point(15, 12); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(402, 227); - this.groupBox2.TabIndex = 16; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "Encryption options:"; - // - // chkDegradedPrinting - // - this.chkDegradedPrinting.AutoSize = true; - this.chkDegradedPrinting.Location = new System.Drawing.Point(213, 78); - this.chkDegradedPrinting.Name = "chkDegradedPrinting"; - this.chkDegradedPrinting.Size = new System.Drawing.Size(172, 21); - this.chkDegradedPrinting.TabIndex = 25; - this.chkDegradedPrinting.Text = "Allow printing (low-res)"; - this.chkDegradedPrinting.UseVisualStyleBackColor = true; - // - // chkAssembly - // - this.chkAssembly.AutoSize = true; - this.chkAssembly.Location = new System.Drawing.Point(36, 159); - this.chkAssembly.Name = "chkAssembly"; - this.chkAssembly.Size = new System.Drawing.Size(125, 21); - this.chkAssembly.TabIndex = 24; - this.chkAssembly.Text = "Allow assembly"; - this.chkAssembly.UseVisualStyleBackColor = true; - // - // chkScreenreaders - // - this.chkScreenreaders.AutoSize = true; - this.chkScreenreaders.Location = new System.Drawing.Point(213, 159); - this.chkScreenreaders.Name = "chkScreenreaders"; - this.chkScreenreaders.Size = new System.Drawing.Size(158, 21); - this.chkScreenreaders.TabIndex = 23; - this.chkScreenreaders.Text = "Allow screenreaders"; - this.chkScreenreaders.UseVisualStyleBackColor = true; - // - // chkForms - // - this.chkForms.AutoSize = true; - this.chkForms.Location = new System.Drawing.Point(213, 132); - this.chkForms.Name = "chkForms"; - this.chkForms.Size = new System.Drawing.Size(111, 21); - this.chkForms.TabIndex = 22; - this.chkForms.Text = "Allow form fill"; - this.chkForms.UseVisualStyleBackColor = true; - // - // chkNotations - // - this.chkNotations.AutoSize = true; - this.chkNotations.Location = new System.Drawing.Point(213, 105); - this.chkNotations.Name = "chkNotations"; - this.chkNotations.Size = new System.Drawing.Size(185, 21); - this.chkNotations.TabIndex = 21; - this.chkNotations.Text = "Allow modify annotations"; - this.chkNotations.UseVisualStyleBackColor = true; - // - // chkModifying - // - this.chkModifying.AutoSize = true; - this.chkModifying.Location = new System.Drawing.Point(36, 105); - this.chkModifying.Name = "chkModifying"; - this.chkModifying.Size = new System.Drawing.Size(126, 21); - this.chkModifying.TabIndex = 20; - this.chkModifying.Text = "Allow modifying"; - this.chkModifying.UseVisualStyleBackColor = true; - // - // chkCopying - // - this.chkCopying.AutoSize = true; - this.chkCopying.Location = new System.Drawing.Point(36, 132); - this.chkCopying.Name = "chkCopying"; - this.chkCopying.Size = new System.Drawing.Size(115, 21); - this.chkCopying.TabIndex = 19; - this.chkCopying.Text = "Allow copying"; - this.chkCopying.UseVisualStyleBackColor = true; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(17, 58); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(84, 17); - this.label2.TabIndex = 18; - this.label2.Text = "Permissions"; - // - // chkPrinting - // - this.chkPrinting.AutoSize = true; - this.chkPrinting.Location = new System.Drawing.Point(36, 78); - this.chkPrinting.Name = "chkPrinting"; - this.chkPrinting.Size = new System.Drawing.Size(163, 21); - this.chkPrinting.TabIndex = 17; - this.chkPrinting.Text = "Allow printing (hi-res)"; - this.chkPrinting.UseVisualStyleBackColor = true; - // - // chkEncryptMetadata - // - this.chkEncryptMetadata.AutoSize = true; - this.chkEncryptMetadata.Location = new System.Drawing.Point(213, 30); - this.chkEncryptMetadata.Name = "chkEncryptMetadata"; - this.chkEncryptMetadata.Size = new System.Drawing.Size(141, 21); - this.chkEncryptMetadata.TabIndex = 16; - this.chkEncryptMetadata.Text = "Encrypt metadata"; - this.chkEncryptMetadata.UseVisualStyleBackColor = true; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(6, 195); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(71, 17); - this.label3.TabIndex = 15; - this.label3.Text = "Algorithm:"; - this.label3.Click += new System.EventHandler(this.label3_Click); - // - // cboEncryptionType - // - this.cboEncryptionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboEncryptionType.FormattingEnabled = true; - this.cboEncryptionType.Location = new System.Drawing.Point(83, 192); - this.cboEncryptionType.Name = "cboEncryptionType"; - this.cboEncryptionType.Size = new System.Drawing.Size(304, 24); - this.cboEncryptionType.TabIndex = 14; - this.cboEncryptionType.SelectedIndexChanged += new System.EventHandler(this.cboEncryptionType_SelectedIndexChanged); - // - // chkPasswordConfirmation - // - this.chkPasswordConfirmation.AutoSize = true; - this.chkPasswordConfirmation.Location = new System.Drawing.Point(20, 30); - this.chkPasswordConfirmation.Name = "chkPasswordConfirmation"; - this.chkPasswordConfirmation.Size = new System.Drawing.Size(142, 21); - this.chkPasswordConfirmation.TabIndex = 13; - this.chkPasswordConfirmation.Text = "Confirm password"; - this.chkPasswordConfirmation.UseVisualStyleBackColor = true; - // - // frmSettings - // - this.AcceptButton = this.btnOK; - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.CancelButton = this.btnCancel; - this.ClientSize = new System.Drawing.Size(541, 409); - this.Controls.Add(this.groupBox2); - this.Controls.Add(this.groupBox1); - this.Controls.Add(this.lblVisitSite); - this.Controls.Add(this.btnCancel); - this.Controls.Add(this.btnOK); - this.Controls.Add(this.label1); - this.Controls.Add(this.lblVersion); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "frmSettings"; - this.Text = "Settings"; - this.Load += new System.EventHandler(this.frmSettings_Load); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); + this.lblVersion = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.dlgOpen = new System.Windows.Forms.OpenFileDialog(); + this.btnOK = new System.Windows.Forms.Button(); + this.btnCancel = new System.Windows.Forms.Button(); + this.lblVisitSite = new System.Windows.Forms.LinkLabel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.chkOpen = new System.Windows.Forms.CheckBox(); + this.chkShowFolder = new System.Windows.Forms.CheckBox(); + this.chkCloseAfterCompletion = new System.Windows.Forms.CheckBox(); + this.btnRunBrowse = new System.Windows.Forms.Button(); + this.txtRun = new System.Windows.Forms.TextBox(); + this.chkRun = new System.Windows.Forms.CheckBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.chkDegradedPrinting = new System.Windows.Forms.CheckBox(); + this.chkAssembly = new System.Windows.Forms.CheckBox(); + this.chkScreenreaders = new System.Windows.Forms.CheckBox(); + this.chkForms = new System.Windows.Forms.CheckBox(); + this.chkNotations = new System.Windows.Forms.CheckBox(); + this.chkModifying = new System.Windows.Forms.CheckBox(); + this.chkCopying = new System.Windows.Forms.CheckBox(); + this.label2 = new System.Windows.Forms.Label(); + this.chkPrinting = new System.Windows.Forms.CheckBox(); + this.chkEncryptMetadata = new System.Windows.Forms.CheckBox(); + this.label3 = new System.Windows.Forms.Label(); + this.cboEncryptionType = new System.Windows.Forms.ComboBox(); + this.chkPasswordConfirmation = new System.Windows.Forms.CheckBox(); + this.label4 = new System.Windows.Forms.Label(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.SuspendLayout(); + // + // lblVersion + // + this.lblVersion.AutoSize = true; + this.lblVersion.Location = new System.Drawing.Point(9, 322); + this.lblVersion.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblVersion.Name = "lblVersion"; + this.lblVersion.Size = new System.Drawing.Size(54, 13); + this.lblVersion.TabIndex = 0; + this.lblVersion.Text = "Version: []"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(9, 336); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(218, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Copyright 2019-2022. Licensed under AGPL."; + // + // dlgOpen + // + this.dlgOpen.Filter = "Executable files|*.exe,*.bat,*.com|All files|*.*"; + // + // btnOK + // + this.btnOK.Location = new System.Drawing.Point(330, 10); + this.btnOK.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(73, 32); + this.btnOK.TabIndex = 8; + this.btnOK.Text = "OK"; + this.btnOK.UseVisualStyleBackColor = true; + this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + // + // btnCancel + // + this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.btnCancel.Location = new System.Drawing.Point(330, 46); + this.btnCancel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(73, 32); + this.btnCancel.TabIndex = 9; + this.btnCancel.Text = "Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // lblVisitSite + // + this.lblVisitSite.AutoSize = true; + this.lblVisitSite.Location = new System.Drawing.Point(292, 336); + this.lblVisitSite.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblVisitSite.Name = "lblVisitSite"; + this.lblVisitSite.Size = new System.Drawing.Size(111, 13); + this.lblVisitSite.TabIndex = 14; + this.lblVisitSite.TabStop = true; + this.lblVisitSite.Text = "https://pdfencrypt.net"; + this.lblVisitSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lblVisitSite_LinkClicked); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.chkOpen); + this.groupBox1.Controls.Add(this.chkShowFolder); + this.groupBox1.Controls.Add(this.chkCloseAfterCompletion); + this.groupBox1.Controls.Add(this.btnRunBrowse); + this.groupBox1.Controls.Add(this.txtRun); + this.groupBox1.Controls.Add(this.chkRun); + this.groupBox1.Location = new System.Drawing.Point(11, 224); + this.groupBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.groupBox1.Size = new System.Drawing.Size(392, 96); + this.groupBox1.TabIndex = 15; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "After successful encryption:"; + // + // chkOpen + // + this.chkOpen.AutoSize = true; + this.chkOpen.Location = new System.Drawing.Point(212, 25); + this.chkOpen.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkOpen.Name = "chkOpen"; + this.chkOpen.Size = new System.Drawing.Size(122, 17); + this.chkOpen.TabIndex = 19; + this.chkOpen.Text = "Open destination file"; + this.chkOpen.UseVisualStyleBackColor = true; + // + // chkShowFolder + // + this.chkShowFolder.AutoSize = true; + this.chkShowFolder.Location = new System.Drawing.Point(15, 24); + this.chkShowFolder.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkShowFolder.Name = "chkShowFolder"; + this.chkShowFolder.Size = new System.Drawing.Size(175, 17); + this.chkShowFolder.TabIndex = 18; + this.chkShowFolder.Text = "Show destination file in Explorer"; + this.chkShowFolder.UseVisualStyleBackColor = true; + // + // chkCloseAfterCompletion + // + this.chkCloseAfterCompletion.AutoSize = true; + this.chkCloseAfterCompletion.Location = new System.Drawing.Point(15, 46); + this.chkCloseAfterCompletion.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkCloseAfterCompletion.Name = "chkCloseAfterCompletion"; + this.chkCloseAfterCompletion.Size = new System.Drawing.Size(112, 17); + this.chkCloseAfterCompletion.TabIndex = 17; + this.chkCloseAfterCompletion.Text = "Close PDFEncrypt"; + this.chkCloseAfterCompletion.UseVisualStyleBackColor = true; + // + // btnRunBrowse + // + this.btnRunBrowse.Location = new System.Drawing.Point(341, 68); + this.btnRunBrowse.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnRunBrowse.Name = "btnRunBrowse"; + this.btnRunBrowse.Size = new System.Drawing.Size(37, 19); + this.btnRunBrowse.TabIndex = 16; + this.btnRunBrowse.Text = "..."; + this.btnRunBrowse.UseVisualStyleBackColor = true; + this.btnRunBrowse.Click += new System.EventHandler(this.btnRunBrowse_Click); + // + // txtRun + // + this.txtRun.Location = new System.Drawing.Point(109, 68); + this.txtRun.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.txtRun.Name = "txtRun"; + this.txtRun.Size = new System.Drawing.Size(229, 20); + this.txtRun.TabIndex = 15; + // + // chkRun + // + this.chkRun.AutoSize = true; + this.chkRun.Location = new System.Drawing.Point(15, 68); + this.chkRun.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkRun.Name = "chkRun"; + this.chkRun.Size = new System.Drawing.Size(99, 17); + this.chkRun.TabIndex = 14; + this.chkRun.Text = "Run a program:"; + this.chkRun.UseVisualStyleBackColor = true; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.label4); + this.groupBox2.Controls.Add(this.chkDegradedPrinting); + this.groupBox2.Controls.Add(this.chkAssembly); + this.groupBox2.Controls.Add(this.chkScreenreaders); + this.groupBox2.Controls.Add(this.chkForms); + this.groupBox2.Controls.Add(this.chkNotations); + this.groupBox2.Controls.Add(this.chkModifying); + this.groupBox2.Controls.Add(this.chkCopying); + this.groupBox2.Controls.Add(this.label2); + this.groupBox2.Controls.Add(this.chkPrinting); + this.groupBox2.Controls.Add(this.chkEncryptMetadata); + this.groupBox2.Controls.Add(this.label3); + this.groupBox2.Controls.Add(this.cboEncryptionType); + this.groupBox2.Controls.Add(this.chkPasswordConfirmation); + this.groupBox2.Location = new System.Drawing.Point(11, 10); + this.groupBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.groupBox2.Size = new System.Drawing.Size(311, 210); + this.groupBox2.TabIndex = 16; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Encryption options:"; + // + // chkDegradedPrinting + // + this.chkDegradedPrinting.AutoSize = true; + this.chkDegradedPrinting.Location = new System.Drawing.Point(160, 63); + this.chkDegradedPrinting.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkDegradedPrinting.Name = "chkDegradedPrinting"; + this.chkDegradedPrinting.Size = new System.Drawing.Size(130, 17); + this.chkDegradedPrinting.TabIndex = 25; + this.chkDegradedPrinting.Text = "Allow printing (low-res)"; + this.chkDegradedPrinting.UseVisualStyleBackColor = true; + // + // chkAssembly + // + this.chkAssembly.AutoSize = true; + this.chkAssembly.Location = new System.Drawing.Point(27, 129); + this.chkAssembly.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkAssembly.Name = "chkAssembly"; + this.chkAssembly.Size = new System.Drawing.Size(97, 17); + this.chkAssembly.TabIndex = 24; + this.chkAssembly.Text = "Allow assembly"; + this.chkAssembly.UseVisualStyleBackColor = true; + // + // chkScreenreaders + // + this.chkScreenreaders.AutoSize = true; + this.chkScreenreaders.Location = new System.Drawing.Point(160, 129); + this.chkScreenreaders.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkScreenreaders.Name = "chkScreenreaders"; + this.chkScreenreaders.Size = new System.Drawing.Size(121, 17); + this.chkScreenreaders.TabIndex = 23; + this.chkScreenreaders.Text = "Allow screenreaders"; + this.chkScreenreaders.UseVisualStyleBackColor = true; + // + // chkForms + // + this.chkForms.AutoSize = true; + this.chkForms.Location = new System.Drawing.Point(160, 107); + this.chkForms.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkForms.Name = "chkForms"; + this.chkForms.Size = new System.Drawing.Size(86, 17); + this.chkForms.TabIndex = 22; + this.chkForms.Text = "Allow form fill"; + this.chkForms.UseVisualStyleBackColor = true; + // + // chkNotations + // + this.chkNotations.AutoSize = true; + this.chkNotations.Location = new System.Drawing.Point(160, 85); + this.chkNotations.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkNotations.Name = "chkNotations"; + this.chkNotations.Size = new System.Drawing.Size(142, 17); + this.chkNotations.TabIndex = 21; + this.chkNotations.Text = "Allow modify annotations"; + this.chkNotations.UseVisualStyleBackColor = true; + // + // chkModifying + // + this.chkModifying.AutoSize = true; + this.chkModifying.Location = new System.Drawing.Point(27, 85); + this.chkModifying.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkModifying.Name = "chkModifying"; + this.chkModifying.Size = new System.Drawing.Size(98, 17); + this.chkModifying.TabIndex = 20; + this.chkModifying.Text = "Allow modifying"; + this.chkModifying.UseVisualStyleBackColor = true; + // + // chkCopying + // + this.chkCopying.AutoSize = true; + this.chkCopying.Location = new System.Drawing.Point(27, 107); + this.chkCopying.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkCopying.Name = "chkCopying"; + this.chkCopying.Size = new System.Drawing.Size(91, 17); + this.chkCopying.TabIndex = 19; + this.chkCopying.Text = "Allow copying"; + this.chkCopying.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(13, 47); + this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(62, 13); + this.label2.TabIndex = 18; + this.label2.Text = "Permissions"; + // + // chkPrinting + // + this.chkPrinting.AutoSize = true; + this.chkPrinting.Location = new System.Drawing.Point(27, 63); + this.chkPrinting.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkPrinting.Name = "chkPrinting"; + this.chkPrinting.Size = new System.Drawing.Size(122, 17); + this.chkPrinting.TabIndex = 17; + this.chkPrinting.Text = "Allow printing (hi-res)"; + this.chkPrinting.UseVisualStyleBackColor = true; + // + // chkEncryptMetadata + // + this.chkEncryptMetadata.AutoSize = true; + this.chkEncryptMetadata.Location = new System.Drawing.Point(160, 24); + this.chkEncryptMetadata.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkEncryptMetadata.Name = "chkEncryptMetadata"; + this.chkEncryptMetadata.Size = new System.Drawing.Size(109, 17); + this.chkEncryptMetadata.TabIndex = 16; + this.chkEncryptMetadata.Text = "Encrypt metadata"; + this.chkEncryptMetadata.UseVisualStyleBackColor = true; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(4, 182); + this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 13); + this.label3.TabIndex = 15; + this.label3.Text = "Algorithm:"; + this.label3.Click += new System.EventHandler(this.label3_Click); + // + // cboEncryptionType + // + this.cboEncryptionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboEncryptionType.FormattingEnabled = true; + this.cboEncryptionType.Location = new System.Drawing.Point(62, 180); + this.cboEncryptionType.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cboEncryptionType.Name = "cboEncryptionType"; + this.cboEncryptionType.Size = new System.Drawing.Size(229, 21); + this.cboEncryptionType.TabIndex = 14; + this.cboEncryptionType.SelectedIndexChanged += new System.EventHandler(this.cboEncryptionType_SelectedIndexChanged); + // + // chkPasswordConfirmation + // + this.chkPasswordConfirmation.AutoSize = true; + this.chkPasswordConfirmation.Location = new System.Drawing.Point(15, 24); + this.chkPasswordConfirmation.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.chkPasswordConfirmation.Name = "chkPasswordConfirmation"; + this.chkPasswordConfirmation.Size = new System.Drawing.Size(109, 17); + this.chkPasswordConfirmation.TabIndex = 13; + this.chkPasswordConfirmation.Text = "Confirm password"; + this.chkPasswordConfirmation.UseVisualStyleBackColor = true; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.label4.Location = new System.Drawing.Point(23, 150); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(258, 13); + this.label4.TabIndex = 26; + this.label4.Text = "These permissions are ignored by some PDF viewers."; + // + // frmSettings + // + this.AcceptButton = this.btnOK; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.btnCancel; + this.ClientSize = new System.Drawing.Size(413, 355); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.lblVisitSite); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOK); + this.Controls.Add(this.label1); + this.Controls.Add(this.lblVersion); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "frmSettings"; + this.Text = "Settings"; + this.Load += new System.EventHandler(this.frmSettings_Load); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -394,5 +435,6 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox chkModifying; private System.Windows.Forms.CheckBox chkCopying; private System.Windows.Forms.Label label2; - } + private System.Windows.Forms.Label label4; + } } \ No newline at end of file diff --git a/logo2.ico b/logo2.ico new file mode 100644 index 0000000..4c8b0f9 Binary files /dev/null and b/logo2.ico differ