Category - iTextSharp
Results 1 - 20 of 39
30 Jul 2019 30 Jul 2019 0 Comments  15235 Views
Here Mudassar Ahmed Khan has explained with an example, how to export (convert) Image to PDF using iTextSharp in ASP.Net MVC Razor.

The Image will be uploaded using FileUpload element and inside the Controller, the Image will be read as Stream and will be added to iTextSharp PDF document and ultimately downloaded as PDF file in ASP.Net MVC Razor.
13 Feb 2019 14 Feb 2019 0 Comments  16413 Views
Here Mudassar Ahmed Khan has explained with an example, how to export HTML to PDF in Windows Forms Application using iTextSharp, C# and VB.Net.

First a DataGridView will be populated with some data and then an HTML Table will be generated using the values from the DataGridView.

Finally, the HTML Table will be exported and saved as PDF file using iTextSharp and XMLWorkerHelper class in Windows Forms Application with C# and VB.Net.
08 Feb 2019 18 Feb 2019 0 Comments  11298 Views
Here Mudassar Ahmed Khan has explained with an example, how to export GridView to PDF without using iTextSharp in ASP.Net.

This article will illustrate how to export GridView to PDF using jQuery in ASP.Net.

The GridView’s HTML Table will be first converted into a HTML5 Canvas using html2canvas plugin and then the HTML5 Canvas will be exported to PDF file using the pdfmake plugin in jQuery.
24 Jan 2019 24 Jan 2019 0 Comments  15942 Views
Here Mudassar Ahmed Khan has explained with an example, how to send runtime generated file as Attachment in email in ASP.Net using C# and VB.Net.

This article will illustrate how to attach a runtime generated PDF file as attachment and send email in ASP.Net using C# and VB.Net.
18 Jan 2019 18 Jan 2019 0 Comments  11015 Views
Here Mudassar Ahmed Khan has explained with an example, how to export Charts to PDF in ASP.Net MVC Razor.

This article will illustrate how to export Charts created from Database using Charts Helper class to PDF in ASP.Net MVC Razor.
16 Jan 2019 16 Jan 2019 0 Comments  27507 Views
Here Mudassar Ahmed Khan has explained with an example, how to export (convert) Image to PDF using iTextSharp in ASP.Net with C# and VB.Net.

The Image file will be first uploaded using FileUpload control and saved into a Folder (Directory), then the Image file will be added into the iTextSharp PDF document and ultimately downloaded as PDF file in ASP.Net.
17 Jul 2018 18 Jul 2018 0 Comments  15260 Views
Here Mudassar Ahmed Khan has explained with an example, how to export GridView to PDF with Header Repeated on each Page using iTextSharp in ASP.Net with C# and VB.Net.

When the Export Button is clicked, a loop will be executed over the GridView Pages using PageCount property and GridView records for specific Page will be added to a new page of PDF.

Thus, using this technique each Page of PDF will have records of one Page of GridView with Header.
17 Apr 2018 17 Apr 2018 0 Comments  16976 Views
Here Mudassar Ahmed Khan has explained with an example, how to create PDF in Arabic, Persian (Farsi) and Urdu Language Characters in ASP.Net using C# and VB.Net.
15 Mar 2018 15 Mar 2018 1 Comments  6996 Views
Here Mudassar Ahmed Khan has explained with an example, how to export WebGrid to PDF file with formatting using iTextSharp in ASP.Net MVC Razor.

First the WebGrid will be populated from database using Entity Framework and then the generated HTML Table of WebGrid will be sent as HTML string to the Controller which ultimately will be exported to PDF file in ASP.Net MVC Razor.
14 Mar 2018 14 Mar 2018 1 Comments  22465 Views
Here Mudassar Ahmed Khan has explained with an example, how to export Partial View to PDF file in ASP.Net MVC Razor.

First the Grid (Html Table) will be populated from database using Entity Framework inside the Partial View and then the HTML Table will be sent as HTML string to the Controller which ultimately will be exported to PDF file in ASP.Net MVC Razor.
19 Jul 2017 19 Jul 2017 7 Comments  106922 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the iTextSharp HTML to PDF conversion library in ASP.Net MVC Razor.

