ASP.NET html to PDF control

Last post 07-06-2007 5:36 PM by fchivu. 2 replies.

Sort Posts:

  • ASP.NET html to PDF control

    09-14-2006, 12:03 PM
    Locked
    • Member
      10 point Member
    • chu2ch
    • Member since 09-14-2006, 3:58 PM
    • Posts 2

    Good day folks,

     I am looking for a recommendation for an asp.net server control that will allow me to convert html to a pdf document that is redistributable and reasonably priced.

     I am kind of in a bind, and the sooner i can find a decent control the better.

     btw.  i am using .net 1.0

    I appreciate your responses.

    Thanks

     

    Chris

  • Re: ASP.NET html to PDF control

    09-14-2006, 12:47 PM
    Locked
    • All-Star
      30,697 point All-Star
    • StrongTypes
    • Member since 12-13-2005, 4:21 PM
    • California
    • Posts 6,007
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    There's a free open-source component called iTextSharp.
    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: ASP.NET html to PDF control

    07-06-2007, 5:36 PM
    Locked
    • Member
      48 point Member
    • fchivu
    • Member since 02-02-2007, 12:08 PM
    • Posts 24
    HTML Source EditorWord wrap

    Hi,

    The HTML to PDF library for .NET  from http://www.dotnet-reporting.com or the HTML to PDF converter from http://www.winnovative-software.com is what you need. It's pure .NET library, it doesn't use a printer driver. There is also a free html to pdf converter application built on top of this library. The conversion can be done with only a few lines of code:

    PdfConverter pdfConverter = new PdfConverter();
    pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
    pdfConverter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait;
    pdfConverter.PdfDocumentOptions.PdfCompressionLevel = PdfCompressionLevel.Normal;
    pdfConverter.PdfDocumentOptions.GenerateSelectablePdf = true;
    pdfConverter.PdfDocumentOptions.ShowFooter = false;
    pdfConverter.PdfDocumentOptions.ShowHeader = false;
    pdfConverter.LicenseFilePath = Server.MapPath(@"~/Bin");
    byte[] downloadBytes = pdfConverter.GetPdfFromUrlBytes(MyURL);  

     

    Regards,

    Razva

    Filed under:
Page 1 of 1 (3 items)