C# PDF Printing Library [closed] - c#

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Are there any free libraries that would "print" to a PDF without actually having to install a PDF printer on the system. I want something that can be completely self contained in my application. The reason I say I want it to "print" is that I've tried and tried to find a solution for directly converting from HTML with CSS to PDF, but it does't seem very possible. So I want to use the System.Windows.Forms.WebBrowser control to render the page first and then output that rendering to PDF. I just don't want the user to be required to install a PDFPrinter.

PDFsharp

Does it have to be free? Last time I looked at ABCpdf it looked quite good, and claims to support css (here).
HTMLDOC should support css at some point, but last time I checked the css stuff was still in beta. And has been for "some time"; I've given up waiting... It isn't .NET, but you can use Process to invoke it.

http://www.html-to-pdf.net/ - This isn't free but its preety cheap and effective. I am using it now to convert HTML with CSS to PDF. Essentially we display the page to the user and then with a click of a button they can download a PDF of the page.

http://itextsharp.sourceforge.net/ is really excellent. You can see how to use it in the repository at stochfit.sourceforge.net

Another tool (not free): http://www.winnovative-software.com/

Related

Display formatted content to the user? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm developing a tester-application that will be used to test some of our products. The testing process involves displaying instructions to the tester (who might not be a professionally trained IT expert). These instructions involve formatting and can may also contain pictures. What would be a good way to display these?
I've thought about using a WebBrowser control and pointing it to static some HTML, but after having some issues with it (the webbrowser control is using a different version of the rendering engine then the locally installed IE is, etc...) I feel like this might not be the best option.
An argument for the use of HTML is that I could use one of many templating engines to easily create the instruction-content without hassling with too much formatting.
Do you have any advice on what to use here?
If winforms are not a strict requirement, you could try using XAML in a WPF application.
It should allow you to obtain all the layout you need, and you can also find some tools to convert to/from HTML (with some restrictions, of course).

Generate PDF using Asp [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Anyone here knows how to generate PDF using ASP? My system is about car rental online. When user choose car,date and services offered, there will be a 'CONFIRM' button which it will generate PDFs after user click it. I don't ask for you to write me the code, I just need you to provide with some helps,tips and reference as I am not familiar with this. Looking forward to hear from you. Have a good ones. Cheers.
You can use ITextsharp from here http://sourceforge.net/projects/itextsharp/ it will help u to generate pdf.
And this tutorial will help u
http://www.mikesdotnetting.com/Article/80/Create-PDFs-in-ASP.NET-getting-started-with-iTextSharp
This is a list of free libraries that help you implement PDF generation in any type of aplication (including ASP) .
A bit of reading is required, but in the end its your choice wich one you are going to use:
http://csharp-source.net/open-source/pdf-libraries
From personal experience I can recomment ABCPdf.Net (paid) and iTextSharp (free)
Use EVO PDF
http://www.evopdf.com/
Or
Use Winnovative
http://www.winnovative-software.com
Use following to generate PDF it works with multilingual with great easy.. It is the best free dll i have used so far
WKhtmltopdf convert html file to pdf

Need some information on Document Viewer in asp.net [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I m trying to prepare a document viewer in asp.net 4.0. My requirement for this viewer is that all users coming to my website will be able to view every document. uploaded by him on my web-server.
I want to know any third party free application/service/user-control i can use in my website and open all my documents (.doc, .docx, .xls, .xlsx, .ppt, .pptx, .pdf, .jpg, .gif, and other image formats.)
I found Adeptol Viewer, TX TextControl. but this are very costly, ranging $5000 and above. can i get any cheap control..
EDIT : Also i want to know, is it possible to create such custom control in .NET and use it for our future use. If possible please guide me how i can achieve this. It is fine I can use Client Scripting like jQuery. for this
Awaiting for the reply from any technical experts who is willing to help/ support my question.
There is open source document viewer named Okyanux File Manager supporting only the documents which browsers support such as .swf, .wmv, .jpg, .gif and other image formats. You can also add .pdf support with Ron Schuler's open source PDF Viewer. It converts pdf files to images for previewing. I think other file types are not easy. You can add word and excel support with Spire.XLS which costs 900$.
Found the best and free solution for document viewer for all types of documents including edit feature..
Google Docs viewer
Zoho viewer
I found Zoho more interesting than google as it provides fantastic features compared to google.. editing of any document (.ppt or .xls) is just like you are using Microsoft Office in your browser.
Fantastic functionality and perfect solution.

Converting from PDF to HTML [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Is there a .dll I can use which uses a PDF file as an input and HTML file as an output?
I want to convert from PDF to HTML. My colleague says that it's very difficult going step by step, getting text/font/image/margins/links etc. from PDF and then creating new HTML file with the same content. He says it's nearly impossible. So I was thinking - if there's some dll which I can use as a reference to do that?
Writing a program to do it is definitely not trivial. If you don't find any .NET Library to do this (I couldn't, at least not free), I would just download this and invoke it programmatically to get my html.
If you have the time to spare and/or PDFToHtml does not produce acceptable output for you, you could use iText to write the program yourself. It's a very mature free pdf library. I've used it in the past to manipulate PDFs (merge, create, etc).
UPDATE
As noted in the comment by Quandary, the PDFSharp library offers a more relaxed license (MIT) compared to the Commercial or AGPL license offered by iText. Keep this is mind when choosing your library. I have not used the PDFSharp library myself and I don't know how they compare in terms of functionality.
You can download this free tool: PDFToHTML
Then in your program just fork a new process and run the executable passing the PDF file. I just tested it now and it seems to work ok.
If you don't mind paying, Aspose offers a very good solution, this is what we use at my company.
http://www.aspose.com/categories/.net-components/aspose.pdf-for-.net/key-features.aspx

Fill in PDF with fields [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I have a few PDFs from various customers/vendors. My goal is that I am building a web app where a potential customer fills out a single form of data and then can generate all of the PDF's to print and sign.
The PDF's have fields in them that in adobe reader you can click and type in the data. However, this is sensitive financial data, and the PDF won't let you save to your desktop. There is actually a warning in adobe reader when you open the pdf and it prevents you from saving a completed form. I don't care about this feature. My users can save it if they want to take the risk if it becomes opened up when I generate the completed pdf myself.
The problem is that I need to generate these pdfs with my data injected into them without altering the style. I want to avoid manually building them, but I will if I have to. How can I generate the exact PDF format they gave me with the data filled in?
You could have a look at iTextSharp and the PdfStamper class - it allows you to load up an existing PDF, 'stamp' data into the fields and then flatten out the PDF which can be sent to the user:
http://sourceforge.net/projects/itextsharp/
Note that iTextSharp is paid for for commerical products - but there may well be other open sources librarires that can do this.
You may try Aspose.Pdf for .NET to achieve your goal. You can fill the form fields using this component. If you do not want to allow the users to edit this data once it is filled in the PDF, you may flatten the fields as well. This will not change the existing layout of your PDF. The API is very simple along with complete documentation and support.
Disclosure: I work as developer evangelist at Aspose.

Categories