I want to ask for the best way to generate a PDF and Microsoft Word Documents using ASP.NET.
I have used XSLT transformation, but the results was not good, and the major of XSLT processors are commercial and not free.
I need to create a simple document have a header, footer and some tables and images.
can anyone provide me with the best technology to do this job.
Thanks
I had this question a little while ago.
I wrote some really neat stuff for PDF generation.
iTextSharp or XSL-FO to create a PDF dynamically with fillable forms?
PM me and I can send you some files.
IText is a good free library for creating PDF documents.http://itextpdf.com. Works great with both WinForms and ASP.Net.
Related
After spending hours and hours on StackOverflow and programmers forum, i've decided to use the SyncFusion on our project.
Our main target is :
convert to PDF/directly print existing Doc And Docx
this Document can be quite complexe (including shapes, images....)
using Word Interop can not be a solution for us
If we are able to convert or print without problems, the orginal Word documents are not well rendered (parts of shapes missing...)
Somebody is using this component without problem ? Or do you knows others best components (Aspose ??)
Yes, you can meet these requirements using Aspose.Words. With Aspose.Words for .NET API, you can easily render any complex Microsoft Word document or Text/Html/Mhtml file to PDF format with high fidelity. Please see the following simple code:
// Load Word document in memory for processing
Document doc = new Document(MyDir + "Document.docx");
// Send it directly to printer
doc.Print("printerName");
// Convert DOCX to PDF
doc.Save(MyDir + "DocxToPdf.pdf");
This means that if you convert a Microsoft Word document into PDF, XPS or print it using Aspose.Words, the output will appear almost exactly as if it was done by Microsoft Word application. Please check Aspose.Words for .NET Documentation for more details.
I work with Aspose as Developer Evangelist.
Can you please send your example document to Syncfusion by creating a support ticket and we will able to check and provide a solution. (I work for Syncfusion)
Ty for all the answers (in this post and other on SO).
But after trying :
4 or 5 .Net Libraries
Using very simple, but also complex Doc and Docx Files
And specialy with complex doc file, mixing complex shapes, grouping schemes, img import....
Here is my conclusion (imo) :
there is no better processing (printing and creating PDF) than using Ms Office and it's automation from .Net
and even if it is not recommended by MS itseflf, we are very sastified of our "doc printing server"
it is printing more than 30 or 50 "Build of Manufacturer" with more than 30 pages each, and also with A3 plan.
it is working very well for 4 month, without major bug
If somebody is interested, i can post the tips and link i have used to properly use MS Office in a "Windows Printer Server mode".
Best regards from Toulouse
Docentric Toolkit is primarily a mail merge library but also has a complete DOM and a high fidelity PDF/XPS rendering engine. Still I haven’t try to convert a Word document containing decorations and styles with effects.
document = Document.Load("Test1.docx");
document.Save("Test1.pdf");
It's obvious from the title what I want to do. I know it is possible to convert html to PDF document using a very popular library iTextSharp. But what I acknowledged from this post is iTextSharp cannot render HTML5 and CSS3 styles correctly. Is there any free library to achieve this?
Backgroud:
I am using DevExtreme for report generation. It has supported chart export in PDF but my client wants some extra content in PDF apart from charts. It is not supported by DevExtreme, so I took decision to write my own custom PDF exporter.
There are some libraries available but I cannot rely them since I can't predict in advance what issues will it cause in production in future. Correct me if I am wrong, there is no API given by Microsoft for manipulating PDF files. We can create and manipulate excel and doc files using Microsoft.Office.Interop.Excel.dll and Microsoft.Office.Interop.Word.dll but I didn't find anything for PDF manipulation.
Please suggest me what options I have.
Hope this makes sense..!
A few years back I was using iTextSharp to get our html manuals in xhtml/css/wiki to pdf. It was...painful and a lot of work. So, the first news is: You will need quite a few weeks (2,3,4 weeks, depending on the grade of perfection you want) of time if what you have is not only a few html pages.
If you only have a very limited amount of pages, the quickest and dirtiest way is to make screenshots from your rendered pages and add those images to the pdf. Not very high-tech but quickly done.
If your style sheets can be sacrificed and you do not care about the formatting of the content to be identical, you can convert your html5 pages to xhtml so you can load them as XmlDocuments. Then you simply create a program which does some mapping from xml elements, such as <h1>MyTitle</h1> to some section of code which creates a pdf entity using iTextSharp. Basically that was the way I did it in my case. I also did some mapping from css style classes to some specific pdf formatting, but not to the extreme.
Also worth trying is converters from html (or xml) to tex/latex. If you are lucky you find one which does a good enough job. Then you can use pdftex and get your pdf.
Also, it is possible that you can print your documents to an xps printer and then convert the xps to pdf. Or you simply convince your customer that xps is what they want.
I have been asked to design a web based document imaging solution in C#. So far I have found only expensive SDK modules like Accusoft's ImagXpress and the like. MODI looked promising but seems more OCR centric which might be above and beyond the scope.
Is there a solution in .Net that would allow me to code in the document scanning, manipulation / viewing with the PDF format without buying expensive SDK's? I am hoping for a point in the right direction to research.
Simple Scope:
Scan document to PDF format
View/save document
Any help is greatly appreciated.
Thanks in advance!
You could use Silverlight to acquire a raster image, then use a PDF generation library either in Silverlight or Asp.net (server-side) to generate the PDF.
I am developing application wich produce a report with graph. I read about free C# libraries to create PDF but I can't see any completely FREE geenrator to use in application that I want to sell. Can you give me one?
Other problem is to generate a simple chart. What are the tools to create such a graph? I need to put it into pdf document after generating it.
Thx for help!
PDF reporting could be done using nfop. I know someone who has done PDF with that, but I do not know more.
Regarding the charting: you could use Microsoft Chart controls, render to an image and include an image in the PDF.
I would like to create a PDF from the data i have in a microsoft access database. Can someone please tell me what I should use to make this happen? Any tips and steps are appreciated.
One way of doing it is creating a report (you can use CrystalReports) against your AccessDB data, and then exporting that report to PDF.
Other way of doing it is creating a little program in C# and generate a PDF using an Open Source PDF generator like iTextSharp, PDFCreator or Report.NET. There are also a lot of commercial libraries available.
Other way of doing it is creating a little Java program and generate PDF using iText.
Other way of doing it is creating a little insert your favorite programming language here and generate a PDF using a suitable library for it.
try this old link I have used this and it produces PDF direcly fron access full credits to Mr Lebans just follow his clear instructions
http://www.lebans.com/reporttopdf.htm