diff --git a/VAR.PdfTools.Net35.sln b/VAR.PdfTools.Net35.sln
new file mode 100644
index 0000000..bd20f99
--- /dev/null
+++ b/VAR.PdfTools.Net35.sln
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VAR.PdfTools.Net35", "VAR.PdfTools\VAR.PdfTools.Net35.csproj", "{EB7E003A-6A95-4002-809F-926C7C8A11E9}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VAR.PdfTools.Workbench.Net35", "VAR.PdfTools.Workbench\VAR.PdfTools.Workbench.Net35.csproj", "{A5825D8E-9F81-49E0-B610-8AE5E46D02EA}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EB7E003A-6A95-4002-809F-926C7C8A11E9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/VAR.PdfTools.Workbench/App.config b/VAR.PdfTools.Workbench/App.config
deleted file mode 100644
index e2b6bd9..0000000
--- a/VAR.PdfTools.Workbench/App.config
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/VAR.PdfTools.Workbench/FrmPdfInfo.cs b/VAR.PdfTools.Workbench/FrmPdfInfo.cs
index e3718ad..49d4f88 100644
--- a/VAR.PdfTools.Workbench/FrmPdfInfo.cs
+++ b/VAR.PdfTools.Workbench/FrmPdfInfo.cs
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Data;
using System.Linq;
using System.Windows.Forms;
diff --git a/VAR.PdfTools.Workbench/Program.cs b/VAR.PdfTools.Workbench/Program.cs
index dd6601a..6e31e45 100644
--- a/VAR.PdfTools.Workbench/Program.cs
+++ b/VAR.PdfTools.Workbench/Program.cs
@@ -1,7 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace VAR.PdfTools.Workbench
diff --git a/VAR.PdfTools.Workbench/Properties/Resources.Designer.cs b/VAR.PdfTools.Workbench/Properties/Resources.Designer.cs
deleted file mode 100644
index 678e5cf..0000000
--- a/VAR.PdfTools.Workbench/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace VAR.PdfTools.Workbench.Properties
-{
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VAR.PdfTools.Workbench.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
- return resourceCulture;
- }
- set
- {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/VAR.PdfTools.Workbench/Properties/Resources.resx b/VAR.PdfTools.Workbench/Properties/Resources.resx
deleted file mode 100644
index af7dbeb..0000000
--- a/VAR.PdfTools.Workbench/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/VAR.PdfTools.Workbench/Properties/Settings.Designer.cs b/VAR.PdfTools.Workbench/Properties/Settings.Designer.cs
index d6561d7..63098fa 100644
--- a/VAR.PdfTools.Workbench/Properties/Settings.Designer.cs
+++ b/VAR.PdfTools.Workbench/Properties/Settings.Designer.cs
@@ -8,53 +8,66 @@
//
//------------------------------------------------------------------------------
-namespace VAR.PdfTools.Workbench.Properties {
-
-
+namespace VAR.PdfTools.Workbench.Properties
+{
+
+
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
+
+ public static Settings Default
+ {
+ get
+ {
return defaultInstance;
}
}
-
+
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
- public string LastPdfPath {
- get {
+ public string LastPdfPath
+ {
+ get
+ {
return ((string)(this["LastPdfPath"]));
}
- set {
+ set
+ {
this["LastPdfPath"] = value;
}
}
-
+
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
- public string LastColumnName {
- get {
+ public string LastColumnName
+ {
+ get
+ {
return ((string)(this["LastColumnName"]));
}
- set {
+ set
+ {
this["LastColumnName"] = value;
}
}
-
+
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
- public string LastFieldName {
- get {
+ public string LastFieldName
+ {
+ get
+ {
return ((string)(this["LastFieldName"]));
}
- set {
+ set
+ {
this["LastFieldName"] = value;
}
}
diff --git a/VAR.PdfTools.Workbench/VAR.PdfTools.Workbench.Net35.csproj b/VAR.PdfTools.Workbench/VAR.PdfTools.Workbench.Net35.csproj
new file mode 100644
index 0000000..bd4d45a
--- /dev/null
+++ b/VAR.PdfTools.Workbench/VAR.PdfTools.Workbench.Net35.csproj
@@ -0,0 +1,86 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {A5825D8E-9F81-49E0-B610-8AE5E46D02EA}
+ WinExe
+ Properties
+ VAR.PdfTools.Workbench
+ VAR.PdfTools.Workbench
+ v3.5
+ 512
+ true
+
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ FrmPdfInfo.cs
+
+
+
+
+ FrmPdfInfo.cs
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ {eb7e003a-6a95-4002-809f-926c7c8a11e9}
+ VAR.PdfTools
+
+
+
+
+
\ No newline at end of file
diff --git a/VAR.PdfTools.Workbench/VAR.PdfTools.Workbench.csproj b/VAR.PdfTools.Workbench/VAR.PdfTools.Workbench.csproj
index 82dbb1b..8e3f09e 100644
--- a/VAR.PdfTools.Workbench/VAR.PdfTools.Workbench.csproj
+++ b/VAR.PdfTools.Workbench/VAR.PdfTools.Workbench.csproj
@@ -12,6 +12,7 @@
v4.6.1
512
true
+
AnyCPU
@@ -40,11 +41,9 @@
-
-
@@ -60,15 +59,6 @@
FrmPdfInfo.cs
-
- ResXFileCodeGenerator
- Resources.Designer.cs
- Designer
-
-
- True
- Resources.resx
-
SettingsSingleFileGenerator
Settings.Designer.cs
@@ -79,9 +69,6 @@
True
-
-
-
{eb7e003a-6a95-4002-809f-926c7c8a11e9}
diff --git a/VAR.PdfTools/PdfDocument.cs b/VAR.PdfTools/PdfDocument.cs
index c5a7d44..42a393a 100644
--- a/VAR.PdfTools/PdfDocument.cs
+++ b/VAR.PdfTools/PdfDocument.cs
@@ -193,7 +193,7 @@ namespace VAR.PdfTools
}
#endregion
-
+
#region Public methods
public static PdfDocument Load(string filename)
diff --git a/VAR.PdfTools/PdfElements.cs b/VAR.PdfTools/PdfElements.cs
index c9377e0..4ddec3c 100644
--- a/VAR.PdfTools/PdfElements.cs
+++ b/VAR.PdfTools/PdfElements.cs
@@ -26,44 +26,44 @@ namespace VAR.PdfTools
public class PdfBoolean : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Boolean;
+ public PdfElementTypes Type { get { return PdfElementTypes.Boolean; } }
public bool Value { get; set; }
}
public class PdfInteger : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Integer;
+ public PdfElementTypes Type { get { return PdfElementTypes.Integer; } }
public long Value { get; set; }
}
public class PdfReal : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Real;
+ public PdfElementTypes Type { get { return PdfElementTypes.Real; } }
public double Value { get; set; }
}
public class PdfString : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.String;
+ public PdfElementTypes Type { get { return PdfElementTypes.String; } }
public string Value { get; set; }
}
public class PdfName : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Name;
+ public PdfElementTypes Type { get { return PdfElementTypes.Name; } }
public string Value { get; set; }
}
public class PdfArray : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Array;
+ public PdfElementTypes Type { get { return PdfElementTypes.Array; } }
private List _values = new List();
public List Values { get { return _values; } }
}
public class PdfDictionary : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Dictionary;
+ public PdfElementTypes Type { get { return PdfElementTypes.Dictionary; } }
private Dictionary _values = new Dictionary();
public Dictionary Values { get { return _values; } }
@@ -112,7 +112,7 @@ namespace VAR.PdfTools
{
PdfArray array = value as PdfArray;
MemoryStream memStream = new MemoryStream();
- foreach(IPdfElement elem in array.Values)
+ foreach (IPdfElement elem in array.Values)
{
PdfStream stream = elem as PdfStream;
if (stream == null) { continue; }
@@ -135,19 +135,19 @@ namespace VAR.PdfTools
public class PdfNull : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Null;
+ public PdfElementTypes Type { get { return PdfElementTypes.Null; } }
}
public class PdfObjectReference : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.ObjectReference;
+ public PdfElementTypes Type { get { return PdfElementTypes.ObjectReference; } }
public int ObjectID { get; set; }
public int ObjectGeneration { get; set; }
}
public class PdfStream : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Stream;
+ public PdfElementTypes Type { get { return PdfElementTypes.Stream; } }
public PdfDictionary Dictionary { get; set; }
public byte[] Data { get; set; }
@@ -157,18 +157,18 @@ namespace VAR.PdfTools
public class PdfObject : IPdfElement
{
- public PdfElementTypes Type { get; private set; } = PdfElementTypes.Object;
+ public PdfElementTypes Type { get { return PdfElementTypes.Object; } }
public int ObjectID { get; set; }
public int ObjectGeneration { get; set; }
public IPdfElement Data { get; set; }
- public int UsageCount { get; set; } = 0;
+ public int UsageCount { get; set; }
}
public static class PdfElementUtils
{
public static double GetReal(IPdfElement elem, double defaultValue)
{
- if(elem == null)
+ if (elem == null)
{
return defaultValue;
}
diff --git a/VAR.PdfTools/VAR.PdfTools.Net35.csproj b/VAR.PdfTools/VAR.PdfTools.Net35.csproj
new file mode 100644
index 0000000..207b8d8
--- /dev/null
+++ b/VAR.PdfTools/VAR.PdfTools.Net35.csproj
@@ -0,0 +1,60 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {EB7E003A-6A95-4002-809F-926C7C8A11E9}
+ Library
+ Properties
+ VAR.PdfTools
+ VAR.PdfTools
+ v3.5
+ 512
+
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VAR.PdfTools/VAR.PdfTools.csproj b/VAR.PdfTools/VAR.PdfTools.csproj
index dbad6c1..f2e6b72 100644
--- a/VAR.PdfTools/VAR.PdfTools.csproj
+++ b/VAR.PdfTools/VAR.PdfTools.csproj
@@ -11,6 +11,7 @@
VAR.PdfTools
v4.6.1
512
+
true
@@ -34,9 +35,7 @@
-
-