You must Sign In to post a response.
  • Category: ASP.NET

    How to Convert .aspx page(html code) to Pdf in Asp.Net using C#

    hi Developers,

    i want to convert .Aspx page(html code) to Pdf.
    am google it and use some queries usin iTextsharp. i got answer but it does not exact.
    because there is misses Align,Border,Colour,top , bottom, size and etc.
    so i can't able to get exact one.

    i just want to Convert a single html page to pdf with my included and alignment design.

    in my case i am not using gridview. just using tables,textboxes and labels.

    so anyone of you know please suggest me how do i do this with Design,Alignment,Border of the page.

    thanking you
    Paul.S
  • #768056
    You could try below example which demonstrated how to convert html page to pdf using C#:
    https://code.msdn.microsoft.com/Convert-HTML-to-PDF-with-C-b16fc75f

  • #768058
    Hey there,

    Here i sent you some site for helping out to convert the file:

    http://pdfcrowd.com/web-html-to-pdf-net/

    http://www.aspsnippets.com/Articles/Export-ASPNet-Web-Page-with-images-to-PDF-using-ITextsharp.aspx


    Hope It Helps,

    thanks,
    Vaibhav shah

  • #768060
    Hai Paul Raj,
    There is a Free 3rd Party Library is available in Microsoft MSDN which can be used. If you need you can make some modification in the code and recreate the dll using the same.

    https://code.msdn.microsoft.com/Convert-from-HTML-to-PDF-09ce2a1d

    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #768061
    --
    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


  • Sign In to post your comments