DocumentViewer: remove pdf engine settings
This commit is contained in:
parent
00222efb88
commit
964958334b
@ -108,7 +108,6 @@ Partial Class DocumentViewer
|
|||||||
Me.GdViewer.PdfEnableFileLinks = True
|
Me.GdViewer.PdfEnableFileLinks = True
|
||||||
Me.GdViewer.PdfEnableLinks = True
|
Me.GdViewer.PdfEnableLinks = True
|
||||||
Me.GdViewer.PdfIncreaseTextContrast = False
|
Me.GdViewer.PdfIncreaseTextContrast = False
|
||||||
Me.GdViewer.PdfRasterizerEngine = GdPicture14.PdfRasterizerEngine.PdfRasterizerEngineHybrid
|
|
||||||
Me.GdViewer.PdfShowDialogForPassword = True
|
Me.GdViewer.PdfShowDialogForPassword = True
|
||||||
Me.GdViewer.PdfShowOpenFileDialogForDecryption = True
|
Me.GdViewer.PdfShowOpenFileDialogForDecryption = True
|
||||||
Me.GdViewer.PdfVerifyDigitalCertificates = False
|
Me.GdViewer.PdfVerifyDigitalCertificates = False
|
||||||
|
|||||||
@ -23,8 +23,6 @@ Partial Class frmViewerSettings
|
|||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.GroupBox4 = New System.Windows.Forms.GroupBox()
|
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.chkPDFVerifyDigitalCertificates = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkPDFIncreaseTextContrast = New System.Windows.Forms.CheckBox()
|
Me.chkPDFIncreaseTextContrast = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkPDFEnableLinks = New System.Windows.Forms.CheckBox()
|
Me.chkPDFEnableLinks = New System.Windows.Forms.CheckBox()
|
||||||
@ -65,8 +63,6 @@ Partial Class frmViewerSettings
|
|||||||
'
|
'
|
||||||
'GroupBox4
|
'GroupBox4
|
||||||
'
|
'
|
||||||
Me.GroupBox4.Controls.Add(Me.Label7)
|
|
||||||
Me.GroupBox4.Controls.Add(Me.cbPDFRenderingEngine)
|
|
||||||
Me.GroupBox4.Controls.Add(Me.chkPDFVerifyDigitalCertificates)
|
Me.GroupBox4.Controls.Add(Me.chkPDFVerifyDigitalCertificates)
|
||||||
Me.GroupBox4.Controls.Add(Me.chkPDFIncreaseTextContrast)
|
Me.GroupBox4.Controls.Add(Me.chkPDFIncreaseTextContrast)
|
||||||
Me.GroupBox4.Controls.Add(Me.chkPDFEnableLinks)
|
Me.GroupBox4.Controls.Add(Me.chkPDFEnableLinks)
|
||||||
@ -79,29 +75,11 @@ Partial Class frmViewerSettings
|
|||||||
Me.GroupBox4.TabStop = False
|
Me.GroupBox4.TabStop = False
|
||||||
Me.GroupBox4.Text = "PDF viewing options"
|
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
|
'chkPDFVerifyDigitalCertificates
|
||||||
'
|
'
|
||||||
Me.chkPDFVerifyDigitalCertificates.AutoSize = True
|
Me.chkPDFVerifyDigitalCertificates.AutoSize = True
|
||||||
Me.chkPDFVerifyDigitalCertificates.CheckAlign = System.Drawing.ContentAlignment.MiddleRight
|
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.Name = "chkPDFVerifyDigitalCertificates"
|
||||||
Me.chkPDFVerifyDigitalCertificates.Size = New System.Drawing.Size(136, 17)
|
Me.chkPDFVerifyDigitalCertificates.Size = New System.Drawing.Size(136, 17)
|
||||||
Me.chkPDFVerifyDigitalCertificates.TabIndex = 20
|
Me.chkPDFVerifyDigitalCertificates.TabIndex = 20
|
||||||
@ -440,8 +418,6 @@ Partial Class frmViewerSettings
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend WithEvents GroupBox4 As GroupBox
|
Friend WithEvents GroupBox4 As GroupBox
|
||||||
Friend WithEvents Label7 As Label
|
|
||||||
Friend WithEvents cbPDFRenderingEngine As ComboBox
|
|
||||||
Friend WithEvents chkPDFVerifyDigitalCertificates As CheckBox
|
Friend WithEvents chkPDFVerifyDigitalCertificates As CheckBox
|
||||||
Friend WithEvents chkPDFIncreaseTextContrast As CheckBox
|
Friend WithEvents chkPDFIncreaseTextContrast As CheckBox
|
||||||
Friend WithEvents chkPDFEnableLinks As CheckBox
|
Friend WithEvents chkPDFEnableLinks As CheckBox
|
||||||
|
|||||||
@ -42,11 +42,6 @@ Public Class frmViewerSettings
|
|||||||
{DisplayQuality.DisplayQualityBicubicHQ, "Bicubic HQ"},
|
{DisplayQuality.DisplayQualityBicubicHQ, "Bicubic HQ"},
|
||||||
{DisplayQuality.DisplayQualityAutomatic, "Automatic"}
|
{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 {
|
Private ReadOnly _displayPageModes As New Dictionary(Of PageDisplayMode, String) From {
|
||||||
{PageDisplayMode.MultiplePagesView, "Multiple pages"},
|
{PageDisplayMode.MultiplePagesView, "Multiple pages"},
|
||||||
{PageDisplayMode.SinglePageView, "Single page"}
|
{PageDisplayMode.SinglePageView, "Single page"}
|
||||||
@ -70,9 +65,6 @@ Public Class frmViewerSettings
|
|||||||
For Each item In _displayQualities
|
For Each item In _displayQualities
|
||||||
cbDisplayQuality.Items.Add(item.Value)
|
cbDisplayQuality.Items.Add(item.Value)
|
||||||
Next
|
Next
|
||||||
For Each item In _renderingEngines
|
|
||||||
cbPDFRenderingEngine.Items.Add(item.Value)
|
|
||||||
Next
|
|
||||||
For Each item In _displayPageModes
|
For Each item In _displayPageModes
|
||||||
cbPageDisplayMode.Items.Add(item.Value)
|
cbPageDisplayMode.Items.Add(item.Value)
|
||||||
Next
|
Next
|
||||||
@ -98,7 +90,6 @@ Public Class frmViewerSettings
|
|||||||
chkPDFEnableFileLinks.Checked = _owner.PdfEnableFileLinks
|
chkPDFEnableFileLinks.Checked = _owner.PdfEnableFileLinks
|
||||||
chkPDFEnableLinks.Checked = _owner.PdfEnableLinks
|
chkPDFEnableLinks.Checked = _owner.PdfEnableLinks
|
||||||
chkPDFIncreaseTextContrast.Checked = _owner.PdfIncreaseTextContrast
|
chkPDFIncreaseTextContrast.Checked = _owner.PdfIncreaseTextContrast
|
||||||
cbPDFRenderingEngine.SelectedItem = _renderingEngines(_owner.PdfRasterizerEngine)
|
|
||||||
chkPDFVerifyDigitalCertificates.Checked = _owner.PdfVerifyDigitalCertificates
|
chkPDFVerifyDigitalCertificates.Checked = _owner.PdfVerifyDigitalCertificates
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -106,8 +97,4 @@ Public Class frmViewerSettings
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnApply_Click(sender As Object, e As EventArgs) Handles btnApply.Click
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
Loading…
x
Reference in New Issue
Block a user