locked
best html to pdf converter tools? RRS feed

  • Question

  • User1586650908 posted
    I want to buy thrid party tool for converting html to pdf (Web application). Can any one suggest the best one .. it should be worth buying.

    Some are listed below... Html to pdf converter http://www.html-to-pdf.net/Default.aspx?c=g1&gclid=CPqEhsrlhZYCFRYFewodbGLJFA

    Atala soft http://www.atalasoft.com/products/dotimage/pdfrasterizer/?gclid=CJnty8vlhZYCFRTuegodXiMlFQ Active PDF http://www.activepdf.com/products/serverproducts/webgrabber/index.cfm?_kk=b535098c-d0c6-4607-b298-c6fa40997ea9&_kt=1220844242&gclid=CO2bqMzlhZYCFQdWegod2AyREA Cete software http://www.cete.com/Products/DynamicPDFForNET/Suite/index.csp Any suggestion?
    Wednesday, October 1, 2008 6:27 AM

All replies

  • User-1399914977 posted

    In fact i am also looking for the same. I have tried the demo version of http://www.winnovative-software.com/. This one is great.

    I have not buyed it, cos i m looking for some free one. Their pricing is too high $350.00. I dont think its worth spending this much amt in converting html2pdf.

     

     

    Wednesday, October 1, 2008 7:31 AM
  • User1586650908 posted
    Thanks, Any other good tools.. how about www.abcpdf.com.
    Monday, October 6, 2008 5:48 AM
  • User1586650908 posted
    Any other good tools.. ?
    Friday, October 10, 2008 12:57 AM
  • User-816001750 posted

    I would recomment taking a look at asppdf.  http://www.asppdf.com/

    I recently got if for a generating reports in pdf form and it has worked great for me. I have not done a html to pdf conversion, but according to the website it is a supported function. I use other component software from the company and im very pleased with it. I really like how they have great documentation and sample codes, which really helped speed up development.

     

    Friday, October 10, 2008 3:58 PM
  • User1659337008 posted

     You can write your own pretty easily using pdfbox http://www.pdfbox.org/

     

    We just deployed a module that converts my states budget development documents to pdf.  The entire module took about 720 man hours, but the core of the pdf part was developed by one guy in about five days using the pdfbox assmblies.  It's pretty sweet.

    Wednesday, October 15, 2008 10:39 AM
  • User-1199946673 posted

    U can use PDFsharp for free

    Wednesday, October 15, 2008 1:49 PM
  • User-1399914977 posted

    I would recommed the winnovative one. They are also offering promotional code for discounts. If you know how to bargain you can get it at really good price.

    Wednesday, October 29, 2008 4:44 AM
  • User1587539550 posted

    Check for this
    http://www.html-to-pdf.net/Default.aspx

    Tuesday, November 4, 2008 6:15 AM
  • User-601806986 posted

    Try SelectPdf Html To Pdf Converter. Select.Pdf for .NET is a library that offers a lot of features that you can use to create and modify pdf documents and it also provides a powerful html to pdf converter.

    Friday, February 20, 2015 6:47 AM
  • User1586650908 posted

     PDFsharp seems to be good one. thanks to everyone

    Thursday, April 30, 2015 11:20 PM
  • User-1199946673 posted

     PDFsharp seems to be good one. thanks to everyone

    Whoow.  You took almost 7 years to make a choice?

    Friday, May 1, 2015 9:00 AM
  • User791184922 posted

    Does PDFsharp support HTML to PDF conversion?

    Their website says-No. http://www.pdfsharp.net/wiki/PDFsharpFAQ.ashx?HL=html#Can_I_use_PDFsharp_to_convert_HTML_or_RTF_to_PDF_10

    Thursday, May 21, 2015 5:00 PM
  • User-1199946673 posted

    I believe it is possible:

    http://stackoverflow.com/questions/2822843/

    However, when I tested this many years ago, I found out that the amount of tags and attributes recognized was very limited, so most likely. Also, CSS wasn't supported, so I doubt if it's worth spending too much time on this....

    Saturday, May 23, 2015 5:44 AM
  • User1586650908 posted

    So do you have some other tool to suggest?

    Tuesday, June 9, 2015 3:13 AM
  • User1586650908 posted

    he he :) We dropped the plan to use PDF converter, so missed to close this thread..  Later after so many year i saw the thread still open so thought to update my post on pdf converter. I have used pdfsharp in another project, its seems to be good.

    Do you have any other suggestion?

    Tuesday, June 9, 2015 3:19 AM
  • User-1199946673 posted

    It's not hard to find html to pdf converters, however the're not free. Most of them you can try for free so that you can see if it meets your requirements

    Tuesday, June 9, 2015 7:05 AM
  • User-1080604707 posted

    The HiQPdf HTML to PDF Converter for .NET offers the most accurate HTML to PDF conversion. There is a also a free version of the HTML to PDF for .NET library you can use  in your applications. It doesn't offer all the features of the full library but it is enough for small tasks. The C# sample code for  converting HTML to PDF in ASP.NET is:

    protected void buttonConvertToPdf_Click(object sender, EventArgs e)
    {
        // create the HTML to PDF converter
        HtmlToPdf htmlToPdfConverter = new HtmlToPdf();
    
        // set browser width
        htmlToPdfConverter.BrowserWidth = int.Parse(textBoxBrowserWidth.Text);
    
        // set browser height if specified, otherwise use the default
        if (textBoxBrowserHeight.Text.Length > 0)
            htmlToPdfConverter.BrowserHeight = int.Parse(textBoxBrowserHeight.Text);
    
        // set HTML Load timeout
        htmlToPdfConverter.HtmlLoadedTimeout = int.Parse(textBoxLoadHtmlTimeout.Text);
    
        // set PDF page size and orientation
        htmlToPdfConverter.Document.PageSize = GetSelectedPageSize();
        htmlToPdfConverter.Document.PageOrientation = GetSelectedPageOrientation();
    
        // set the PDF standard used by the document
        htmlToPdfConverter.Document.PdfStandard = checkBoxPdfA.Checked ? PdfStandard.PdfA : PdfStandard.Pdf;
    
        // set PDF page margins
        htmlToPdfConverter.Document.Margins = new PdfMargins(5);
    
        // set whether to embed the true type font in PDF
        htmlToPdfConverter.Document.FontEmbedding = checkBoxFontEmbedding.Checked;
    
        // set triggering mode; for WaitTime mode set the wait time before convert
        switch (dropDownListTriggeringMode.SelectedValue)
        {
            case "Auto":
                htmlToPdfConverter.TriggerMode = ConversionTriggerMode.Auto;
                break;
            case "WaitTime":
                htmlToPdfConverter.TriggerMode = ConversionTriggerMode.WaitTime;
                htmlToPdfConverter.WaitBeforeConvert = int.Parse(textBoxWaitTime.Text);
                break;
            case "Manual":
                htmlToPdfConverter.TriggerMode = ConversionTriggerMode.Manual;
                break;
            default:
                htmlToPdfConverter.TriggerMode = ConversionTriggerMode.Auto;
                break;
        }
    
        // set header and footer
        SetHeader(htmlToPdfConverter.Document);
        SetFooter(htmlToPdfConverter.Document);
    
        // set the document security
        htmlToPdfConverter.Document.Security.OpenPassword = textBoxOpenPassword.Text;
        htmlToPdfConverter.Document.Security.AllowPrinting = checkBoxAllowPrinting.Checked;
    
        // set the permissions password too if an open password was set
        if (htmlToPdfConverter.Document.Security.OpenPassword != null && htmlToPdfConverter.Document.Security.OpenPassword != String.Empty)
            htmlToPdfConverter.Document.Security.PermissionsPassword = htmlToPdfConverter.Document.Security.OpenPassword + "_admin";
    
        // convert HTML to PDF
        byte[] pdfBuffer = null;
    
        if (radioButtonConvertUrl.Checked)
        {
            // convert URL to a PDF memory buffer
            string url = textBoxUrl.Text;
    
            pdfBuffer = htmlToPdfConverter.ConvertUrlToMemory(url);
        }
        else
        {
            // convert HTML code
            string htmlCode = textBoxHtmlCode.Text;
            string baseUrl = textBoxBaseUrl.Text;
    
            // convert HTML code to a PDF memory buffer
            pdfBuffer = htmlToPdfConverter.ConvertHtmlToMemory(htmlCode, baseUrl);
        }
    
        // inform the browser about the binary data format
        HttpContext.Current.Response.AddHeader("Content-Type", "application/pdf");
    
        // let the browser know how to open the PDF document, attachment or inline, and the file name
        HttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("{0}; filename=HtmlToPdf.pdf; size={1}",
            checkBoxOpenInline.Checked ? "inline" : "attachment", pdfBuffer.Length.ToString()));
    
        // write the PDF buffer to HTTP response
        HttpContext.Current.Response.BinaryWrite(pdfBuffer);
    
        // call End() method of HTTP response to stop ASP.NET page processing
        HttpContext.Current.Response.End();
    }



    Thursday, July 28, 2016 11:28 AM
  • User1108898723 posted

    There are 2 well-known (and free) command line tools that can perform reliable HTML-to-PDF conversion - both of them are based on WebKit browser engine + QT library:

    They are native programs, but they have builds for Windows/MacOS/Linux and may be considered for using even from .NET Core projects.
    To simplify usage of these tools we've created .NET wrappers with simple API:

    These wrappers are free to use in single-deployment projects and available via nuget.

    Thursday, January 5, 2017 3:02 PM
  • User426857743 posted

    Check the below sample:

    Convert HTML to PDF with C# code

    https://code.msdn.microsoft.com/Convert-HTML-to-PDF-with-C-b16fc75f

    Friday, January 6, 2017 8:38 AM
  • User-1971450204 posted

    I inherited a web app with ABCpdf8 that was developed shortly after this thread started. It has worked well for us. WebSuperGoo is still around and they have a comprehensive FAQ for troubleshooting. For a single server license $300-$500 isn't bad for us especially since we'll use it for several years. Having more CSS and general styling control is important for us too because we convert html to pdf for documents that will delivered to our client and we want them to look as well styled as possible. Now that it's 2017, I'm considering upgrading from v8 to v10 which is how I found this thread.

    Thursday, June 8, 2017 3:39 PM