FrmPdfInfo: Change test fields to have multiple actions.
This commit is contained in:
200
VAR.PdfTools.Workbench/FrmPdfInfo.Designer.cs
generated
200
VAR.PdfTools.Workbench/FrmPdfInfo.Designer.cs
generated
@@ -34,13 +34,19 @@
|
||||
this.txtPdfPath = new System.Windows.Forms.TextBox();
|
||||
this.txtOutput = new System.Windows.Forms.TextBox();
|
||||
this.btnProcess = new System.Windows.Forms.Button();
|
||||
this.btnGetColumn = new System.Windows.Forms.Button();
|
||||
this.txtColumnName = new System.Windows.Forms.TextBox();
|
||||
this.txtFieldName = new System.Windows.Forms.TextBox();
|
||||
this.btnGetField = new System.Windows.Forms.Button();
|
||||
this.txtText = new System.Windows.Forms.TextBox();
|
||||
this.btnHasText = new System.Windows.Forms.Button();
|
||||
this.btnGetColumn1 = new System.Windows.Forms.Button();
|
||||
this.txtField1 = new System.Windows.Forms.TextBox();
|
||||
this.btnGetField1 = new System.Windows.Forms.Button();
|
||||
this.btnHasText1 = new System.Windows.Forms.Button();
|
||||
this.btnRender = new System.Windows.Forms.Button();
|
||||
this.btnHasText2 = new System.Windows.Forms.Button();
|
||||
this.btnGetField2 = new System.Windows.Forms.Button();
|
||||
this.txtField2 = new System.Windows.Forms.TextBox();
|
||||
this.btnGetColumn2 = new System.Windows.Forms.Button();
|
||||
this.btnHasText3 = new System.Windows.Forms.Button();
|
||||
this.btnGetField3 = new System.Windows.Forms.Button();
|
||||
this.txtField3 = new System.Windows.Forms.TextBox();
|
||||
this.btnGetColumn3 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblOutputs
|
||||
@@ -109,56 +115,42 @@
|
||||
this.btnProcess.UseVisualStyleBackColor = true;
|
||||
this.btnProcess.Click += new System.EventHandler(this.btnProcess_Click);
|
||||
//
|
||||
// btnGetColumn
|
||||
// btnGetColumn1
|
||||
//
|
||||
this.btnGetColumn.Location = new System.Drawing.Point(163, 51);
|
||||
this.btnGetColumn.Name = "btnGetColumn";
|
||||
this.btnGetColumn.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnGetColumn.TabIndex = 12;
|
||||
this.btnGetColumn.Text = "GetColumn";
|
||||
this.btnGetColumn.UseVisualStyleBackColor = true;
|
||||
this.btnGetColumn.Click += new System.EventHandler(this.btnGetColumn_Click);
|
||||
this.btnGetColumn1.Location = new System.Drawing.Point(292, 51);
|
||||
this.btnGetColumn1.Name = "btnGetColumn1";
|
||||
this.btnGetColumn1.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnGetColumn1.TabIndex = 12;
|
||||
this.btnGetColumn1.Text = "GetColumn";
|
||||
this.btnGetColumn1.UseVisualStyleBackColor = true;
|
||||
this.btnGetColumn1.Click += new System.EventHandler(this.btnGetColumn1_Click);
|
||||
//
|
||||
// txtColumnName
|
||||
// txtField1
|
||||
//
|
||||
this.txtColumnName.Location = new System.Drawing.Point(15, 53);
|
||||
this.txtColumnName.Name = "txtColumnName";
|
||||
this.txtColumnName.Size = new System.Drawing.Size(142, 20);
|
||||
this.txtColumnName.TabIndex = 13;
|
||||
this.txtField1.Location = new System.Drawing.Point(15, 53);
|
||||
this.txtField1.Name = "txtField1";
|
||||
this.txtField1.Size = new System.Drawing.Size(142, 20);
|
||||
this.txtField1.TabIndex = 13;
|
||||
//
|
||||
// txtFieldName
|
||||
// btnGetField1
|
||||
//
|
||||
this.txtFieldName.Location = new System.Drawing.Point(15, 82);
|
||||
this.txtFieldName.Name = "txtFieldName";
|
||||
this.txtFieldName.Size = new System.Drawing.Size(142, 20);
|
||||
this.txtFieldName.TabIndex = 15;
|
||||
this.btnGetField1.Location = new System.Drawing.Point(226, 51);
|
||||
this.btnGetField1.Name = "btnGetField1";
|
||||
this.btnGetField1.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnGetField1.TabIndex = 14;
|
||||
this.btnGetField1.Text = "GetField";
|
||||
this.btnGetField1.UseVisualStyleBackColor = true;
|
||||
this.btnGetField1.Click += new System.EventHandler(this.btnGetField1_Click);
|
||||
//
|
||||
// btnGetField
|
||||
// btnHasText1
|
||||
//
|
||||
this.btnGetField.Location = new System.Drawing.Point(163, 80);
|
||||
this.btnGetField.Name = "btnGetField";
|
||||
this.btnGetField.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnGetField.TabIndex = 14;
|
||||
this.btnGetField.Text = "GetField";
|
||||
this.btnGetField.UseVisualStyleBackColor = true;
|
||||
this.btnGetField.Click += new System.EventHandler(this.btnGetField_Click);
|
||||
//
|
||||
// txtText
|
||||
//
|
||||
this.txtText.Location = new System.Drawing.Point(15, 111);
|
||||
this.txtText.Name = "txtText";
|
||||
this.txtText.Size = new System.Drawing.Size(142, 20);
|
||||
this.txtText.TabIndex = 17;
|
||||
//
|
||||
// btnHasText
|
||||
//
|
||||
this.btnHasText.Location = new System.Drawing.Point(163, 109);
|
||||
this.btnHasText.Name = "btnHasText";
|
||||
this.btnHasText.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnHasText.TabIndex = 16;
|
||||
this.btnHasText.Text = "HasText";
|
||||
this.btnHasText.UseVisualStyleBackColor = true;
|
||||
this.btnHasText.Click += new System.EventHandler(this.btnHasText_Click);
|
||||
this.btnHasText1.Location = new System.Drawing.Point(163, 51);
|
||||
this.btnHasText1.Name = "btnHasText1";
|
||||
this.btnHasText1.Size = new System.Drawing.Size(57, 23);
|
||||
this.btnHasText1.TabIndex = 16;
|
||||
this.btnHasText1.Text = "HasText";
|
||||
this.btnHasText1.UseVisualStyleBackColor = true;
|
||||
this.btnHasText1.Click += new System.EventHandler(this.btnHasText1_Click);
|
||||
//
|
||||
// btnRender
|
||||
//
|
||||
@@ -171,18 +163,98 @@
|
||||
this.btnRender.UseVisualStyleBackColor = true;
|
||||
this.btnRender.Click += new System.EventHandler(this.btnRender_Click);
|
||||
//
|
||||
// btnHasText2
|
||||
//
|
||||
this.btnHasText2.Location = new System.Drawing.Point(163, 80);
|
||||
this.btnHasText2.Name = "btnHasText2";
|
||||
this.btnHasText2.Size = new System.Drawing.Size(57, 23);
|
||||
this.btnHasText2.TabIndex = 22;
|
||||
this.btnHasText2.Text = "HasText";
|
||||
this.btnHasText2.UseVisualStyleBackColor = true;
|
||||
this.btnHasText2.Click += new System.EventHandler(this.btnHasText2_Click);
|
||||
//
|
||||
// btnGetField2
|
||||
//
|
||||
this.btnGetField2.Location = new System.Drawing.Point(226, 80);
|
||||
this.btnGetField2.Name = "btnGetField2";
|
||||
this.btnGetField2.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnGetField2.TabIndex = 21;
|
||||
this.btnGetField2.Text = "GetField";
|
||||
this.btnGetField2.UseVisualStyleBackColor = true;
|
||||
this.btnGetField2.Click += new System.EventHandler(this.btnGetField2_Click);
|
||||
//
|
||||
// txtField2
|
||||
//
|
||||
this.txtField2.Location = new System.Drawing.Point(15, 82);
|
||||
this.txtField2.Name = "txtField2";
|
||||
this.txtField2.Size = new System.Drawing.Size(142, 20);
|
||||
this.txtField2.TabIndex = 20;
|
||||
//
|
||||
// btnGetColumn2
|
||||
//
|
||||
this.btnGetColumn2.Location = new System.Drawing.Point(292, 80);
|
||||
this.btnGetColumn2.Name = "btnGetColumn2";
|
||||
this.btnGetColumn2.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnGetColumn2.TabIndex = 19;
|
||||
this.btnGetColumn2.Text = "GetColumn";
|
||||
this.btnGetColumn2.UseVisualStyleBackColor = true;
|
||||
this.btnGetColumn2.Click += new System.EventHandler(this.btnGetColumn2_Click);
|
||||
//
|
||||
// btnHasText3
|
||||
//
|
||||
this.btnHasText3.Location = new System.Drawing.Point(163, 109);
|
||||
this.btnHasText3.Name = "btnHasText3";
|
||||
this.btnHasText3.Size = new System.Drawing.Size(57, 23);
|
||||
this.btnHasText3.TabIndex = 26;
|
||||
this.btnHasText3.Text = "HasText";
|
||||
this.btnHasText3.UseVisualStyleBackColor = true;
|
||||
this.btnHasText3.Click += new System.EventHandler(this.btnHasText3_Click);
|
||||
//
|
||||
// btnGetField3
|
||||
//
|
||||
this.btnGetField3.Location = new System.Drawing.Point(226, 109);
|
||||
this.btnGetField3.Name = "btnGetField3";
|
||||
this.btnGetField3.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnGetField3.TabIndex = 25;
|
||||
this.btnGetField3.Text = "GetField";
|
||||
this.btnGetField3.UseVisualStyleBackColor = true;
|
||||
this.btnGetField3.Click += new System.EventHandler(this.btnGetField3_Click);
|
||||
//
|
||||
// txtField3
|
||||
//
|
||||
this.txtField3.Location = new System.Drawing.Point(15, 111);
|
||||
this.txtField3.Name = "txtField3";
|
||||
this.txtField3.Size = new System.Drawing.Size(142, 20);
|
||||
this.txtField3.TabIndex = 24;
|
||||
//
|
||||
// btnGetColumn3
|
||||
//
|
||||
this.btnGetColumn3.Location = new System.Drawing.Point(292, 109);
|
||||
this.btnGetColumn3.Name = "btnGetColumn3";
|
||||
this.btnGetColumn3.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnGetColumn3.TabIndex = 23;
|
||||
this.btnGetColumn3.Text = "GetColumn";
|
||||
this.btnGetColumn3.UseVisualStyleBackColor = true;
|
||||
this.btnGetColumn3.Click += new System.EventHandler(this.btnGetColumn3_Click);
|
||||
//
|
||||
// FrmPdfInfo
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(484, 461);
|
||||
this.Controls.Add(this.btnHasText3);
|
||||
this.Controls.Add(this.btnGetField3);
|
||||
this.Controls.Add(this.txtField3);
|
||||
this.Controls.Add(this.btnGetColumn3);
|
||||
this.Controls.Add(this.btnHasText2);
|
||||
this.Controls.Add(this.btnGetField2);
|
||||
this.Controls.Add(this.txtField2);
|
||||
this.Controls.Add(this.btnGetColumn2);
|
||||
this.Controls.Add(this.btnRender);
|
||||
this.Controls.Add(this.txtText);
|
||||
this.Controls.Add(this.btnHasText);
|
||||
this.Controls.Add(this.txtFieldName);
|
||||
this.Controls.Add(this.btnGetField);
|
||||
this.Controls.Add(this.txtColumnName);
|
||||
this.Controls.Add(this.btnGetColumn);
|
||||
this.Controls.Add(this.btnHasText1);
|
||||
this.Controls.Add(this.btnGetField1);
|
||||
this.Controls.Add(this.txtField1);
|
||||
this.Controls.Add(this.btnGetColumn1);
|
||||
this.Controls.Add(this.lblOutputs);
|
||||
this.Controls.Add(this.lblInputs);
|
||||
this.Controls.Add(this.btnBrowse);
|
||||
@@ -206,12 +278,18 @@
|
||||
private System.Windows.Forms.TextBox txtPdfPath;
|
||||
private System.Windows.Forms.TextBox txtOutput;
|
||||
private System.Windows.Forms.Button btnProcess;
|
||||
private System.Windows.Forms.Button btnGetColumn;
|
||||
private System.Windows.Forms.TextBox txtColumnName;
|
||||
private System.Windows.Forms.TextBox txtFieldName;
|
||||
private System.Windows.Forms.Button btnGetField;
|
||||
private System.Windows.Forms.TextBox txtText;
|
||||
private System.Windows.Forms.Button btnHasText;
|
||||
private System.Windows.Forms.Button btnGetColumn1;
|
||||
private System.Windows.Forms.TextBox txtField1;
|
||||
private System.Windows.Forms.Button btnGetField1;
|
||||
private System.Windows.Forms.Button btnHasText1;
|
||||
private System.Windows.Forms.Button btnRender;
|
||||
private System.Windows.Forms.Button btnHasText2;
|
||||
private System.Windows.Forms.Button btnGetField2;
|
||||
private System.Windows.Forms.TextBox txtField2;
|
||||
private System.Windows.Forms.Button btnGetColumn2;
|
||||
private System.Windows.Forms.Button btnHasText3;
|
||||
private System.Windows.Forms.Button btnGetField3;
|
||||
private System.Windows.Forms.TextBox txtField3;
|
||||
private System.Windows.Forms.Button btnGetColumn3;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VAR.PdfTools.PdfElements;
|
||||
|
||||
@@ -20,17 +21,17 @@ namespace VAR.PdfTools.Workbench
|
||||
private void FrmPdfInfo_Load(object sender, EventArgs e)
|
||||
{
|
||||
txtPdfPath.Text = Properties.Settings.Default.LastPdfPath;
|
||||
txtColumnName.Text = Properties.Settings.Default.LastColumnName;
|
||||
txtFieldName.Text = Properties.Settings.Default.LastFieldName;
|
||||
txtText.Text = Properties.Settings.Default.LastText;
|
||||
txtField1.Text = Properties.Settings.Default.Field1;
|
||||
txtField2.Text = Properties.Settings.Default.Field2;
|
||||
txtField3.Text = Properties.Settings.Default.Field3;
|
||||
}
|
||||
|
||||
private void FrmPdfInfo_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.LastPdfPath = txtPdfPath.Text;
|
||||
Properties.Settings.Default.LastColumnName = txtColumnName.Text;
|
||||
Properties.Settings.Default.LastFieldName = txtFieldName.Text;
|
||||
Properties.Settings.Default.LastText = txtText.Text;
|
||||
Properties.Settings.Default.Field1 = txtField1.Text;
|
||||
Properties.Settings.Default.Field2 = txtField2.Text;
|
||||
Properties.Settings.Default.Field3 = txtField3.Text;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
@@ -118,64 +119,136 @@ namespace VAR.PdfTools.Workbench
|
||||
txtOutput.Lines = lines.ToArray();
|
||||
}
|
||||
|
||||
private void btnGetColumn_Click(object sender, EventArgs e)
|
||||
private void btnHasText1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (System.IO.File.Exists(txtPdfPath.Text) == false)
|
||||
{
|
||||
MessageBox.Show("File does not exist");
|
||||
return;
|
||||
}
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string text = txtField1.Text;
|
||||
|
||||
PdfDocument doc = PdfDocument.Load(txtPdfPath.Text);
|
||||
|
||||
var columnData = new List<string>();
|
||||
foreach (PdfDocumentPage page in doc.Pages)
|
||||
{
|
||||
PdfTextExtractor extractor = new PdfTextExtractor(page);
|
||||
columnData.AddRange(extractor.GetColumn(txtColumnName.Text));
|
||||
}
|
||||
txtOutput.Lines = columnData.ToArray();
|
||||
Action_HasText(pdfPath, text);
|
||||
}
|
||||
|
||||
private void btnGetField_Click(object sender, EventArgs e)
|
||||
private void btnGetField1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (System.IO.File.Exists(txtPdfPath.Text) == false)
|
||||
{
|
||||
MessageBox.Show("File does not exist");
|
||||
return;
|
||||
}
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string field = txtField1.Text;
|
||||
|
||||
PdfDocument doc = PdfDocument.Load(txtPdfPath.Text);
|
||||
|
||||
var fieldData = new List<string>();
|
||||
foreach (PdfDocumentPage page in doc.Pages)
|
||||
{
|
||||
PdfTextExtractor extractor = new PdfTextExtractor(page);
|
||||
fieldData.Add(extractor.GetField(txtFieldName.Text));
|
||||
}
|
||||
txtOutput.Lines = fieldData.ToArray();
|
||||
Action_GetField(pdfPath, field);
|
||||
}
|
||||
|
||||
private void btnHasText_Click(object sender, EventArgs e)
|
||||
private void btnGetColumn1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (System.IO.File.Exists(txtPdfPath.Text) == false)
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string column = txtField1.Text;
|
||||
|
||||
Action_GetColumn(pdfPath, column);
|
||||
}
|
||||
|
||||
private void btnHasText2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string text = txtField2.Text;
|
||||
|
||||
Action_HasText(pdfPath, text);
|
||||
}
|
||||
|
||||
private void btnGetField2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string field = txtField2.Text;
|
||||
|
||||
Action_GetField(pdfPath, field);
|
||||
}
|
||||
|
||||
private void btnGetColumn2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string column = txtField2.Text;
|
||||
|
||||
Action_GetColumn(pdfPath, column);
|
||||
}
|
||||
|
||||
private void btnHasText3_Click(object sender, EventArgs e)
|
||||
{
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string text = txtField3.Text;
|
||||
|
||||
Action_HasText(pdfPath, text);
|
||||
}
|
||||
|
||||
private void btnGetField3_Click(object sender, EventArgs e)
|
||||
{
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string field = txtField3.Text;
|
||||
|
||||
Action_GetField(pdfPath, field);
|
||||
}
|
||||
|
||||
private void btnGetColumn3_Click(object sender, EventArgs e)
|
||||
{
|
||||
string pdfPath = txtPdfPath.Text;
|
||||
string column = txtField3.Text;
|
||||
|
||||
Action_GetColumn(pdfPath, column);
|
||||
}
|
||||
|
||||
private void Action_HasText(string pdfPath, string text)
|
||||
{
|
||||
if (System.IO.File.Exists(pdfPath) == false)
|
||||
{
|
||||
MessageBox.Show("File does not exist");
|
||||
return;
|
||||
}
|
||||
|
||||
PdfDocument doc = PdfDocument.Load(txtPdfPath.Text);
|
||||
PdfDocument doc = PdfDocument.Load(pdfPath);
|
||||
|
||||
List<string> lines = new List<string>();
|
||||
int pageNum = 1;
|
||||
foreach (PdfDocumentPage page in doc.Pages)
|
||||
{
|
||||
PdfTextExtractor extractor = new PdfTextExtractor(page);
|
||||
lines.Add(string.Format("Page({0}) : {1}", pageNum, Convert.ToString(extractor.HasText(txtText.Text))));
|
||||
lines.Add(string.Format("Page({0}) : {1}", pageNum, Convert.ToString(extractor.HasText(text))));
|
||||
}
|
||||
txtOutput.Lines = lines.ToArray();
|
||||
}
|
||||
|
||||
private void Action_GetField(string pdfPath, string field)
|
||||
{
|
||||
if (System.IO.File.Exists(pdfPath) == false)
|
||||
{
|
||||
MessageBox.Show("File does not exist");
|
||||
return;
|
||||
}
|
||||
|
||||
PdfDocument doc = PdfDocument.Load(pdfPath);
|
||||
|
||||
var fieldData = new List<string>();
|
||||
foreach (PdfDocumentPage page in doc.Pages)
|
||||
{
|
||||
PdfTextExtractor extractor = new PdfTextExtractor(page);
|
||||
fieldData.Add(extractor.GetField(field));
|
||||
}
|
||||
txtOutput.Lines = fieldData.ToArray();
|
||||
}
|
||||
|
||||
private void Action_GetColumn(string pdfPath, string column)
|
||||
{
|
||||
if (System.IO.File.Exists(pdfPath) == false)
|
||||
{
|
||||
MessageBox.Show("File does not exist");
|
||||
return;
|
||||
}
|
||||
|
||||
PdfDocument doc = PdfDocument.Load(pdfPath);
|
||||
|
||||
var columnData = new List<string>();
|
||||
foreach (PdfDocumentPage page in doc.Pages)
|
||||
{
|
||||
PdfTextExtractor extractor = new PdfTextExtractor(page);
|
||||
columnData.AddRange(extractor.GetColumn(column));
|
||||
}
|
||||
txtOutput.Lines = columnData.ToArray();
|
||||
}
|
||||
|
||||
private void btnRender_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (File.Exists(txtPdfPath.Text) == false)
|
||||
|
||||
120
VAR.PdfTools.Workbench/FrmPdfInfo.resx
Normal file
120
VAR.PdfTools.Workbench/FrmPdfInfo.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -12,7 +12,7 @@ namespace VAR.PdfTools.Workbench.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
@@ -38,36 +38,36 @@ namespace VAR.PdfTools.Workbench.Properties {
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string LastColumnName {
|
||||
public string Field1 {
|
||||
get {
|
||||
return ((string)(this["LastColumnName"]));
|
||||
return ((string)(this["Field1"]));
|
||||
}
|
||||
set {
|
||||
this["LastColumnName"] = value;
|
||||
this["Field1"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string LastFieldName {
|
||||
public string Field2 {
|
||||
get {
|
||||
return ((string)(this["LastFieldName"]));
|
||||
return ((string)(this["Field2"]));
|
||||
}
|
||||
set {
|
||||
this["LastFieldName"] = value;
|
||||
this["Field2"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string LastText {
|
||||
public string Field3 {
|
||||
get {
|
||||
return ((string)(this["LastText"]));
|
||||
return ((string)(this["Field3"]));
|
||||
}
|
||||
set {
|
||||
this["LastText"] = value;
|
||||
this["Field3"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
<Setting Name="LastPdfPath" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="LastColumnName" Type="System.String" Scope="User">
|
||||
<Setting Name="Field1" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="LastFieldName" Type="System.String" Scope="User">
|
||||
<Setting Name="Field2" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="LastText" Type="System.String" Scope="User">
|
||||
<Setting Name="Field3" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
</Settings>
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
@@ -71,6 +72,11 @@
|
||||
<Name>VAR.PdfTools</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="FrmPdfInfo.resx">
|
||||
<DependentUpon>FrmPdfInfo.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
24
VAR.PdfTools.Workbench/app.config
Normal file
24
VAR.PdfTools.Workbench/app.config
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="VAR.PdfTools.Workbench.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<userSettings>
|
||||
<VAR.PdfTools.Workbench.Properties.Settings>
|
||||
<setting name="LastPdfPath" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="Field1" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="Field2" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="Field3" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
</VAR.PdfTools.Workbench.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user