Asked by:
what is the best sollution for generate PDF files from an ASP.NET 2.0 page?

Question
-
User2080717336 posted
Greetings
I need the help of the community. Well, I this the title says it all :)
On my ASP.NET application I need to generate some PDF files, with different layouts. What is, in your oppinion, a good "PDF-maker" sollution for generate PDF files from ASP.NET? I need some tips :)
TIA
Almeida
Friday, October 27, 2006 7:48 AM
All replies
-
User-503940700 posted
Hi Almeida,
This might help:
http://geekswithblogs.net/vivek/archive/2006/09/26/92316.aspx
Regards,
Vivek
Friday, October 27, 2006 2:43 PM -
User1935883884 posted
I have had good luck with nFOP, a J# port fo the JAVA (Apache) FOP:
http://sourceforge.net/projects/nfop/Example:
http://www.codeproject.com/useritems/nfop.aspOf course you will need to learn how to write a proper transform to create an FO document. Its seems complicated at first but once you have the basic tags down its really easy and powerful for formatting PDFs.
XSL-FO reference:
http://www.w3schools.com/xslfo/xslfo_reference.aspJava FOP:
http://xmlgraphics.apache.org/fop/faq.htmlThursday, November 2, 2006 7:48 PM -
Friday, February 9, 2007 9:10 AM
-
User1696511887 posted
I'm just checking out the PDF generator now. Is there a way to set the text color for a table cell?
Tuesday, February 27, 2007 5:00 PM -
User-837152306 posted
Have a look at this example, they color the cells and set the text white:
http://itextsharp.sourceforge.net/examples/Chap1011.cs
Wednesday, March 14, 2007 4:19 AM -
User-834588198 posted
I think the iText is one of the best solution for pdf printing.
u could download the free version from
http://www.ujihara.jp/iTextdotNET/en/index.html
It has good amount of online documentation also
Wednesday, May 23, 2007 4:21 AM -
User-1037184998 posted
Can you guys please help me regarding the generation of PDF file using c#.
some how i was succeeded in generating the pdf file,
but the problem is when i try to apply the code 39 font to some content in PDF, it's not applying.why i don't know. i installed that font in the windows\font.
please help me out,.
thanks
Praveen,
Sunday, December 2, 2007 8:22 AM -
User-837152306 posted
How did you apply your font to the text?
This is VB code, but should explain the basics:
Dim oFontCalibri As BaseFont = BaseFont.CreateFont("C:\Windows\Fonts\calibri.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)
Dim font As New Font(oFontCalibri, 9)
Dim phrase As New Phrase("Your Text", Font)Basically change the file name to the font that you want to apply.
That's it.
Sunday, December 2, 2007 9:49 AM -
User-1037184998 posted
thanks for your reply.
i am c# developer. i don't know VB.
i am using the code from Code Project.
FontDict free3of9 = new FontDict();
free3of9.CreateFontDict("T1", "Free 3 of 9");
page.AddResource(free3of9, content.objectNum);
file.Write(free3of9.GetFontDict(file.Length, out size), 0, size);this is what he is using the code.
textAndtable.AddRow(false, 13, "T1", align, "1234568", "Praveen");
so, T1 is reference to Free 3 of 9 font.
Any font other than this font is coming fine. But barcode font is not coming.
please help me out.
thanks
-Praveen.
Monday, December 3, 2007 7:42 AM -
User-1987227794 posted
Hi,
i used the itext and is working fine in case of a static text , but is there any way to convert a excel file into pdf format.
pls reply
Monday, March 3, 2008 6:17 AM -
User-1205449451 posted
Is the iText Sharp 4.0.8 dll free of cost
Monday, March 17, 2008 3:42 AM -
User-1987227794 posted
yeah itext is all free of cost. you can easily download and use. it also provides a good documentation in the site.Tuesday, March 18, 2008 2:22 AM -
User-1205449451 posted
Thanks. We are going to deliver with the iText Sharp 4.0.8 dll,so will the dll act as a trial version or will the dll expire after 30days.
Tuesday, March 18, 2008 2:50 AM -
User-1987227794 posted
it's completely free of cost and will not expire after 30 days
Monday, March 24, 2008 5:04 AM -
User797498101 posted
Hi Marnee,
Can you please tell me where can i get latest ApacheFop.Net.dll for ASP.Net 2.0 ?
Thanks in Advance for your help.
Regards,Singh
Friday, January 2, 2009 8:07 AM -
User1496227624 posted
Almeida,
I agree with the folks on itext being a good viable solution if you are looking for some basic PDF creation.
What I found as the issue with iText is that most of the samples floating around are Java samples and the .NET side has been neglected.
I finally switched to a professional pdf component library called PDFTechLib by http://www.pdf-technologies.com and it has surprised me at every turn.
Goof support, good samples. Check it out.
Later!
Orhan
Tuesday, January 27, 2009 7:34 AM -
User-457597647 posted
What about ABCpdf .NET by webSupergoo? I'd like to mention this because it has been designed for use in IIS web server environments and ASP.NET.
There's a live demonstration on their website (www.websupergoo.com), which is included as an example website project and is freely adaptable.
Wednesday, January 27, 2010 5:24 AM -
User1131953288 posted
I use PDF-Writer.NET component by dbAutoTrack. It provide developers with an easy-to-use tool for creating standard PDF file from .NET Framework Applications - WinForm, ASP.NET, Silverlight & WPF applications.
You can also get 100% source code of this project.
Product provides excellent documentation with over 46 implementation sample
They have excellent Support Team. You can get this component for USD 89 with FREE upgrades.
It support advance features like Digitially Signed PDF, Encryption, AcroForm Framework, Barcodes Framework, Layers & SubLayers, Tiling & Shading, Javacript, Font embedding and Sub-Setting, TTF Fonts, TTC Fonts, CJK FontsMonday, August 29, 2011 7:36 PM