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.
Related
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 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 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.
I need to take Word, Excel, PowerPoint and Visio files and convert them to PDF on the server side using C#.
At some point before or after the PDF conversion, the clients want a stamp/watermark to be added to the corner of the document (assuming, for now, on every page).
I cannot use Office products in the process, as there are licensing and stability issues involved with using "interop" server-side. Also, I would rather not depend on any other installed software on the server for similar reasons; this functionality will be used by multiple clients at the same time.
I have spent a couple of days searching, and
Aspose seems to be the only library which would be suitable, however it seems prohibitively expensive. I would welcome any suggestions which would complete all requirements, or separate libraries to handle the watermark and conversion to PDF separately
UPDATE: As of now I have a prototype converting all the above file types to pdf with a watermark added using Aspose. It was relatively easy, the forum can be a great help when in a pickly
I think AbcPDF will do this for about half the price: http://www.websupergoo.com/abcpdf-office-docs.htm
You might have to roll the watermark part yourself, but that's quite trivial to code.
There is also quite a list of libs here: .NET server based PDF generation
I'm interested in knowing to create a Online Word processor similar to Google Docs and MS Office web Apps. i want to do it using MicroSoft technologies and Tools only. I'm a beginner in ASP.net and C#.net. I've planned to do its front end using TinyMCE [ http://tinymce.moxiecode.com/tryit/full.php ]. but how to convert the data in the browser to .doc in the server? how can i do the formatting of a .doc file in the server using .net? what are the tools available in .net to work on such kind of projects? Thanks in Advance.
Use OpenXML to generate word docs. This is of course for Word 2007/2010, not 2003. PLenty of documentation on how to do it. You can reverse a word doc by changing extension from .docx to .zip then extracting the files and viewing them in notepad.
thinking about it more, you might want to create an XSLT to translate the html markup to OpenXML. But this is a lot of work (might already be available somewhere on the net) so you might try a 3rd party tool as suggested below.
There are a variety of third-party libraries, such as Aspose, that can do this.
I don't think you'll find any good free ones.
You can generate .docx (OpenXML) files using the OpenXML SDK.