First the data will be populated from database using Entity Framework and then the records from the database will be displayed as HTML in ASP.Net MVC Razor.

Then the same HTML will be converted to PDF file using the iTextSharp HTML to PDF conversion library and then later the PDF file is downloaded using iTextSharp XMLWorkerHelper library in ASP.Net MVC Razor.
24 May 2017 24 May 2017 0 Comments  60546 Views
Here Mudassar Ahmed Khan has explained with an example, how to create (generate) PDF file using iTextSharp and then download it in ASP.Net MVC Razor.

First the data will be populated from database using Entity Framework and then the records from the database will be used to create a PDF and then later the PDF file is downloaded using iTextSharp XMLWorkerHelper library in ASP.Net MVC Razor.
21 Dec 2016 21 Dec 2016 0 Comments  90114 Views
Here Mudassar Ahmed Khan has explained with an example, how to export HTML string to PDF file using iTextSharp in ASP.Net with C# and VB.Net.
The HTML string will be exported and downloaded as PDF file using iTextSharp XMLWorkerHelper library in ASP.Net with C# and VB.Net.
20 Dec 2016 20 Dec 2016 0 Comments  22175 Views
Here Mudassar Ahmed Khan has explained with an example, how to export Grid (Html Table) data from database to PDF using iTextSharp file in ASP.Net MVC Razor.
First the Grid (Html Table) will be populated from database using Entity Framework and then the records from the database will be exported and downloaded as PDF file using iTextSharp XMLWorkerHelper library in ASP.Net MVC Razor.
20 Dec 2016 20 Dec 2016 1 Comments  58336 Views
Here Mudassar Ahmed Khan has explained with an example, how to resolve the error iTextSharp.text.html.simpleparser.HTMLWorker is Obselete [Depcrediated] in ASP.Net, C# and VB.Net.
iTextSharp HTMLWorker class is Obsolete or Depreciated means it is not being used now and hence we need to go for the alternative i.e. XMLWorkerHelper class.
20 May 2015 24 Jan 2019 3 Comments  127252 Views
Here Mudassar Ahmed Khan has explained how to generate Invoice (Bill) Receipt PDF from database in ASP.Net using C# and VB.Net.

The Invoice (Bill) Receipt PDF will be generated from database using iTextSharp library in ASP.Net.
12 May 2015 12 May 2015 2 Comments  49775 Views
Here Mudassar Ahmed Khan has explained how to attach a File from MemoryStream to MailMessage object and send as email attachment in ASP.Net using C# and VB.Net.
This article will explain how to attach a PDF file from MemoryStream to MailMessage object and send as email attachment in ASP.Net using C# and VB.Net.
20 Apr 2015 20 Apr 2015 0 Comments  36048 Views
Here Mudassar Ahmed Khan has explained solution to the following error (exception) when we use HtmlWorker to convert HTML string to PDF using iTextSharp PDF conversion library.
Unable to cast object of type 'iTextSharp.text.html.simpleparser.CellWrapper' to type 'iTextSharp.text.Paragraph'.

One of my readers reported me the above error when exporting ASP.Net GridView to PDF when he used the latest version of iTextSharp DLL instead of the one provided in the article sample.
18 Mar 2015 18 Mar 2015 7 Comments  77630 Views
Here Mudassar Ahmed Khan has explained how to add page numbers to existing PDF file using iTextSharp in C# and VB.Net.
The pages of the PDF file will be read and then using the PdfStamper class page numbers will be written to each page of the PDF document.
12 Sep 2014 12 Sep 2014 8 Comments  42780 Views
Here Mudassar Ahmed Khan has explained how to resolve the error System.Security.SecurityException: That assembly does not allow partially trusted callers when using iTextSharp Library DLL on a server that does not allow Full Trust to the Website.

Generally we face this issue when using Shared Hosting Servers and hence to resolve this issue we need to modify the iTextSharp DLL to allow partially trust callers.
Results 1 - 20 of 39