ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Export PDF Tables to Excel in ASP.Net using C# and VB.Net<p>Hi <a class="username" rel="Vikash21">Vikash21</a>,</p> <p>From below link&nbsp; you can download file and can use freely it.</p> <p><a href="https://www.sautin.com/download/pdf_focus_net.zip">https://www.sautin.com/download/pdf_focus_net.zip</a></p> <p>And refer below link.</p> <p><a href="https://www.sautin.com/products/components/pdffocus/pdf-to-excel-programmatically-c-sharp.php">https://www.sautin.com/products/components/pdffocus/pdf-to-excel-programmatically-c-sharp.php</a></p> <p>First in your project add the dll of <span style="text-decoration: underline;">SautinSoft.PdfFocus.dll</span> , And then add namespace.</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>Namespaces</strong></span></p> <p><strong>C#</strong></p> <pre class="brush: csharp">using SautinSoft;</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Imports SautinSoft</pre> <p><span style="text-decoration: underline;"><strong>Code</strong></span></p> <p><strong>C#</strong></p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { string pdfFile = @&#34;C:\Users\anand\Desktop\Id.pdf&#34;; string excelFile = System.IO.Path.ChangeExtension(pdfFile, &#34;.xls&#34;); PdfFocus f = new PdfFocus(); f.ExcelOptions.ConvertNonTabularDataToSpreadsheet = false; f.ExcelOptions.PreservePageLayout = true; f.OpenPdf(pdfFile); if (f.PageCount &gt; 0) { f.ToExcel(excelFile); } }</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load Dim pdfFile As String = &#34;C:\Users\anand\Desktop\Id.pdf&#34; Dim excelFile As String = System.IO.Path.ChangeExtension(pdfFile, &#34;.xls&#34;) Dim f As PdfFocus = New PdfFocus() f.ExcelOptions.ConvertNonTabularDataToSpreadsheet = False f.ExcelOptions.PreservePageLayout = True f.OpenPdf(pdfFile) If f.PageCount &gt; 0 Then f.ToExcel(excelFile) End If End Sub</pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><img src="https://imgur.com/iRmezHZ.gif" alt="" width="472" height="353" /></p>https://www.aspforums.net:443/Threads/582579/Export-PDF-Tables-to-Excel-in-ASPNet-using-C-and-VBNet/https://www.aspforums.net:443/Threads/582579/Export-PDF-Tables-to-Excel-in-ASPNet-using-C-and-VBNet/Wed, 31 Oct 2018 23:49:21 GMT