I have a project that requires me to create a webpage that would allow users to fill-in information in a web page, create a pdf of the information( could be the whole HTML ), and email the pdf to someone.
I'm using c# and .Net. Does anyone know of a way to do this or could point me in the right direction.
easy stuff: you need to configure your SMTP to send emails. Then use ASPOSE. This program does exactly that: creates PDFs and joins them together.
Unfortunately, I have searched for a way to do this for myself and have not been able to find a way directly in .Net without the use of a 3rd party library.
Right now I am using a library called iTextSharp with pretty good success. http://sourceforge.net/projects/itextsharp/
Another one I have used in Classic ASP applications (that does have a .Net component, but is not free), that was really good is Web Super Goo's ABCPdf http://www.websupergoo.com/abcpdf-1.htm
Good luck.
Related
I'm using Exchange Web Services Managed API 2.0 to connect to Exchange server 2010. I wanted to download email body to a PDF file in a folder on the disk.
I do not want to use any paid third party to integrate.
Any help will be appreciated.
PdfSharp is a great free library for creating and manipulating PDFs. See this answer, it should set you in the right direction.
Edit: Seems like PdfSharp doesn't actually provide an option to convert an HTML to PDF. I have since explored different libraries. I found that ChromeHtmlToPdf is a good free alternative and easy to use. Bear in mind that it uses Chrome to work it's magic.
I created web application using ASP.NET CORE 2 and used DinkToPdf to create and download the PDF to target directory. It is working really well to create and save PDFs. Now I want to use server side and print the PDF to target printer in the office. I couldn't find any solution to do this. Please help me.
Are you looking to integrate this functionality into your software? If so, there are several PDF libraries on the market with printing capabilities, some more reliable and full-featured than others.
If you're looking for a Windows command line utility to print PDFs to a target printer, you may be interested in PDF2PRINT, which allows you to do exactly that, as well as set optional parameters like duplex, collation, custom page ranges, number of copies, etc.
For future reference, questions like these should be posted in the Software Recommendations forum.
I have an existing, and very complex, library that generates a System.Drawing.Printing.PrintDocument() that is used to send print jobs directly to a printer.
I now need to take this existing library and generate PDF documents for a web application.
I tried looking into 3rd party libraries such as ABCpdf, Spire.PDF, PDFSharp, etc, and none of them seem to be able to take a PrintDocument as input. At least none of their documentation indicated they could.
There are a couple of other questions here regarding this, but none of them point to an actual solution or library that works.
Installing a print driver such as Bullzip doesn't seem to be an option either as I need to return the rendered PDF through the web application.
What options are there for taking a PrintDocument(), rendering it as a PDF, and then serving it through a web application?
I am using asp.net with C#. I want to convert my html page to pdf. But I don't want to use "itextsharp.dll" for the same.
I went to lot of Google and sites. I am looking for some free one.
There is no such inbuilt functionality available in asp.net by default. You have to use any third party dll for this one. I would advice to take a look on the PDFSharp library
Take a look at PdfSharp. It's an open source library that easily creates PDF documents from any .NET language.
I am working on a Silverlight web application that creates PDF documents. We want our clients to print these PDF documents but we do not want them to see it or save it locally.
Is there a way to send PDF data directly to client's printer without opening it in client's browser?
Please advice.
No -- Silverlight 3 does not support printing natively.
You can usually get some things done in the browser using Javascript, but that won't let you directly send a PDF the way you're discribing.
It's possible to write a seperate app that lives on the client machine and then integrate with that... For an internal line-of-business app that could be a good solution, but the obvious drawback is that you're stepping outside of Silverlight's multi-platform bubble.
Here's an article that might be worth looking at: http://jonas.follesoe.no/PrintingInSilverlight2UsingCSSAndASPNETAJAX4.aspx (the comments are also interesting, and some of them talk about working with PDFs)
Update: Silverlight 4 now supports this.
No. Silverlight does not have access to any printer resources directly, only via javascript print functions.