diff --git a/DotNETCore/Sample_Source/DocumentOptimization/PDFOptimize/PDFOptimize.cs b/DotNETCore/Sample_Source/DocumentOptimization/PDFOptimize/PDFOptimize.cs index 7eaaf091..3d89d9ce 100644 --- a/DotNETCore/Sample_Source/DocumentOptimization/PDFOptimize/PDFOptimize.cs +++ b/DotNETCore/Sample_Source/DocumentOptimization/PDFOptimize/PDFOptimize.cs @@ -29,7 +29,7 @@ static void Main(string[] args) { Console.WriteLine("PDF Optimizer:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); diff --git a/DotNETCore/Sample_Source/Security/AddRegexRedaction/AddRegexRedaction.cs b/DotNETCore/Sample_Source/Security/AddRegexRedaction/AddRegexRedaction.cs index 2c22e1ff..b5f44293 100644 --- a/DotNETCore/Sample_Source/Security/AddRegexRedaction/AddRegexRedaction.cs +++ b/DotNETCore/Sample_Source/Security/AddRegexRedaction/AddRegexRedaction.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; -using System.Text; using Datalogics.PDFL; /* @@ -23,7 +21,7 @@ static void Main(string[] args) { Console.WriteLine("AddRegexRedaction Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); diff --git a/DotNETCore/Sample_Source/Text/ExtractAcroFormFieldData/ExtractAcroFormFieldData.cs b/DotNETCore/Sample_Source/Text/ExtractAcroFormFieldData/ExtractAcroFormFieldData.cs index c4a2157d..efcc82a3 100644 --- a/DotNETCore/Sample_Source/Text/ExtractAcroFormFieldData/ExtractAcroFormFieldData.cs +++ b/DotNETCore/Sample_Source/Text/ExtractAcroFormFieldData/ExtractAcroFormFieldData.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.IO; using System.Text.Json; -using System.Text.Json.Serialization; using Datalogics.PDFL; using ExtractTextNameSpace; /* @@ -34,7 +32,7 @@ static void Main(string[] args) { Console.WriteLine("ExtractAcroFormFieldData Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); using (Document doc = new Document(sInput)) @@ -51,7 +49,7 @@ static void Main(string[] args) // Save the output to a JSON file. Console.WriteLine("Writing JSON to " + sOutput); JsonSerializerOptions options = new JsonSerializerOptions { WriteIndented = true }; - string json = JsonSerializer.Serialize>(result, options); + string json = JsonSerializer.Serialize(result, options); System.IO.File.WriteAllText(sOutput, json); } } diff --git a/DotNETCore/Sample_Source/Text/ExtractCJKTextByPatternMatch/ExtractCJKTextByPatternMatch.cs b/DotNETCore/Sample_Source/Text/ExtractCJKTextByPatternMatch/ExtractCJKTextByPatternMatch.cs index cf40cee1..4f8d2585 100644 --- a/DotNETCore/Sample_Source/Text/ExtractCJKTextByPatternMatch/ExtractCJKTextByPatternMatch.cs +++ b/DotNETCore/Sample_Source/Text/ExtractCJKTextByPatternMatch/ExtractCJKTextByPatternMatch.cs @@ -20,7 +20,7 @@ static void Main(string[] args) { Console.WriteLine("ExtractCJKTextByPatternMatch Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); diff --git a/DotNETCore/Sample_Source/Text/ExtractTextByPatternMatch/ExtractTextByPatternMatch.cs b/DotNETCore/Sample_Source/Text/ExtractTextByPatternMatch/ExtractTextByPatternMatch.cs index 433d7207..f2d26172 100644 --- a/DotNETCore/Sample_Source/Text/ExtractTextByPatternMatch/ExtractTextByPatternMatch.cs +++ b/DotNETCore/Sample_Source/Text/ExtractTextByPatternMatch/ExtractTextByPatternMatch.cs @@ -20,7 +20,7 @@ static void Main(string[] args) { Console.WriteLine("ExtractTextByPatternMatch Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); diff --git a/DotNETCore/Sample_Source/Text/ExtractTextByRegion/ExtractTextByRegion.cs b/DotNETCore/Sample_Source/Text/ExtractTextByRegion/ExtractTextByRegion.cs index c6995bf9..c7c663ff 100644 --- a/DotNETCore/Sample_Source/Text/ExtractTextByRegion/ExtractTextByRegion.cs +++ b/DotNETCore/Sample_Source/Text/ExtractTextByRegion/ExtractTextByRegion.cs @@ -32,7 +32,7 @@ static void Main(string[] args) { Console.WriteLine("ExtractTextByRegion Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); diff --git a/DotNETCore/Sample_Source/Text/ExtractTextFromAnnotations/ExtractTextFromAnnotations.cs b/DotNETCore/Sample_Source/Text/ExtractTextFromAnnotations/ExtractTextFromAnnotations.cs index ab91522f..baf9bc53 100644 --- a/DotNETCore/Sample_Source/Text/ExtractTextFromAnnotations/ExtractTextFromAnnotations.cs +++ b/DotNETCore/Sample_Source/Text/ExtractTextFromAnnotations/ExtractTextFromAnnotations.cs @@ -34,7 +34,7 @@ static void Main(string[] args) { Console.WriteLine("Annotations Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); @@ -54,7 +54,7 @@ static void Main(string[] args) // Save the output to a JSON file. Console.WriteLine("Writing JSON to " + sOutput); JsonSerializerOptions options = new JsonSerializerOptions { WriteIndented = true }; - string json = JsonSerializer.Serialize>(result, options); + string json = JsonSerializer.Serialize(result, options); System.IO.File.WriteAllText(sOutput, json); } } diff --git a/DotNETCore/Sample_Source/Text/ExtractTextFromMultiRegions/ExtractTextFromMultiRegions.cs b/DotNETCore/Sample_Source/Text/ExtractTextFromMultiRegions/ExtractTextFromMultiRegions.cs index 8447c647..4eb1587f 100644 --- a/DotNETCore/Sample_Source/Text/ExtractTextFromMultiRegions/ExtractTextFromMultiRegions.cs +++ b/DotNETCore/Sample_Source/Text/ExtractTextFromMultiRegions/ExtractTextFromMultiRegions.cs @@ -44,7 +44,7 @@ static void Main(string[] args) { Console.WriteLine("ExtractTextFromMultiRegions Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); using (System.IO.StreamWriter outfile = new System.IO.StreamWriter(sOutput)) diff --git a/DotNETCore/Sample_Source/Text/ExtractTextPreservingStyleAndPositionInfo/ExtractTextPreservingStyleAndPositionInfo.cs b/DotNETCore/Sample_Source/Text/ExtractTextPreservingStyleAndPositionInfo/ExtractTextPreservingStyleAndPositionInfo.cs index 9741ce1d..9ccdaa2d 100644 --- a/DotNETCore/Sample_Source/Text/ExtractTextPreservingStyleAndPositionInfo/ExtractTextPreservingStyleAndPositionInfo.cs +++ b/DotNETCore/Sample_Source/Text/ExtractTextPreservingStyleAndPositionInfo/ExtractTextPreservingStyleAndPositionInfo.cs @@ -28,7 +28,7 @@ static void Main(string[] args) { Console.WriteLine("ExtractTextPreservingStyleAndPositionInfo Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); diff --git a/DotNETCore/Sample_Source/Text/RegexExtractText/RegexExtractText.cs b/DotNETCore/Sample_Source/Text/RegexExtractText/RegexExtractText.cs index 725eb720..9585976c 100644 --- a/DotNETCore/Sample_Source/Text/RegexExtractText/RegexExtractText.cs +++ b/DotNETCore/Sample_Source/Text/RegexExtractText/RegexExtractText.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; -using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using Datalogics.PDFL; @@ -96,7 +94,7 @@ static void Main(string[] args) { Console.WriteLine("RegexExtractText Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); @@ -188,7 +186,7 @@ static void Main(string[] args) // Save the output JSON file. Console.WriteLine("Writing JSON to " + sOutput); JsonSerializerOptions options = new JsonSerializerOptions { WriteIndented = true }; - string json = JsonSerializer.Serialize>(result.documentJson, options); + string json = JsonSerializer.Serialize(result.documentJson, options); System.IO.File.WriteAllText(sOutput, json); } } diff --git a/DotNETCore/Sample_Source/Text/RegexTextSearch/RegexTextSearch.cs b/DotNETCore/Sample_Source/Text/RegexTextSearch/RegexTextSearch.cs index 7e0724af..7d6db944 100644 --- a/DotNETCore/Sample_Source/Text/RegexTextSearch/RegexTextSearch.cs +++ b/DotNETCore/Sample_Source/Text/RegexTextSearch/RegexTextSearch.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; -using System.Text; using Datalogics.PDFL; /* @@ -23,7 +21,7 @@ static void Main(string[] args) { Console.WriteLine("RegexTextSearch Sample:"); - using (Library lib = new Library()) + using (new Library()) { Console.WriteLine("Initialized the library."); diff --git a/DotNETCore/Sample_Source/_Common/ExtractText.cs b/DotNETCore/Sample_Source/_Common/ExtractText.cs index ee0c6d71..b34d116a 100644 --- a/DotNETCore/Sample_Source/_Common/ExtractText.cs +++ b/DotNETCore/Sample_Source/_Common/ExtractText.cs @@ -1,8 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Text.Json; using System.Text.Json.Serialization; using Datalogics.PDFL;