diff --git a/Controls.DocumentViewer/DocumentViewer.Designer.vb b/Controls.DocumentViewer/DocumentViewer.Designer.vb index 82974584..3015e767 100644 --- a/Controls.DocumentViewer/DocumentViewer.Designer.vb +++ b/Controls.DocumentViewer/DocumentViewer.Designer.vb @@ -108,7 +108,6 @@ Partial Class DocumentViewer Me.GdViewer.PdfEnableFileLinks = True Me.GdViewer.PdfEnableLinks = True Me.GdViewer.PdfIncreaseTextContrast = False - Me.GdViewer.PdfRasterizerEngine = GdPicture14.PdfRasterizerEngine.PdfRasterizerEngineHybrid Me.GdViewer.PdfShowDialogForPassword = True Me.GdViewer.PdfShowOpenFileDialogForDecryption = True Me.GdViewer.PdfVerifyDigitalCertificates = False diff --git a/Controls.DocumentViewer/frmViewerSettings.Designer.vb b/Controls.DocumentViewer/frmViewerSettings.Designer.vb index a7312684..37e0efc6 100644 --- a/Controls.DocumentViewer/frmViewerSettings.Designer.vb +++ b/Controls.DocumentViewer/frmViewerSettings.Designer.vb @@ -23,8 +23,6 @@ Partial Class frmViewerSettings _ Private Sub InitializeComponent() Me.GroupBox4 = New System.Windows.Forms.GroupBox() - Me.Label7 = New System.Windows.Forms.Label() - Me.cbPDFRenderingEngine = New System.Windows.Forms.ComboBox() Me.chkPDFVerifyDigitalCertificates = New System.Windows.Forms.CheckBox() Me.chkPDFIncreaseTextContrast = New System.Windows.Forms.CheckBox() Me.chkPDFEnableLinks = New System.Windows.Forms.CheckBox() @@ -65,8 +63,6 @@ Partial Class frmViewerSettings ' 'GroupBox4 ' - Me.GroupBox4.Controls.Add(Me.Label7) - Me.GroupBox4.Controls.Add(Me.cbPDFRenderingEngine) Me.GroupBox4.Controls.Add(Me.chkPDFVerifyDigitalCertificates) Me.GroupBox4.Controls.Add(Me.chkPDFIncreaseTextContrast) Me.GroupBox4.Controls.Add(Me.chkPDFEnableLinks) @@ -79,29 +75,11 @@ Partial Class frmViewerSettings Me.GroupBox4.TabStop = False Me.GroupBox4.Text = "PDF viewing options" ' - 'Label7 - ' - Me.Label7.AutoSize = True - Me.Label7.Location = New System.Drawing.Point(8, 122) - Me.Label7.Name = "Label7" - Me.Label7.Size = New System.Drawing.Size(108, 13) - Me.Label7.TabIndex = 6 - Me.Label7.Text = "PDF rasterizer engine" - ' - 'cbPDFRenderingEngine - ' - Me.cbPDFRenderingEngine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList - Me.cbPDFRenderingEngine.FormattingEnabled = True - Me.cbPDFRenderingEngine.Location = New System.Drawing.Point(122, 118) - Me.cbPDFRenderingEngine.Name = "cbPDFRenderingEngine" - Me.cbPDFRenderingEngine.Size = New System.Drawing.Size(121, 21) - Me.cbPDFRenderingEngine.TabIndex = 19 - ' 'chkPDFVerifyDigitalCertificates ' Me.chkPDFVerifyDigitalCertificates.AutoSize = True Me.chkPDFVerifyDigitalCertificates.CheckAlign = System.Drawing.ContentAlignment.MiddleRight - Me.chkPDFVerifyDigitalCertificates.Location = New System.Drawing.Point(6, 146) + Me.chkPDFVerifyDigitalCertificates.Location = New System.Drawing.Point(6, 119) Me.chkPDFVerifyDigitalCertificates.Name = "chkPDFVerifyDigitalCertificates" Me.chkPDFVerifyDigitalCertificates.Size = New System.Drawing.Size(136, 17) Me.chkPDFVerifyDigitalCertificates.TabIndex = 20 @@ -440,8 +418,6 @@ Partial Class frmViewerSettings End Sub Friend WithEvents GroupBox4 As GroupBox - Friend WithEvents Label7 As Label - Friend WithEvents cbPDFRenderingEngine As ComboBox Friend WithEvents chkPDFVerifyDigitalCertificates As CheckBox Friend WithEvents chkPDFIncreaseTextContrast As CheckBox Friend WithEvents chkPDFEnableLinks As CheckBox diff --git a/Controls.DocumentViewer/frmViewerSettings.vb b/Controls.DocumentViewer/frmViewerSettings.vb index e796d7c0..a7232461 100644 --- a/Controls.DocumentViewer/frmViewerSettings.vb +++ b/Controls.DocumentViewer/frmViewerSettings.vb @@ -42,11 +42,6 @@ Public Class frmViewerSettings {DisplayQuality.DisplayQualityBicubicHQ, "Bicubic HQ"}, {DisplayQuality.DisplayQualityAutomatic, "Automatic"} } - Private ReadOnly _renderingEngines As New Dictionary(Of PdfRasterizerEngine, String) From { - {PdfRasterizerEngine.PdfRasterizerEngineGdiplus, "GDI+"}, - {PdfRasterizerEngine.PdfRasterizerEngineWPF, "WPF"}, - {PdfRasterizerEngine.PdfRasterizerEngineHybrid, "Hybrid"} - } Private ReadOnly _displayPageModes As New Dictionary(Of PageDisplayMode, String) From { {PageDisplayMode.MultiplePagesView, "Multiple pages"}, {PageDisplayMode.SinglePageView, "Single page"} @@ -70,9 +65,6 @@ Public Class frmViewerSettings For Each item In _displayQualities cbDisplayQuality.Items.Add(item.Value) Next - For Each item In _renderingEngines - cbPDFRenderingEngine.Items.Add(item.Value) - Next For Each item In _displayPageModes cbPageDisplayMode.Items.Add(item.Value) Next @@ -98,7 +90,6 @@ Public Class frmViewerSettings chkPDFEnableFileLinks.Checked = _owner.PdfEnableFileLinks chkPDFEnableLinks.Checked = _owner.PdfEnableLinks chkPDFIncreaseTextContrast.Checked = _owner.PdfIncreaseTextContrast - cbPDFRenderingEngine.SelectedItem = _renderingEngines(_owner.PdfRasterizerEngine) chkPDFVerifyDigitalCertificates.Checked = _owner.PdfVerifyDigitalCertificates End Sub @@ -106,8 +97,4 @@ Public Class frmViewerSettings End Sub - Private Sub btnApply_Click(sender As Object, e As EventArgs) Handles btnApply.Click - - End Sub - End Class \ No newline at end of file