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 am looking for a free open source .Net based, preferably C#, pdf printer such as CutePDF's Custom PDF Writer with programmatic access that will allow me to save a xps document to a pdf format. I have found many alternatives that are capable of converting xps documents to pdf formats, but they are not open source. I was curious to know if anyone is aware of an open source library that will allow me to accomplish this.
For any of you out there attempting to convert XPS to PDF using an open source means, I was able to successfully do so using PDFSharp version 1.31. It successfully upgraded to .NET 4.5 and I included the PdfSharp.Xps project into my solution. Once you include all the references, you only need a single line to link to your XPS file.
XpsConverter.Convert("D:\\Example\\test.xps");
Note: There are also other constructors available but I used the most simplistic one in my example.
Hope this helps!
Related
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.
Can you recomend any PDF API for C#. Free is the best, but I don't mind paying for it.
I used PdfSharp. It's free, open source and quite convenient to use, but I can't say whether it is the best or not, because I haven't really used anything else.
Update:
I'm not sure when or if the license changed for the iText# library, but it is licensed under AGPL which means it must be licensed if included with a closed-source product. The question does not (currently) require free or open-source libraries. One should always investigate the license type of any library used in a project.
I have used iText# with success in .NET C# 3.5; it is a port of the open source Java library for PDF generation and it's free.
There is a NuGet package available for iTextSharp version 5 and the official developer documentation, as well as C# examples, can be found at itextpdf.com
My work uses Winnovative's PDF generator (We've used it mainly to convert HTML to PDF, but you can generate it other ways as well)
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 am using teecharts with C# and I want to print the graph that is generated to a pdf. Does anyone have any recommendations that are preferably free? This is a desktop application that uses forms.
You can use devloper express Charts. It will to export the data from chart to different types of files.
if (chartControl1.IsPrintingAvailable)
{
// Exports to a PDF file.
chartControl1.ExportToPdf("Output.pdf");
}
Refer: XtraCharts
Create a Chart using the Wizard
Yes, it is possible as TeeChart includes PDF export:
tChart1.Export.Image.PDF.Save(fileName);
For further exporting options please have a look at tutorial 12. Tutorials can be found at TeeChart's program group.
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
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 need to create seprate pdf file for each n number of patients all together. So if anyone selects that patient in the gridview it should open that individual patient pdf.
Please someone tell me how to approach for this.
Make use of iTextSharp dLL that will help you to create PDF file easily
here is article and demo for this : Creating PDF documents with iTextSharp
one more good eample : Create PDF document using iTextSharp in ASP.Net 4.0 and MemoryMappedFile
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 had a problem highlighting text in a pdf file embedded in webbrowser control and highlighting text using PDFLibNet.pdfwrapper so i'm shifting to another process where i'll just convert the pdf to html so i can manipulate the source code to highlight text.
How can i convert pdf files to html files? Is there a better way?
Thanks,
Jepe
Try the open source application pdftohtml. It should suit your needs, since you can use C# to automate the converting once you download this little console application.
You could use the Aspose.Words api to convert pdf to doc then onto HTML.