HTML to PDF
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: HTML to PDF

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Posts
    47

    HTML to PDF

    I need a help to know how to convert the HTML Into PDF file IN C# Web application////
    Is there any libray and code for this
    THanks in Advance
    faiza

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: HTML to PDF

    There's always this library :

    http://www.gohtm.com/#easypdfsdk

    A point of note to you : search for what you want using Google first. I just put in "HTML to PDF" into google and it brought up loads of answers.

    When trying to find something out, go to Google.

    If you're having problems with your code, come to us.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  3. #3
    Join Date
    Jul 2007
    Posts
    1

    Re: HTML to PDF

    Hi,

    I used before the <a href="http://www.winnovative-software.com">HTML to PDF</a> library for .NET from http://www.dotnet-reporting.com or the HTML to PDF converter from http://www.winnovative-software.com . 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,

    Florin

  4. #4
    Join Date
    Feb 2012
    Posts
    2

    Smile Re: HTML to PDF

    A HTML to PDF converter would help.

  5. #5
    Join Date
    Feb 2012
    Posts
    3

    Re: HTML to PDF

    I recommend http://www.hiqpdf.com to convert html to pdf, html to svg or html to image

  6. #6
    Join Date
    Sep 2012
    Posts
    4

    Re: HTML to PDF

    Disclaimer: I'm working for this company.

    Hi! You can use PDF Metamorphosis .Net for this. Library successfully sypports html to pdf converting and may be use without any additional components. Developers can use the PDF Metamorphosis.Net with Visual Basic, C#, J#, ASP.NET, Delphi DotNet etc.

    Sample code for the converting:
    SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
    p.PageStyle.PageSize.A4();
    p.HtmlToPdfConvertFile(@"c:\table.html", @"c:\Result.pdf");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center