diff --git a/RazorPDF/PdfResult.cs b/RazorPDF/PdfResult.cs
index 8ca136e..b933cd4 100644
--- a/RazorPDF/PdfResult.cs
+++ b/RazorPDF/PdfResult.cs
@@ -12,11 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
+
using System.Web.Mvc;
namespace RazorPDF
diff --git a/RazorPDF/PdfView.cs b/RazorPDF/PdfView.cs
index e875f75..38e8773 100644
--- a/RazorPDF/PdfView.cs
+++ b/RazorPDF/PdfView.cs
@@ -12,14 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
-using System;
-using System.Collections.Generic;
+
using System.IO;
-using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Xml;
-using System.Xml.Linq;
using iTextSharp.text;
using iTextSharp.text.html;
using iTextSharp.text.pdf;
@@ -39,8 +36,8 @@ public PdfView(ViewEngineResult result)
public void Render(ViewContext viewContext, TextWriter writer)
{
// generate view into string
- var sb = new System.Text.StringBuilder();
- TextWriter tw = new System.IO.StringWriter(sb);
+ var sb = new StringBuilder();
+ TextWriter tw = new StringWriter(sb);
_result.View.Render(viewContext, tw);
var resultCache = sb.ToString();
@@ -82,8 +79,8 @@ public void Render(ViewContext viewContext, TextWriter writer)
private static XmlTextReader GetXmlReader(string source)
{
- byte[] byteArray = Encoding.UTF8.GetBytes(source);
- MemoryStream stream = new MemoryStream(byteArray);
+ var byteArray = Encoding.UTF8.GetBytes(source);
+ var stream = new MemoryStream(byteArray);
var xtr = new XmlTextReader(stream);
xtr.WhitespaceHandling = WhitespaceHandling.None; // Helps iTextSharp parse
diff --git a/RazorPDF/RazorPDF.csproj b/RazorPDF/RazorPDF.csproj
index fdd67b1..ce809fc 100644
--- a/RazorPDF/RazorPDF.csproj
+++ b/RazorPDF/RazorPDF.csproj
@@ -10,7 +10,7 @@
Properties
RazorPDF
RazorPDF
- v4.0
+ v4.5
512
..\
true
@@ -36,8 +36,8 @@
false
-
- ..\packages\iTextSharp.4.1.2\lib\itextsharp.dll
+
+ ..\packages\iTextSharp-LGPL.4.1.6\lib\iTextSharp.dll
diff --git a/RazorPDF/packages.config b/RazorPDF/packages.config
index a82249e..22a5f68 100644
--- a/RazorPDF/packages.config
+++ b/RazorPDF/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file