<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 22:02:48 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 22:02:48 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>79</c9:totalResults>
	<c9:pageCount>-79</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Anyone use <a href="http://itextsharp.sourceforge.net">iTextSharp</a> to create PDF's containing form fields? It is for a form that is generated from a database and one that the user can fill in (to print and send, or email).<br /><br />I can generate the PDF from the database, but have no idea how to add text boxes, checkboxes etc. The tutorials don't seem to cover that.<br /><br />Ideally I'd want to convert a HTML web page to a PDF, but I don't think that is possible (with any freely available components), especially when using it on a shared hosting service (the options I have seen include installing software on the server, then running
 that and returning the file).<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/117199#117199</link>
		<pubDate>Mon, 26 Sep 2005 11:33:17 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/117199#117199</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I had similar problem. I just downloaded a trial of the latest version of the Adobe Acrobat, which has a cool form designer tool. I used that to create the template document for my program, including adding all the form fields.<br /><br />This works fine as long as you do not need to modify the template after it is created.<br /><br />My code then creates the PDF documents based on this template, by filling in values from database records, into form fields programmatically.<br /><br />Good luck...<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/eb81403a038a410788b19dea012bb125#eb81403a038a410788b19dea012bb125</link>
		<pubDate>Mon, 26 Sep 2005 11:58:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/eb81403a038a410788b19dea012bb125#eb81403a038a410788b19dea012bb125</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Any example of doing this? I have Acrobat 5, so can create the PDF.<br /><br />How do you then use iTextSharp to modify the fields (i.e. do you have any example code)?<br /><br />Apart from iTextSharp, the tools that generate the PDF's are quite expensive (also, I can only use free components). iTextdotNET uses J#, so I can't use that (but I don't think it offers anything over iTextSharp).<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/ae786d3f574b45b0ac9b9dea012bb14f#ae786d3f574b45b0ac9b9dea012bb14f</link>
		<pubDate>Mon, 26 Sep 2005 12:21:05 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/ae786d3f574b45b0ac9b9dea012bb14f#ae786d3f574b45b0ac9b9dea012bb14f</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>OK, let's say I have a PDF document called &quot;Form.pdf&quot; with 4 form fields. The form fileds are &quot;name&quot;, &quot;address&quot;, &quot;postal_code&quot; and &quot;email&quot;.<br /><br />Here's the code to create a new PDF file using &quot;Form.pdf&quot; as a template:<br /><br />private void fillForm()<br />{<br />&nbsp;&nbsp;&nbsp; string formFile = @&quot;N:\.NET\Form.pdf&quot;;<br />&nbsp;&nbsp;&nbsp; string newFile = @&quot;N:\.NET\Filled-out Form.pdf&quot;;<br />&nbsp;&nbsp;&nbsp; PdfReader reader = new PdfReader(formFile);<br />&nbsp;&nbsp;&nbsp; PdfStamper stamper = new PdfStamper(reader, new FileStream(<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; newFile, FileMode.Create));<br />&nbsp;&nbsp;&nbsp; AcroFields fields = stamper.AcroFields;<br /><br />&nbsp;&nbsp;&nbsp; // set form fields<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;name&quot;, &quot;John Doe&quot;);<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;address&quot;, &quot;2 Milky Way, London&quot;);<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;postal_code&quot;, &quot;XX1 4YY&quot;);<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;email&quot;, &quot;johndoe@hotmail.com&quot;);<br /><br />&nbsp;&nbsp;&nbsp; // flatten form fields and close document<br />&nbsp;&nbsp;&nbsp; stamper.FormFlattening = true;<br />&nbsp;&nbsp;&nbsp; stamper.Close();<br />} <br /><br />Acrobat 5 should be enough to create a PDF form. Let me know if you're having any troubles.<br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/e18eedee1e13422a998b9dea012bb17c#e18eedee1e13422a998b9dea012bb17c</link>
		<pubDate>Mon, 26 Sep 2005 13:58:56 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/e18eedee1e13422a998b9dea012bb17c#e18eedee1e13422a998b9dea012bb17c</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Thanks, that worked out fine. Pity the documentation is not that good, but as a side effect I found out about generating a document from Xml or via document.Add.<br /><br />Only difference is I used Server.MapPath to get the file, and saved the 'stamped' document to a MemoryStream that is then streamed to the user. Didn't use FormFlattening either - what is the advantage of using it?<br /><br />Also, how do you change author, subject, keywords etc using PdfStamper/Reader?<br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/904f67433c3a489f87a69dea012bb1a7#904f67433c3a489f87a69dea012bb1a7</link>
		<pubDate>Mon, 26 Sep 2005 15:46:52 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/904f67433c3a489f87a69dea012bb1a7#904f67433c3a489f87a69dea012bb1a7</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>sbc wrote:</div>
<div>Thanks, that worked out fine. Pity the documentation is not that good, but as a side effect I found out about generating a document from Xml or via document.Add.<br /><br />Only difference is I used Server.MapPath to get the file, and saved the 'stamped' document to a MemoryStream that is then streamed to the user. Didn't use FormFlattening either - what is the advantage of using it?<br /><br />Also, how do you change author, subject, keywords etc using PdfStamper/Reader?<br /><br /></div>
</blockquote>
<br /><br />Form Flattening flettens the actual form fields so that they can no longer be changed in the new document created by the stamper. If you have not set that, anyone can change the contents of the form fields... If you do specify Form Flattening, then the form
 fields will be converted into text and cannot be further modified.<br /><br />To add the document&nbsp;meta-data, you would normally use the following methods of the Document object (before calling document.Open()):<br /><br />private void createPDF()<br />{<br />&nbsp;&nbsp;&nbsp;string newFile = @&quot;N:\.NET\New Document.pdf&quot;;<br />&nbsp;&nbsp;&nbsp;Document doc = new Document();<br />&nbsp;&nbsp;&nbsp;PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(newFile, FileMode.Create));<br />&nbsp;&nbsp;&nbsp;// Metadata<br />&nbsp;&nbsp;&nbsp;doc.AddCreator(&quot;PDF Printer by Joachim Tesznar&quot;);<br />&nbsp;&nbsp;&nbsp;doc.AddTitle(&quot;New PDF Document&quot;);<br />&nbsp;&nbsp;&nbsp;// Add content<br />&nbsp;&nbsp;&nbsp;doc.Open();<br />&nbsp;&nbsp;&nbsp;doc.Add(new Paragraph(&quot;Hello World&quot;));<br />&nbsp;&nbsp;&nbsp;doc.Close();<br />}<br /><br />I don't know how you can do this using the PdfStamper object; there must be a way of accessing the document object in-directly. If you find out how, let me know... <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /> If you can't, I know a way around this but it requires copying the ContentByte of that document
 and importing a page into a new document where you can set the meta-data.<br /><br />Another option is to create your document in XML (see the tutorial), then use the XmlParser object to convert it to PDF. You can set your meta-data in the XML document and the parser will set these in the&nbsp;PDF&nbsp;for you.<br /><br />Have fun</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b0542a7e8d7f4df9828a9dea012bb1d7#b0542a7e8d7f4df9828a9dea012bb1d7</link>
		<pubDate>Mon, 26 Sep 2005 16:52:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b0542a7e8d7f4df9828a9dea012bb1d7#b0542a7e8d7f4df9828a9dea012bb1d7</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Once you created the PDF file using the PdfStamper object, you can set the document properties by importing the file into a new document - where you can set properties such as Author and Title.<br /><br />Note, the following code is just a workaround (not a solution):<br /><br /></p>
<p>using System.IO;<br />using iTextSharp.text;<br />using iTextSharp.text.pdf;<br /></p>
<p>public static void CopyDocumentTest()<br />{<br />&nbsp;&nbsp;&nbsp;int pageNumber = 1;<br />&nbsp;&nbsp;&nbsp;PdfReader reader = new PdfReader(&quot;New Document.pdf&quot;);<br />&nbsp;&nbsp;&nbsp;Rectangle size = reader.GetPageSizeWithRotation(pageNumber);<br />&nbsp;&nbsp;&nbsp;Document document = new Document(size);<br />&nbsp;&nbsp;&nbsp;PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(&quot;Copy of New Document.pdf&quot;, FileMode.Create, FileAccess.Write));<br /><br />&nbsp;&nbsp;&nbsp;//set document info<br />&nbsp;&nbsp;&nbsp;document.AddTitle(&quot;Document copied using iTextSharp&quot;);<br />&nbsp;&nbsp;&nbsp;document.AddAuthor(&quot;Joachim Tesznar&quot;);<br />&nbsp;&nbsp;&nbsp;document.AddSubject(&quot;Dynamic Content&quot;);<br />&nbsp;&nbsp;&nbsp;document.AddCreator(&quot;PDF Form Tool by Joachim Tesznar&quot;);<br /><br />&nbsp;&nbsp;&nbsp;document.Open();<br /><br />&nbsp;&nbsp;&nbsp;PdfContentByte cb = writer.DirectContent;<br />&nbsp;&nbsp;&nbsp;document.NewPage();<br />&nbsp;&nbsp;&nbsp;PdfImportedPage page = writer.GetImportedPage(reader, pageNumber);<br />&nbsp;&nbsp;&nbsp;cb.AddTemplate(page, 0, 0);<br />&nbsp;&nbsp;&nbsp;document.Close();<br />}</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f51fb8a565cc4966982d9dea012bb20a#f51fb8a565cc4966982d9dea012bb20a</link>
		<pubDate>Mon, 26 Sep 2005 22:54:12 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f51fb8a565cc4966982d9dea012bb20a#f51fb8a565cc4966982d9dea012bb20a</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I looked at XML, but it seems as though it does not have the required tags for creating forms. Plus it is probably far easier to do the document in Word, then convert to PDF and add the form fields using Acrobat.<br /><br />It looks like the steps I have to take are:<br /><br />- Use PdfReader to get the original PDF.<br /><br />- Use PdfStamper to edit the form fields, save into a MemoryStream.<br /><br />- Populate a PdfWriter document from the PdfStamper (which actually contains PdfStamper.Writer, but I dont think you can access the document part of it). Save into MemoryStream which is then sent to the user.<br /><br />Don't know why you have to go through all those stages just to modify a file (only need the first two if you don't need to change the title). The last stage seems as though it would be inefficient.<br /><br />Although PdfStamper does have a SetMoreInfo method that may be able to change the meta information (at least in iText, not checked if iTextSharp has this).<br /><br />Pity there are no iTextSharp forums to ask on.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7545224bc1664607863f9dea012bb238#7545224bc1664607863f9dea012bb238</link>
		<pubDate>Tue, 27 Sep 2005 12:16:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7545224bc1664607863f9dea012bb238#7545224bc1664607863f9dea012bb238</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>sbc wrote:</div>
<div>Don't know why you have to go through all those stages just to modify a file<br /></div>
</blockquote>
<br /><br />You don't; like I said it's just a workaround. And yes, it's inefficient (especially if you're doing it on the server).<br /><br />But if it is just the Title you are worries about, then just set the title on the form template and when the new document is created with the stamper,&nbsp;the Title&nbsp;will still be there.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/dc017f8954c144c184799dea012bb264#dc017f8954c144c184799dea012bb264</link>
		<pubDate>Tue, 27 Sep 2005 12:50:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/dc017f8954c144c184799dea012bb264#dc017f8954c144c184799dea012bb264</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Here is what I will try that may work (won't be able to do it till tomorrow though). Pseudo code:<br /><br /><pre>HashMap info = stamper.GetMoreInfo();<br>info[&quot;Title&quot;] = &quot;New Title&quot;;<br>info[&quot;Creator&quot;] = &quot;Web page&quot;;<br>stamper.SetMoreInfo(info);</pre>
<br />Hopefully that will be all I need to do.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/eadc535bcf0a42ddb8209dea012bb28f#eadc535bcf0a42ddb8209dea012bb28f</link>
		<pubDate>Tue, 27 Sep 2005 14:27:36 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/eadc535bcf0a42ddb8209dea012bb28f#eadc535bcf0a42ddb8209dea012bb28f</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Managed to modify the data using the following:<br /><pre>Hashtable info = new Hashtable();<br>info[&quot;Title&quot;] = &quot;Modified Form&quot;;<br>info[&quot;Author&quot;] = &quot;Fred Bloggs&quot;;<br>info[&quot;Creator&quot;] = &quot;My Web App&quot;;<br>stamper.MoreInfo = info;</pre></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f646fe1f31b94cf6a4f99dea012bb2b9#f646fe1f31b94cf6a4f99dea012bb2b9</link>
		<pubDate>Wed, 28 Sep 2005 11:22:42 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f646fe1f31b94cf6a4f99dea012bb2b9#f646fe1f31b94cf6a4f99dea012bb2b9</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Nice work <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' />&nbsp; thanks</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1ebb31b1ae0049589e949dea012bb2e1#1ebb31b1ae0049589e949dea012bb2e1</link>
		<pubDate>Wed, 28 Sep 2005 11:54:05 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1ebb31b1ae0049589e949dea012bb2e1#1ebb31b1ae0049589e949dea012bb2e1</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>So glad to finally find a forum where people are talking about this iTextSharp.&nbsp; The documentation is next to useless.&nbsp;&nbsp; I wrote pretty cool ASP.NET application that takes form input and then generates a PDF by taking the text of the fields on the form
 and pasting them to a template. <br />So essentially I have our designer make the PDF template with the form fields formatted the way they should be with font and color and then we create it.&nbsp; It's been working great until...our client decided that some of the dynamic text should have a CMYK color.&nbsp;
<br /><br />Until then we hadn't realized that our font colors were coming in grayscale.&nbsp; Black and White of course work fine, but when we try this rich pink look it comes out gray.&nbsp; Anyone have any idea how to change this.<br /><br />I poked around and found the SetDefaultColorSpace function, but I'm not sure what the second parameter is supposed to be.&nbsp; And more importantly I'm not even sure it's how to change this.<br /><br />Anyone know?&nbsp; I am using PDF stamper and form flattening would rather not have to take the approach of gathering all the field properties myself and reposting them, as that is what the Stamper is for.<br /><br />If you have any idea or even a place to look that has some sort of info other than the sourceforge page...please please let me know.<br /><br />Thanks,<br />--Craig Dennis<br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/47adaed6971e48e4b1df9dea012bb328#47adaed6971e48e4b1df9dea012bb328</link>
		<pubDate>Thu, 29 Sep 2005 16:51:12 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/47adaed6971e48e4b1df9dea012bb328#47adaed6971e48e4b1df9dea012bb328</guid>
		<dc:creator>craigsdennis</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/craigsdennis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Craig<br /><br />Have a look at the Java documentation; Java iText&nbsp;version is&nbsp;very different from the current iTextSharp version but the API is well documented in some places so might give you ideas (it's helped me). You can find it on
<a href="http://itextdocs.lowagie.com/docs/">http://itextdocs.lowagie.com/docs/</a>.
<br /><br />Are you trying to set the form fields font color using stamper? When I needed to have some dynamic text in color, I used the PdfContentByte object to create the text and then position it on the document, but not sure how would that work on the form&nbsp;with the
 stamper. Let us know.<br /><br />Have fun</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/df8f9f6fa16f4a9fbb529dea012bb354#df8f9f6fa16f4a9fbb529dea012bb354</link>
		<pubDate>Fri, 30 Sep 2005 09:40:08 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/df8f9f6fa16f4a9fbb529dea012bb354#df8f9f6fa16f4a9fbb529dea012bb354</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>FYI....Hey all so you know....I finally figured out the error.<br /><br />The Color.cs class had an error.<br /><br />The constructor that takes floats accidentally created a new RGB using the R 3 times, thus creating a gray effect much like #CCCCCC.&nbsp; So....if you fix that it'll work, I told Paulo so should be fixed in the next iterim.<br /><br />Thanks,<br />--Craig Dennis<br />Rhino Internet<br /><a href="http://www.rhinointernet.com">http&#58;&#47;&#47;www.rhinointernet.com</a><br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/aaafe35c09b149e29ed09dea012bb381#aaafe35c09b149e29ed09dea012bb381</link>
		<pubDate>Wed, 05 Oct 2005 15:50:27 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/aaafe35c09b149e29ed09dea012bb381#aaafe35c09b149e29ed09dea012bb381</guid>
		<dc:creator>craigsdennis</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/craigsdennis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Nice one Craig, well done mate <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4626d77010734d5e92c69dea012bb3ad#4626d77010734d5e92c69dea012bb3ad</link>
		<pubDate>Thu, 06 Oct 2005 13:44:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4626d77010734d5e92c69dea012bb3ad#4626d77010734d5e92c69dea012bb3ad</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi guys,<br /><br />I am a newbie to iTextSharp, <br />can anybody please send me the code for <br /><br />reading pdf Form fields and their values using iTextSharp<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/c9eb658b451c49fda8e59dea012bb3f2#c9eb658b451c49fda8e59dea012bb3f2</link>
		<pubDate>Tue, 18 Oct 2005 12:49:11 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/c9eb658b451c49fda8e59dea012bb3f2#c9eb658b451c49fda8e59dea012bb3f2</guid>
		<dc:creator>rocko_hunk</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/rocko_hunk/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>This should work:<br /><br />C#<br /><pre class="brush: text">// this is used to store the PDF in memory
MemoryStream m = new MemoryStream();
// which document to open
string file = Server.MapPath(&quot;form.pdf&quot;);
PdfReader reader = new PdfReader(file);
// then create a PdfStamper from the created reader to modify the form fields
PdfStamper outStamper = new PdfStamper(reader, m);
string name = outStamper.AcroFields.GetField(&quot;name&quot;);</pre><br />VB.NET<br /><pre class="brush: vb">' this is used to store the PDF in memory
Dim m As MemoryStream = New MemoryStream()
' which document to open
Dim file As String = Server.MapPath(&quot;form.pdf&quot;)
Dim reader As PdfReader = New PdfReader(file)
' then create a PdfStamper from the created reader to modify the form fields
Dim outStamper As PdfStamper = New PdfStamper(reader, m)
Dim name As String = outStamper.AcroFields.GetField(&quot;name&quot;)</pre><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f67ab6df2fa040899e649dea012bb420#f67ab6df2fa040899e649dea012bb420</link>
		<pubDate>Tue, 18 Oct 2005 15:25:33 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f67ab6df2fa040899e649dea012bb420#f67ab6df2fa040899e649dea012bb420</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi Guys,<br /><br />I'm new to iTextSharp (and general PDF devel).<br />Can&nbsp;anyboy give me some &quot;startup&quot; how to digital sign a PDF document?<br />As far as I know signed PDFs there are two kinds of.<br />One is simply signed - and the other one is a &quot;Certified Document&quot;.<br /><br />In Acrobat I get asked (when I am the first signer) if I want to certify the document.<br /><br />And&nbsp;furtheron &nbsp;- there tow kinds of signing - one is with a visible signature - and one is without it.<br /><br />My primary goal is to<br />a.) open an existing PDF<br />b.) select a certificate from the users CertStore (CryptoAPI)<br />c.) create a &quot;Certified document&quot; with the&nbsp;selected key<br />d.) place a visula representation of it on the last page of the document.<br /><br />Regards<br /><br />Manfred</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d7b4d773f7574b7381b49dea012bb466#d7b4d773f7574b7381b49dea012bb466</link>
		<pubDate>Wed, 19 Oct 2005 17:31:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d7b4d773f7574b7381b49dea012bb466#d7b4d773f7574b7381b49dea012bb466</guid>
		<dc:creator>ManniAT</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/ManniAT/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>While this is java code, it should be easily ported to C#.<br /><br /><a href="http://itextpdf.sourceforge.net/howtosign.html">http://itextpdf.sourceforge.net/howtosign.html</a><br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1e2e95dbc2df4a9e8e869dea012bb490#1e2e95dbc2df4a9e8e869dea012bb490</link>
		<pubDate>Wed, 19 Oct 2005 17:42:29 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1e2e95dbc2df4a9e8e869dea012bb490#1e2e95dbc2df4a9e8e869dea012bb490</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi,</p>
<p>thanks for that hint - I will give it a try!</p>
<p>By the way I did not find this site till now - I always was on lowagie.com <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-7.gif' alt='Perplexed' /><br /><br />Thanks again<br /><br />Manfred</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b5445f7729da48919caa9dea012bb4ba#b5445f7729da48919caa9dea012bb4ba</link>
		<pubDate>Thu, 20 Oct 2005 14:28:14 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b5445f7729da48919caa9dea012bb4ba#b5445f7729da48919caa9dea012bb4ba</guid>
		<dc:creator>ManniAT</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/ManniAT/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>you can get more information about iTextsharp tutorial(both C# version and VB.NET version ) from
<a href="http://hardrock.cnblogs.com">http://hardrock.cnblogs.com</a></p>
<p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7a52f72971f040078e299dea012bb4fc#7a52f72971f040078e299dea012bb4fc</link>
		<pubDate>Wed, 15 Feb 2006 02:48:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7a52f72971f040078e299dea012bb4fc#7a52f72971f040078e299dea012bb4fc</guid>
		<dc:creator>rocsky</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/rocsky/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>rocsky wrote:</div>
<div>
<p>you can get more information about iTextsharp tutorial(both C# version and VB.NET version ) from
<a href="http://hardrock.cnblogs.com" target="_blank">http://hardrock.cnblogs.com</a></p>
</div>
</blockquote>
<br /><br />Yeah - as long as you can understand this:<br /><br />下类文件，为类构造函数增加了一个参数以便用户可以方便的在使用的时候设置配置文件路径，这样就可以把这个类包放置在任何可以被访问到的目录下，否则原来的版本下引用class.Chinese.php的文件必须和class在相同的目录下面才行。<br /><br /><img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-7.gif' alt='Perplexed' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/bd1459523dde4e1387f69dea012bb525#bd1459523dde4e1387f69dea012bb525</link>
		<pubDate>Wed, 22 Feb 2006 23:50:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/bd1459523dde4e1387f69dea012bb525#bd1459523dde4e1387f69dea012bb525</guid>
		<dc:creator>joachim</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/joachim/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>joachim wrote:</div>
<div>
<blockquote>
<table>
<tbody>
<tr>
<td><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td><strong>rocsky wrote:</strong><i>
<p>you can get more information about iTextsharp tutorial(both C# version and VB.NET version ) from
<a href="http://hardrock.cnblogs.com" target="_blank">http://hardrock.cnblogs.com</a></p>
</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br />Yeah - as long as you can understand this:<br /><br />下类文件，为类构造函数增加了一个参数以便用户可以方便的在使用的时候设置配置文件路径，这样就可以把这个类包放置在任何可以被访问到的目录下，否则原来的版本下引用class.Chinese.php的文件必须和class在相同的目录下面才行。<br /><br /><img src="/emoticons/emotion-7.gif" border="0"></div>
</blockquote>
<br />According to translate.dictionary.com that is (assuming simplified chinese)<br /><br /><blockquote>
<div>translation wrote:</div>
<div>下类 the document, increased a parameter for the kind of structure function in order to the user may facilitate in the use time establishment disposition document way, like this may lay aside this kind of package in any may under the table of contents which
 visits, otherwise under the original edition quotes class.Chinese.php the document to have only then to be good with class under the same table of contents.</div>
</blockquote>
<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/ca0849e58612483496ea9dea012bb551#ca0849e58612483496ea9dea012bb551</link>
		<pubDate>Fri, 24 Feb 2006 10:53:36 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/ca0849e58612483496ea9dea012bb551#ca0849e58612483496ea9dea012bb551</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi,</p>
<p>I've just starting using iTextSharp in a code behind page, but when I run it, it just shows a&nbsp;empty pdf.</p>
<p>I was wondering if anyone could see anything crazy that I have or haven't done?<br /><br />The code in my page_load event is:<br /><br /></p>
<p></p>
MemoryStream m = new MemoryStream();
<p></p>
<p>Document document = new Document(PageSize.A4.Rotate(), 10, 10, 10, 10);</p>
<p>try </p>
<p>{</p>
<p>Response.ContentType = &quot;application/pdf&quot;;</p>
<p>PdfWriter.GetInstance(document, m);</p>
<p></p>
<p>document.Open();</p>
<p></p>
<p>document.Add(new Paragraph(DateTime.Now.ToString()));</p>
<p>document.Add(new Paragraph(&quot;This is another test&quot;));</p>
<p>document.Add(new Paragraph(&quot;Yet another test&quot;));</p>
<p>} </p>
<p>catch (DocumentException ex) </p>
<p>{</p>
<p>Console.Error.WriteLine(ex.StackTrace);</p>
<p>Console.Error.WriteLine(ex.Message);</p>
<p>}</p>
<p>// step 5: Close document</p>
<p>document.Close();</p>
<p>// step 6: Write pdf bytes to outputstream</p>
<p>Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);</p>
<p>Response.OutputStream.Flush();</p>
<p>Response.OutputStream.Close();</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/5ef89862522344669c999dea012bb595#5ef89862522344669c999dea012bb595</link>
		<pubDate>Thu, 02 Mar 2006 21:56:02 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/5ef89862522344669c999dea012bb595#5ef89862522344669c999dea012bb595</guid>
		<dc:creator>Filth</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Filth/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Have you tried it without the try / catch?<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1ed8347c59954fb79b979dea012bb5be#1ed8347c59954fb79b979dea012bb5be</link>
		<pubDate>Fri, 03 Mar 2006 10:14:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1ed8347c59954fb79b979dea012bb5be#1ed8347c59954fb79b979dea012bb5be</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi All,<br /><br />I'm just getting my feet wet with ASP.NET &amp; VB.NET so please bear with me.<br /><br />I managed to get my web app to kick out PDFs of various sections of a report using 14 Crystal Reports, each of which has subreports.&nbsp; I figured I'd be able to embed each section report into one master report to have all 14 sections all bundled into one PDF.&nbsp;
 Alas, the subreports in each section don't appear in my final CR report.&nbsp; Hunting around seems to indicate that CR XI Rel 2 and previous can't handle nested subreports.<br /><br />The only other way I can think to do this is to kick out all 14 PDFs and try to concatenate them together, perhaps using iTextSharp.<br /><br />Looking at the tutorials referenced previously, I see a command-line example of doing this, but not a way that my wee brain can see to do so in VB.NET on my ASPX page once I've generated the PDFs.<br /><br />Any pointers to any examples would be most welcome.<br /><br />DW</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/30bec3a09c494c2ebc9e9dea012bb606#30bec3a09c494c2ebc9e9dea012bb606</link>
		<pubDate>Mon, 06 Mar 2006 20:43:28 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/30bec3a09c494c2ebc9e9dea012bb606#30bec3a09c494c2ebc9e9dea012bb606</guid>
		<dc:creator>kldwhite</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/kldwhite/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Dear All<br /><br />I'm using iTextSharp to create PDF file in my ASP.NET Page. I'm using True Type Font(Amazone BT) in this pdf file.<br /><br />The Problem is When I deploy this application on the server. On the server&nbsp;Its running fine but when&nbsp;I run&nbsp;this web application&nbsp;from a&nbsp; client machine it changes the font.&nbsp;<br /><br />It runs fine if i copy the font on client as well. But its a web application so we cannot&nbsp;copy the font on&nbsp;every client if&nbsp;we are using on the internet.<br /><br />So how can it&nbsp;possible PDF file should&nbsp;use the font from server not from client machine.<br /><br />please help me!<br /><br /><br />Thanks<br />Imran Ashraf<br />&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/08afe6b2ab2548f3a83f9dea012bb64a#08afe6b2ab2548f3a83f9dea012bb64a</link>
		<pubDate>Wed, 08 Mar 2006 23:17:50 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/08afe6b2ab2548f3a83f9dea012bb64a#08afe6b2ab2548f3a83f9dea012bb64a</guid>
		<dc:creator>emranashraf</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/emranashraf/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PdfWriter&nbsp;writer&nbsp;=PdfWriter.GetInstance(doc,ms);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;writer.CloseStream=false;<br /><br /><br />for&nbsp;detail&nbsp;:<br /><a href="http://hardrock.cnblogs.com/archive/2006/02/23/336397.html">http://hardrock.cnblogs.com/archive/2006/02/23/336397.html</a><br /><br /><br /><a href="http://hardrock.cnblogs.com">http://hardrock.cnblogs.com</a><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0cfe2f9d1c4d49ab8e549dea012bb674#0cfe2f9d1c4d49ab8e549dea012bb674</link>
		<pubDate>Sun, 02 Apr 2006 00:10:46 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0cfe2f9d1c4d49ab8e549dea012bb674#0cfe2f9d1c4d49ab8e549dea012bb674</guid>
		<dc:creator>rocsky</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/rocsky/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>emranashraf wrote:</div>
<div>Dear All<br /><br />I'm using iTextSharp to create PDF file in my ASP.NET Page. I'm using True Type Font(Amazone BT) in this pdf file.<br /><br />The Problem is When I deploy this application on the server. On the server&nbsp;Its running fine but when&nbsp;I run&nbsp;this web application&nbsp;from a&nbsp; client machine it changes the font.&nbsp;<br /><br />It runs fine if i copy the font on client as well. But its a web application so we cannot&nbsp;copy the font on&nbsp;every client if&nbsp;we are using on the internet.<br /><br />So how can it&nbsp;possible PDF file should&nbsp;use the font from server not from client machine.<br /><br />please help me!<br /><br /><br />Thanks<br />Imran Ashraf<br />&nbsp;</div>
</blockquote>
<br /><br />could you post your code here or to my bbs (<a href="http://www.steedsoft.com/bbs">http&#58;&#47;&#47;www.steedsoft.com&#47;bbs</a>)?<br /><br /><a href="http://hardrock.cnblogs.com/">http&#58;&#47;&#47;hardrock.cnblogs.com&#47;</a><br /><br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f12300f6b64d45fdabe99dea012bb69f#f12300f6b64d45fdabe99dea012bb69f</link>
		<pubDate>Sun, 02 Apr 2006 00:14:37 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f12300f6b64d45fdabe99dea012bb69f#f12300f6b64d45fdabe99dea012bb69f</guid>
		<dc:creator>rocsky</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/rocsky/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I've been working on this for about a day now and have been unsuccessful.&nbsp; I have a PDF form that was generated in Adobe Designer 7.&nbsp; This form submits to an asp.net page and I save the PDF form information to a database.&nbsp; When the information needs to
 be viewed/printed, I am trying to take the information out of the database and populate the same PDF form template.&nbsp; I have read through this thread and have tried what has been suggested and allI get is an empty PDF.&nbsp; It does not throw any errors for the
 C# code that is populating the PDF.&nbsp; I am using the syntax:<br /><p>PdfReader pdfSource = new PdfReader(sSource);<br />PdfStamper pdfDest = new PdfStamper(pdfSource, Response.OutputStream);<br />AcroFields aFields = pdfDest.AcroFields;<br />aFields.SetField(&quot;FieldName&quot;, &quot;Value&quot;);<br />pdfDest.Close();<br /><br />The PDF is being written to the page's Response.OutputStream. One thing that I noticed when I was saving the submitted PDF form was that I had to reference the form variables like this:<br /><br /></p>
<p>Request[&quot;form1[0].#subform[0].txtFirst[0]&quot;];</p>
<p>In this instance I would be inserting the data into the form like this:<br /><br />aFields.SetField(&quot;txtFirst&quot;, &quot;Value&quot;);<br /><br />The fact that I am not getting an exception errors tells me that I am just not referencing the form fields correctly.&nbsp; Thanks for your help.<br /><br /><br /><br /></p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b1b7fe1854f74643ba689dea012bb6e5#b1b7fe1854f74643ba689dea012bb6e5</link>
		<pubDate>Mon, 24 Jul 2006 15:54:16 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b1b7fe1854f74643ba689dea012bb6e5#b1b7fe1854f74643ba689dea012bb6e5</guid>
		<dc:creator>sigreg</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sigreg/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I seem to have resolved my problem.&nbsp; It was the way I was referring to the fields in my PDF form. I found an article that describes how to do it and the code.&nbsp; Although part of this article says that iTextSharp cannot populate PDF forms created in Adobe
 Designer, this code worked for me.&nbsp; I'm guessing that maybe when this post was made iTextSharp may not have been able to do it.&nbsp; I am using 3.1.2.0 and it populates a PDF form generated in Adobe Designer v7.&nbsp;
<br /><br />Here's the link:<br /><a href="http://www.nabble.com/Filling-PDF-Forms-tf392459.html#a1082808">http&#58;&#47;&#47;www.nabble.com&#47;Filling-PDF-Forms-tf392459.html&#35;a1082808</a><br /><br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/5141e2564dab4060b4fe9dea012bb70f#5141e2564dab4060b4fe9dea012bb70f</link>
		<pubDate>Tue, 25 Jul 2006 15:34:33 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/5141e2564dab4060b4fe9dea012bb70f#5141e2564dab4060b4fe9dea012bb70f</guid>
		<dc:creator>sigreg</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sigreg/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>1. I have a requirement where the customer wants to enter data through a PDF. So I created PDF using&nbsp;Adobe Designer 7.0&nbsp;</p>
<p>2. The PDF has a submit button, upon submit the data will be sent to my IIS web server.</p>
<p>3. I should be able to read this XML and get the meaningful data to be stored elsewhere. (this is where i'm stuck with the crazy image chunk in the XML when there is an image field with an option to user to select a file!!)</p>
<p>4. Later when the customer wants to edit, I SHOULD BE able to re-populate the data in the PDF and display them..</p>
<p>preconditions:<br />My customer has only Acrobat Reader. (I CAN NOT afford to buy license to 100s of end users)<br /><br />Any of you guys know how to do this using iTextSharp? is it possible? I tried a few of the code snippet given here, but it does not help, may be because its not yet upgraded to support 7.0.<br /><br />Any better way to approach this problem???<br /><br /><br />&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/446c87ce0de34d5995b49dea012bb753#446c87ce0de34d5995b49dea012bb753</link>
		<pubDate>Thu, 27 Jul 2006 11:57:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/446c87ce0de34d5995b49dea012bb753#446c87ce0de34d5995b49dea012bb753</guid>
		<dc:creator>sajidmhd</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sajidmhd/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>sajidmhd wrote:</div>
<div>&#65279;
<p>1. I have a requirement where the customer wants to enter data through a PDF. So I created PDF using&nbsp;Adobe Designer 7.0
<br /></p>
<p><b><i>there is much difference between Acrobat PDF form with the Designer Form.</i></b><br /></p>
<p>2. The PDF has a submit button, upon submit the data will be sent to my IIS web server.</p>
<p><b><i>no problem.</i></b><br /></p>
<p>3. I should be able to read this XML and get the meaningful data to be stored elsewhere. (this is where i'm stuck with the crazy image chunk in the XML when there is an image field with an option to user to select a file!!)</p>
<p><i><b>no matter xml or fdf, PDF form both supports.</b></i><br /></p>
<p>4. Later when the customer wants to edit, I SHOULD BE able to re-populate the data in the PDF and display them..</p>
<p><i><b>Also ok.</b></i><br /></p>
<p>preconditions:<br />My customer has only Acrobat Reader. (I CAN NOT afford to buy license to 100s of end users)<br /><br />Any of you guys know how to do this using iTextSharp? is it possible? I tried a few of the code snippet given here, but it does not help, may be because its not yet upgraded to support 7.0.<br /><br />Any better way to approach this problem???<br /></p>
<p><i><b>iTextSharp support it, any way, seems you do not need itextsharp from your requirement.</b></i></p>
<p><i><b>btw, not iTextsharp does not version 1.6 PDF form, it does not support adobe designer Form.</b></i></p>
<p><i><b>if you want iTextSharp also support adobe designer form, you need do some extra job.
<br /></b></i></p>
<p><i><b>have a look </b></i><br /></p>
<p><a id="viewpost1_TitleUrl" href="http://hardrock.cnblogs.com/archive/2006/07/21/456528.html">Demo: Fill and Save PDF Form online(also can add more function,such as email and save data to database ),Adobe Reader is enough</a> .</p>
<p><i><b>Good luck!</b></i><br /></p>
</div>
</blockquote></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4e2f2251ec134a8fb5b59dea012bb782#4e2f2251ec134a8fb5b59dea012bb782</link>
		<pubDate>Fri, 28 Jul 2006 09:34:29 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4e2f2251ec134a8fb5b59dea012bb782#4e2f2251ec134a8fb5b59dea012bb782</guid>
		<dc:creator>rocsky</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/rocsky/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>sigreg wrote:</div>
<div>&#65279;I seem to have resolved my problem.&nbsp; It was the way I was referring to the fields in my PDF form. I found an article that describes how to do it and the code.&nbsp; Although part of this article says that iTextSharp cannot populate PDF forms created in Adobe
 Designer, this code worked for me.&nbsp; I'm guessing that maybe when this post was made iTextSharp may not have been able to do it.&nbsp; I am using 3.1.2.0 and it populates a PDF form generated in Adobe Designer v7.&nbsp;
<br /><br />Here's the link:<br /><a href="http://www.nabble.com/Filling-PDF-Forms-tf392459.html#a1082808">http&#58;&#47;&#47;www.nabble.com&#47;Filling-PDF-Forms-tf392459.html&#35;a1082808</a><br /><br /><br /></div>
</blockquote>
<br />sound it is good news.<br /><br />get more iTextsharp example:<br /><a href="http://hardrock.cnblogs.com">http&#58;&#47;&#47;hardrock.cnblogs.com</a><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/52eb3ca0235c49b5af549dea012bb7ac#52eb3ca0235c49b5af549dea012bb7ac</link>
		<pubDate>Fri, 28 Jul 2006 09:36:48 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/52eb3ca0235c49b5af549dea012bb7ac#52eb3ca0235c49b5af549dea012bb7ac</guid>
		<dc:creator>rocsky</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/rocsky/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hey&nbsp; guys,</p>
<p>I have&nbsp;a PDF file generated from my webform using ABCPdf but since it can't handle the TH tag I can't show my datagrid header on each consecutive pages (it's a very long one) - so I started to shop around for alternatives and would like to know if iTextSharp
 supports this tag and how can I print my webforms html into a PDF file?</p>
<p>TIA!<br />Juba<br /><img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/63660ce49a96426b92c49dea012bb7ee#63660ce49a96426b92c49dea012bb7ee</link>
		<pubDate>Tue, 08 Aug 2006 14:19:55 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/63660ce49a96426b92c49dea012bb7ee#63660ce49a96426b92c49dea012bb7ee</guid>
		<dc:creator>Gilberto Beltrao</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Juba/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hello,<br /><br />I have 1 question ...<br /><br />In Itextsharp you can prompt the Printerfunction from the pdf file.<br /><br />But is it possible to change the printer settings of the pdf printfunction:<br /><br />- I need to have 2 pages on 1 paper.<br /><br />In the examples of Itextsharp is this the code to prompt the print settings.<br /><br /><p><em>PdfAction</em><em> jAction = PdfAction.JavaScript(&quot;this.print(true);\r&quot;</em><em>, writer);</em></p>
<p><em>writer.AddJavaScript(jAction);<br /><br /><br /></em>You see, it is some Javascript to add the action.<br /><br />Can somebody help me out ?<br /><br />thanx</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/5ace5f0496cd4364af9f9dea012bb832#5ace5f0496cd4364af9f9dea012bb832</link>
		<pubDate>Thu, 10 Aug 2006 12:37:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/5ace5f0496cd4364af9f9dea012bb832#5ace5f0496cd4364af9f9dea012bb832</guid>
		<dc:creator>Le Moustique</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Le Moustique/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>This is a reply to the posting by &quot;Filth&quot; about empty PDF - &quot;rocksky&quot; has more or less the same solution.<br /><br />The trick is here:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stamp.FormFlattening = true;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// very important to keep the MemoryStream intact<br /><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stamp.Writer.CloseStream = false;</div>
<br />&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stamp.Close();<br /><br />It took me a&nbsp;good deal of head-scratching&nbsp;to find the solution a while back, and I've posted a blog-posting about&nbsp;it on my (infrequently updated)&nbsp; blog:
<br /><br /><a href="http://www.hejndorf.dk/persistent/?p=11">http://www.hejndorf.dk/persistent/?p=11</a><br /><br /><br />Regards<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/8b45ab8f09844b7caded9dea012bb877#8b45ab8f09844b7caded9dea012bb877</link>
		<pubDate>Fri, 11 Aug 2006 07:45:12 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/8b45ab8f09844b7caded9dea012bb877#8b45ab8f09844b7caded9dea012bb877</guid>
		<dc:creator>phejndorf</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/phejndorf/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><p dir="ltr">I created a PDF in Adobe Designer 7.0 with the usual text fields. <br /><br />I also added three RadioButtonList controls. <br /><br />Populating the PDF's text fields was trivial, but selecting a PDF radio button was not.<br /><br />I checked the&nbsp;iText (Java) documentation and found instructions.&nbsp;<br /><br />Here's how in C#:&nbsp;<br /><br />/* myRadioButton1 is what I named the Radio Button control in Adobe Designer. The &quot;1&quot;, &quot;2&quot; etc. are the value automatically assigned by Adobe Designer. */<br /><br /><em><strong>fields.SetListOption(</strong></em><em><strong>&quot;myRadioButton1&quot;, new String[] { &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot; }, null</strong></em><em><strong>);<br /><br /></strong></em>/* this selects the second radio button. */<br /><br /><em><strong>fields.SetField(</strong></em><em><strong>&quot;myRadioButton1&quot;, &quot;2&quot;</strong></em><em><strong>);</strong></em><br /><br />I hope this helps someone else.<br /><br />tags: RadioButtonList Radio RadioButton SetListOption input type=&quot;radio&quot;<br /></p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/29fb7f09a7f44e69a61c9dea012bb8bc#29fb7f09a7f44e69a61c9dea012bb8bc</link>
		<pubDate>Wed, 22 Nov 2006 23:33:43 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/29fb7f09a7f44e69a61c9dea012bb8bc#29fb7f09a7f44e69a61c9dea012bb8bc</guid>
		<dc:creator>fooey</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/fooey/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote>
<div>joachim wrote:</div>
<div>
<blockquote>
<table>
<tbody>
<tr>
<td><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td><strong>rocsky wrote:</strong><i>
<p>you can get more information about iTextsharp tutorial(both C# version and VB.NET version ) from
<a href="http://hardrock.cnblogs.com" target="_blank">http://hardrock.cnblogs.com</a></p>
</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br />Yeah - as long as you can understand this:<br /><br />下类文件，为类构造函数增加了一个参数以便用户可以方便的在使用的时候设置配置文件路径，这样就可以把这个类包放置在任何可以被访问到的目录下，否则原来的版本下引用class.Chinese.php的文件必须和class在相同的目录下面才行。<br /><br /><img src="/emoticons/emotion-7.gif" border="0"></div>
</blockquote>
<br />I think I might do it better:<br /><br />&quot;Subclass document&quot;(this is not sure) is class constructer that have additional parameter that allow users to convienently changing the defined document path. So you can put this class package in any directory you have access to. Otherwise to use the class
 in the origional version, files of Chinese.php must be placed in the same directory of the class.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4dbfae90eab84fe487ca9dea012bb8e7#4dbfae90eab84fe487ca9dea012bb8e7</link>
		<pubDate>Thu, 23 Nov 2006 07:26:45 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4dbfae90eab84fe487ca9dea012bb8e7#4dbfae90eab84fe487ca9dea012bb8e7</guid>
		<dc:creator>cheong</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cheong/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi,<br />I have a newbie question on ITextSharp.</p>
<p>I have an input pdf file that I have to stamp with values from an XML document. Is it possible to do this with ITextSharp.
</p>
<p>I tried examples successfully where I could create PDF files from XML using XMLParser and I could stamp data into PDF files using PDFStamper.
</p>
<p>What I'm looking for is to stamp values into PDF files from a XML file, without having to parse out the XML input using custom code. Is that possible using ITextsharp?</p>
<p>Thanks, <br />Reshmi</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/63fad2a6c89640bd80ea9dea012bb92a#63fad2a6c89640bd80ea9dea012bb92a</link>
		<pubDate>Tue, 12 Dec 2006 06:33:27 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/63fad2a6c89640bd80ea9dea012bb92a#63fad2a6c89640bd80ea9dea012bb92a</guid>
		<dc:creator>reshminair</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/reshminair/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I'm very glad to get across this forum. I have a question. Is it possible to add an image to a header using iTextSharp?<br /><br />Somebody pls, say yes and how <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /><br /><br />Thanks<br />Shyam</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/beafe6d4c29849888c479dea012bb96d#beafe6d4c29849888c479dea012bb96d</link>
		<pubDate>Sat, 06 Jan 2007 19:25:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/beafe6d4c29849888c479dea012bb96d#beafe6d4c29849888c479dea012bb96d</guid>
		<dc:creator>shyamvchari</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/shyamvchari/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I figured it out myself few hrs. later. All i had to was, load an image into a chunk and then load the chunk into&nbsp;a phrase for header. Below is the code&nbsp;snippet.<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;IText.Image image = IText.Image.GetInstance(@&quot;C:\ImageLib\Header.jpg&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;image.ScalePercent(50.0F);<br />&nbsp;&nbsp;&nbsp;&nbsp;IText.Chunk ck = new Chunk(image, 0F, 0F);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;HeaderFooter header = new HeaderFooter(new Phrase(ck), false);<br /><br />Thanks for all the minds that thought abt. a solution to my question.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/e549bb0cb0dc41e9b7329dea012bb997#e549bb0cb0dc41e9b7329dea012bb997</link>
		<pubDate>Sat, 06 Jan 2007 23:26:13 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/e549bb0cb0dc41e9b7329dea012bb997#e549bb0cb0dc41e9b7329dea012bb997</guid>
		<dc:creator>shyamvchari</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/shyamvchari/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi,<br /><br />Im newly joined. Working on asp.net application. Have a requirement, there is an existing pdf file which i have to fill data to that pdf from database. How to read the pdf and identify the fields from the pdf. Can you plz. help me on this.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/ed50c691fb314d4fafa29dea012bb9d8#ed50c691fb314d4fafa29dea012bb9d8</link>
		<pubDate>Mon, 05 Mar 2007 11:18:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/ed50c691fb314d4fafa29dea012bb9d8#ed50c691fb314d4fafa29dea012bb9d8</guid>
		<dc:creator>factorh</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/factorh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi friends,<br /><br />I have a very special requirement with Itextsharp. Actually, I have Infopath form template(.xsn). When I fill it out and save , it is stored as &gt;xml files. I need to convert this to .pdf files. I think , ItextSharp can help me.
<br /><br /><br />I got a code from <a href="http://www.ujihara.jp/iTextdotNET/en/examples.html">http://www.ujihara.jp/iTextdotNET/en/examples.html</a>&nbsp; as shown here.When I run this , it creates pdf but no contents. I think step 3 has some problem. To convert XML, should I
 use XSL. Cna anybody help me in this....?<br /><pre>public class Chap0704 </pre>
<pre>{<br>&nbsp; public static void Main(String[] args) </pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; {</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // step 1: creation of a document-object</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Document documentA = new Document(PageSize.A4, 80, 50, 30, 65);</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // step 1: creation of a document-object</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Document documentB = new Document(PageSize.A4, 80, 50, 30, 65);</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // step 2:</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // we create a writer that listens to the document</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // and directs a XML-stream to a file</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfWriter.getInstance(documentA, new FileStream(&quot;Chap0704a.pdf&quot;, FileMode.Create));</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfWriter.getInstance(documentB, new FileStream(&quot;Chap0704b.pdf&quot;, FileMode.Create));</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // step 3: we parse the document</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlParser.parse(documentA, &quot;Chap0701.xml&quot;);</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     &nbsp; XmlParser.parse(documentB, &quot;playRomeoJuliet.xml&quot;, &quot;tagmapRomeoJuliet.xml&quot;);</pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</pre>
<div>
<pre>}</pre>
</div>
<br />Thanks in advance....</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/8538f7f15cfb412eb3f89dea012bba25#8538f7f15cfb412eb3f89dea012bba25</link>
		<pubDate>Tue, 06 Mar 2007 12:46:54 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/8538f7f15cfb412eb3f89dea012bba25#8538f7f15cfb412eb3f89dea012bba25</guid>
		<dc:creator>jaleelak</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/jaleelak/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Here is a .NET library that although is not free, it's not very expensive: <a href="http://www.html-to-pdf.net">
ExpertPDF Html To Pdf Converter</a>.<br /><br />Goodl uck</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0e2f6f6197d3455586169dea012bba66#0e2f6f6197d3455586169dea012bba66</link>
		<pubDate>Mon, 28 May 2007 10:36:08 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0e2f6f6197d3455586169dea012bba66#0e2f6f6197d3455586169dea012bba66</guid>
		<dc:creator>flo2007</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/flo2007/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi Jaleelak<br /><br />I have used an XSL file to transform&nbsp;an infopath xml into the required format for itextsharp to generate a PDF.&nbsp; I have found that it works well for what I am doing.<br /><br />This code is not all mine as I copied it from one of the tutorials around the place.<br /><br />dim pdfFileName as string = &quot;c:\temp\test.pdf&quot;<br />dim tmpTransformFile as string</p>
<p>Private Sub PDFForm()<br />&nbsp;Console.WriteLine(&quot;Create PDF&quot;)<br />&nbsp;tmpTransformFile = IO.Path.Combine(IO.Path.GetTempPath, IO.Path.GetTempFileName)</p>
<p>&nbsp;InfopathToIText(tmpTransformFile)<br />&nbsp;createPDF(tmpTransformFile)</p>
<p>&nbsp;Console.WriteLine(&quot;Finished PDF&quot;)<br />End Sub</p>
<p>Public Sub InfopathToIText(ByVal strFilename As String)<br />&nbsp;Dim writer As XmlTextWriter<br />&nbsp;Dim doc As XmlDocument<br />&nbsp;Try<br />&nbsp;&nbsp;doc = New XmlDocument<br />&nbsp;&nbsp;doc.LoadXml(thisXDocument.DOM.xml)</p>
<p>&nbsp;&nbsp;' Modify the XML file.<br />&nbsp;&nbsp;Dim root As XmlElement = doc.DocumentElement</p>
<p>&nbsp;&nbsp;' Create an XPathNavigator to use for the transform.<br />&nbsp;&nbsp;Dim nav As XPath.XPathNavigator = root.CreateNavigator()</p>
<p>&nbsp;&nbsp;' Transform the file.<br />&nbsp;&nbsp;Dim xslt As Xsl.XslTransform = New Xsl.XslTransform</p>
<p>&nbsp;&nbsp;xslt.Load(config.GetValue(&quot;xslt-file&quot;))<br />&nbsp;&nbsp;writer = New XmlTextWriter(strFilename, Nothing)<br />&nbsp;&nbsp;xslt.Transform(nav, Nothing, writer, Nothing)</p>
<p>&nbsp;Catch ex As Exception<br />&nbsp;&nbsp;Throw ex<br />&nbsp;Finally<br />&nbsp;&nbsp;Try<br />&nbsp;&nbsp;&nbsp;If writer.WriteState &lt;&gt; WriteState.Closed Then writer.Close()<br />&nbsp;&nbsp;Catch<br />&nbsp;&nbsp;&nbsp;'ignore exception<br />&nbsp;&nbsp;End Try<br />&nbsp;End Try<br />End Sub</p>
<p>Public Sub createPDF(ByVal strFilename As String)</p>
<p>&nbsp;' step 1: creation of a document-object<br />&nbsp;Dim _document As Document = New Document(PageSize.A4, 14, 14, 14, 14)<br />&nbsp;Dim fs As FileStream<br />&nbsp;Try</p>
<p>&nbsp;&nbsp;' step 2:<br />&nbsp;&nbsp;' we create a writer that listens to the document<br />&nbsp;&nbsp;' and directs a XML-stream to a file<br />&nbsp;&nbsp;Dim ndInvoiceNo As DOMNode = thisXDocument.DOM.selectSingleNode(&quot;/my:myFields/my:invoiceNo&quot;)<br />&nbsp;&nbsp;fs = New FileStream(pdfFileName, FileMode.Create)<br />&nbsp;&nbsp;PdfWriter.GetInstance(_document, fs)</p>
<p>&nbsp;&nbsp;' step 3: we create a parser<br />&nbsp;&nbsp;Dim h As iTextSharp.text.xml.ITextHandler = New iTextSharp.text.xml.ITextHandler(_document)</p>
<p>&nbsp;&nbsp;' step 4: we parse the document<br />&nbsp;&nbsp;h.Parse(strFilename)</p>
<p>&nbsp;Catch bee As iTextSharp.text.BadElementException<br />&nbsp;&nbsp;Console.WriteLine(bee.Message)<br />&nbsp;&nbsp;Console.WriteLine(bee.StackTrace)</p>
<p>&nbsp;&nbsp;Throw New ApplicationException(&quot;There is a problem creating the PDF&quot;, bee)<br />&nbsp;Catch e As Exception<br />&nbsp;&nbsp;Console.WriteLine(e.Message)<br />&nbsp;&nbsp;Console.WriteLine(e.StackTrace)</p>
<p>&nbsp;&nbsp;Throw New ApplicationException(&quot;There is a problem creating the PDF&quot;, e)<br />&nbsp;Finally<br />&nbsp;&nbsp;Try<br />&nbsp;&nbsp;&nbsp;_document.Close()<br />&nbsp;&nbsp;&nbsp;_document = Nothing<br />&nbsp;&nbsp;&nbsp;fs.Close()<br />&nbsp;&nbsp;Catch<br />&nbsp;&nbsp;&nbsp;'ignore exception<br />&nbsp;&nbsp;End Try<br />&nbsp;End Try<br />End Sub<br /><br /><br />Hope this helps<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/3ea0392c47bd4e6492449dea012bbab2#3ea0392c47bd4e6492449dea012bbab2</link>
		<pubDate>Fri, 13 Jul 2007 05:17:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/3ea0392c47bd4e6492449dea012bbab2#3ea0392c47bd4e6492449dea012bbab2</guid>
		<dc:creator>Fishern74</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Fishern74/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Filth said:</div><div class="quoteText">
<p>Hi,</p>
<p>I've just starting using iTextSharp in a code behind page, but when I run it, it just shows a&nbsp;empty pdf.</p>
<p>I was wondering if anyone could see anything crazy that I have or haven't done?<br /><br />The code in my page_load event is:<br /><br /></p>
<p></p>
MemoryStream m = new MemoryStream();
<p></p>
<p>Document document = new Document(PageSize.A4.Rotate(), 10, 10, 10, 10);</p>
<p>try </p>
<p>{</p>
<p>Response.ContentType = &quot;application/pdf&quot;;</p>
<p>PdfWriter.GetInstance(document, m);</p>
<p></p>
<p>document.Open();</p>
<p></p>
<p>document.Add(new Paragraph(DateTime.Now.ToString()));</p>
<p>document.Add(new Paragraph(&quot;This is another test&quot;));</p>
<p>document.Add(new Paragraph(&quot;Yet another test&quot;));</p>
<p>} </p>
<p>catch (DocumentException ex) </p>
<p>{</p>
<p>Console.Error.WriteLine(ex.StackTrace);</p>
<p>Console.Error.WriteLine(ex.Message);</p>
<p>}</p>
<p>// step 5: Close document</p>
<p>document.Close();</p>
<p>// step 6: Write pdf bytes to outputstream</p>
<p>Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);</p>
<p>Response.OutputStream.Flush();</p>
<p>Response.OutputStream.Close();</p>
</div></blockquote>You are trying to use iTextSharp in a web application so you can use ASP.NET's response stream directly to write the PDF.&nbsp; Your code would look something like:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Response.ContentType = &quot;application/pdf&quot;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Document doc = new Document();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfWriter writer = PdfWriter.GetInstance( doc, this.Response.OutputStream );<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Open();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Add( new Paragraph( DateTime.Now.ToString() ) );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Add( new Paragraph( &quot;This is a test&quot; ) );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; finally<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writer.Close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/74fbe3e7b2ae4bdba3d59dea012bbafc#74fbe3e7b2ae4bdba3d59dea012bbafc</link>
		<pubDate>Mon, 20 Oct 2008 22:43:53 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/74fbe3e7b2ae4bdba3d59dea012bbafc#74fbe3e7b2ae4bdba3d59dea012bbafc</guid>
		<dc:creator>JBanta</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JBanta/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">sbc said:</div><div class="quoteText">I looked at XML, but it seems as though it does not have the required tags for creating forms. Plus it is probably far easier to do the document in Word, then convert to PDF and add the form fields using Acrobat.<br /><br />It looks like the steps I have to take are:<br /><br />- Use PdfReader to get the original PDF.<br /><br />- Use PdfStamper to edit the form fields, save into a MemoryStream.<br /><br />- Populate a PdfWriter document from the PdfStamper (which actually contains PdfStamper.Writer, but I dont think you can access the document part of it). Save into MemoryStream which is then sent to the user.<br /><br />Don't know why you have to go through all those stages just to modify a file (only need the first two if you don't need to change the title). The last stage seems as though it would be inefficient.<br /><br />Although PdfStamper does have a SetMoreInfo method that may be able to change the meta information (at least in iText, not checked if iTextSharp has this).<br /><br />Pity there are no iTextSharp forums to ask on.<br /></div></blockquote>
<p>Can you tell me how to write pdf contents to word doc.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/846e2d7e9cd24ef899a29dea012bbb41#846e2d7e9cd24ef899a29dea012bbb41</link>
		<pubDate>Thu, 23 Oct 2008 03:22:35 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/846e2d7e9cd24ef899a29dea012bbb41#846e2d7e9cd24ef899a29dea012bbb41</guid>
		<dc:creator>chint</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/chint/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">JBanta said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">Filth said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
You are trying to use iTextSharp in a web application so you can use ASP.NET's response stream directly to write the PDF.&nbsp; Your code would look something like:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Response.ContentType = &quot;application/pdf&quot;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Document doc = new Document();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfWriter writer = PdfWriter.GetInstance( doc, this.Response.OutputStream );<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Open();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Add( new Paragraph( DateTime.Now.ToString() ) );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Add( new Paragraph( &quot;This is a test&quot; ) );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; finally<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writer.Close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /></div></blockquote><i><b>You</b></i> are resurrecting a thread over a yr old.<br /><br />Chances are the problem has been solved by now...<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d3a53498e58346d4ada29dea012bbb88#d3a53498e58346d4ada29dea012bbb88</link>
		<pubDate>Thu, 23 Oct 2008 06:41:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d3a53498e58346d4ada29dea012bbb88#d3a53498e58346d4ada29dea012bbb88</guid>
		<dc:creator>John</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/jh71283/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">joachim said:</div><div class="quoteText">OK, let's say I have a PDF document called &quot;Form.pdf&quot; with 4 form fields. The form fileds are &quot;name&quot;, &quot;address&quot;, &quot;postal_code&quot; and &quot;email&quot;.<br /><br />Here's the code to create a new PDF file using &quot;Form.pdf&quot; as a template:<br /><br />private void fillForm()<br />{<br />&nbsp;&nbsp;&nbsp; string formFile = @&quot;N:\.NET\Form.pdf&quot;;<br />&nbsp;&nbsp;&nbsp; string newFile = @&quot;N:\.NET\Filled-out Form.pdf&quot;;<br />&nbsp;&nbsp;&nbsp; PdfReader reader = new PdfReader(formFile);<br />&nbsp;&nbsp;&nbsp; PdfStamper stamper = new PdfStamper(reader, new FileStream(<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; newFile, FileMode.Create));<br />&nbsp;&nbsp;&nbsp; AcroFields fields = stamper.AcroFields;<br /><br />&nbsp;&nbsp;&nbsp; // set form fields<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;name&quot;, &quot;John Doe&quot;);<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;address&quot;, &quot;2 Milky Way, London&quot;);<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;postal_code&quot;, &quot;XX1 4YY&quot;);<br />&nbsp;&nbsp;&nbsp; fields.SetField(&quot;email&quot;, &quot;johndoe@hotmail.com&quot;);<br /><br />&nbsp;&nbsp;&nbsp; // flatten form fields and close document<br />&nbsp;&nbsp;&nbsp; stamper.FormFlattening = true;<br />&nbsp;&nbsp;&nbsp; stamper.Close();<br />} <br /><br />Acrobat 5 should be enough to create a PDF form. Let me know if you're having any troubles.<br /><br /></div></blockquote>Hi ,&nbsp;<br />i want to insert an image into PDF dynamically.<br />I have a XML as input&nbsp; and used dtd for formatting it which and iam using XMLparser to parse the xml with hash table.<br />similar to this link has&nbsp;<a href="http://www.ridgway.co.za/archive/2005/07/31/itextsharpxmltopdfexample.aspx">http://www.ridgway.co.za/archive/2005/07/31/itextsharpxmltopdfexample.aspx</a><br /><br /><strong>Here is the code i had</strong> <br /><br />Document document = new Document();<br />MemoryStream m = new MemoryStream();<br />System.Collections.Hashtable tagmap = new Hashtable();<br /><br />XmlPeer peer = new XmlPeer(ElementTags.CHUNK, &quot;EmployeeName&quot;);<br />peer.Content = &quot;CandidateFirstName &quot;;<br />tagmap.Add(peer.Alias, peer);
<p>XmlParser.Parse(document, HttpContext.Current.Server.MapPath(&quot;~/sample.xml&quot;), tagmap);</p>
<p>Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);<br />Response.OutputStream.Flush();<br />Response.OutputStream.Close();</p>
<p><strong>The above program is working perfectly and all i need is&nbsp; HOW to display images dynamically on the streamed PDF file.<br />Can you help me with this??<br /></strong><br />Thanks<br /><br />Prashanth K<br /></p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/77de482ccc5a4c5f8e7a9dea012bbbd1#77de482ccc5a4c5f8e7a9dea012bbbd1</link>
		<pubDate>Tue, 06 Jan 2009 20:14:20 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/77de482ccc5a4c5f8e7a9dea012bbbd1#77de482ccc5a4c5f8e7a9dea012bbbd1</guid>
		<dc:creator>Prashanth</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Prashanth/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi<br /><br />Can anyone tell me how and with what software I can create a template PDF file with form fields?<br />Acrobat reader no longer allows you to do it and I cant get my hands on the older versions.<br />Is there a freeware app out there that can help me do this?<br /><br />I'm creating the invoicing portion of an internal site for my company and I need a template invoice which I can just populate with client details and the work to be billed.<br /><br />Thanks,<br />Neil<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/668daf0de89d4b98b8f19dea012bbc14#668daf0de89d4b98b8f19dea012bbc14</link>
		<pubDate>Mon, 16 Mar 2009 13:49:13 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/668daf0de89d4b98b8f19dea012bbc14#668daf0de89d4b98b8f19dea012bbc14</guid>
		<dc:creator>Neil</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/MrSwifty1/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Filth said:</div><div class="quoteText">
<p>Hi,</p>
<p>I've just starting using iTextSharp in a code behind page, but when I run it, it just shows a&nbsp;empty pdf.</p>
<p>I was wondering if anyone could see anything crazy that I have or haven't done?<br /><br />The code in my page_load event is:<br /><br /></p>
<p></p>
MemoryStream m = new MemoryStream();
<p></p>
<p>Document document = new Document(PageSize.A4.Rotate(), 10, 10, 10, 10);</p>
<p>try </p>
<p>{</p>
<p>Response.ContentType = &quot;application/pdf&quot;;</p>
<p>PdfWriter.GetInstance(document, m);</p>
<p></p>
<p>document.Open();</p>
<p></p>
<p>document.Add(new Paragraph(DateTime.Now.ToString()));</p>
<p>document.Add(new Paragraph(&quot;This is another test&quot;));</p>
<p>document.Add(new Paragraph(&quot;Yet another test&quot;));</p>
<p>} </p>
<p>catch (DocumentException ex) </p>
<p>{</p>
<p>Console.Error.WriteLine(ex.StackTrace);</p>
<p>Console.Error.WriteLine(ex.Message);</p>
<p>}</p>
<p>// step 5: Close document</p>
<p>document.Close();</p>
<p>// step 6: Write pdf bytes to outputstream</p>
<p>Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);</p>
<p>Response.OutputStream.Flush();</p>
<p>Response.OutputStream.Close();</p>
</div></blockquote>
<p>hi,everyone<br />I&nbsp;want draw Bezier Lines for PDF with iTextsharp.<br /><br />But i did not konw how to do it.<br /><br />whether some friends konw that, pls tell me.<br /><br />my email: <br />&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:dlonghow@163.com">dlonghow@163.com</a><br /><br />or msn:<br />&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:dlonghow@hotmail.com">dlonghow@hotmail.com</a><br /><br /><br />Thank you everyone.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/6da09b8cd1544c7cbbef9dea012bbc5a#6da09b8cd1544c7cbbef9dea012bbc5a</link>
		<pubDate>Mon, 20 Apr 2009 09:36:51 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/6da09b8cd1544c7cbbef9dea012bbc5a#6da09b8cd1544c7cbbef9dea012bbc5a</guid>
		<dc:creator>Jack Dong</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Jack Dong .NET/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">sbc said:</div><div class="quoteText">This should work:<br /><br />C#<br /><pre class="brush: text">// this is used to store the PDF in memory
MemoryStream m = new MemoryStream();
// which document to open
string file = Server.MapPath(&quot;form.pdf&quot;);
PdfReader reader = new PdfReader(file);
// then create a PdfStamper from the created reader to modify the form fields
PdfStamper outStamper = new PdfStamper(reader, m);
string name = outStamper.AcroFields.GetField(&quot;name&quot;);</pre>
<br />VB.NET<br /><pre class="brush: vb">' this is used to store the PDF in memory
Dim m As MemoryStream = New MemoryStream()
' which document to open
Dim file As String = Server.MapPath(&quot;form.pdf&quot;)
Dim reader As PdfReader = New PdfReader(file)
' then create a PdfStamper from the created reader to modify the form fields
Dim outStamper As PdfStamper = New PdfStamper(reader, m)
Dim name As String = outStamper.AcroFields.GetField(&quot;name&quot;)</pre>
<br /></div></blockquote>
<p>Spanish</p>
<p>&nbsp;</p>
<p>Amigo Muchas Gracias el Código me sirvió para leer unos campos de un archivo pdf que tengo, necesitaba extraer los valores de esos campos para carcularlos y luego ingresarlos en otro archivo pdf, de verdad Muchas Gracias, le hice las siguientes modinicaciones.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<font size="2" color="#0000ff">
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>&nbsp;</p>
<p>Public </p>
<p><font size="2" color="#0000ff">Private</font><font size="2"> </font><font size="2" color="#0000ff">Sub</font><font size="2"> Button1_Click(</font><font size="2" color="#0000ff">ByVal</font><font size="2"> sender
</font><font size="2" color="#0000ff">As</font><font size="2"> System.Object, </font>
<font size="2" color="#0000ff">ByVal</font><font size="2"> e </font><font size="2" color="#0000ff">As</font><font size="2"> System.EventArgs)
</font><font size="2" color="#0000ff">Handles</font><font size="2"> Button1.Click</font><font size="2" color="#0000ff">Dim</font><font size="2"> m
</font><font size="2" color="#0000ff">As</font><font size="2"> MemoryStream = </font>
<font size="2" color="#0000ff">New</font><font size="2"> MemoryStream()</font><font size="2" color="#008000">'
</font></p>
<p><font size="2" color="#008000">which document to open</font><font size="2"> </font>
<font size="2" color="#0000ff">Dim</font><font size="2"> file </font><font size="2" color="#0000ff">As</font><font size="2">
</font><font size="2" color="#0000ff">String</font><font size="2"> = (</font><font size="2" color="#800000">&quot;c:\prueba.pdf&quot;</font><font size="2">)</font></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><font size="2" color="#0000ff">Dim</font><font size="2"> reader </font><font size="2" color="#0000ff">As</font><font size="2"> PdfReader =
</font><font size="2" color="#0000ff">New</font><font size="2"> PdfReader(file)</font></p>
<p>&nbsp;</p>
<p><font size="2" color="#008000">' then create a PdfStamper from the created reader to modify the form fields</font><font size="2">
</font></p>
<p><font size="2" color="#0000ff">Dim</font><font size="2"> outStamper </font><font size="2" color="#0000ff">As</font><font size="2"> PdfStamper =
</font><font size="2" color="#0000ff">New</font><font size="2"> PdfStamper(reader, m)</font><font size="2" color="#0000ff">Dim</font><font size="2"> name1
</font><font size="2" color="#0000ff">As</font><font size="2"> </font><font size="2" color="#0000ff">String</font><font size="2"> = outStamper.AcroFields.GetField(</font><font size="2" color="#800000">&quot;Texto2&quot;</font><font size="2">)
</font><font size="2" color="#008000">'este es le nombre del campo de texto pdf</font><font size="2">
</p>
<p>TextBox1.Text = TextBox1.Text &amp; name1</p>
<p>&nbsp;</p>
<p>End</p>
</font><font size="2" color="#0000ff">End</font><font size="2"> </font><font size="2" color="#0000ff">Sub</font><font size="2">
</font><font size="2" color="#0000ff">Class</font>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></p>
<p>&nbsp;</p>
</font><font size="2">System</font><font size="2" color="#0000ff"> </font><font size="2">System.IO</font><font size="2" color="#0000ff">
</font><font size="2">iTextSharp.text</font><font size="2" color="#0000ff"> </font>
<font size="2">iTextSharp.text.pdf</font><font size="2" color="#0000ff"> </font><font size="2">System.Data</font><font size="2" color="#0000ff">
</font><font size="2">System.Text</font><font size="2" color="#0000ff"> </font><font size="2">System.Drawing</font><font size="2" color="#0000ff">
</font><font size="2">System.ComponentModel</font><font size="2" color="#0000ff">
</font><font size="2">System.Collections</font><font size="2" color="#0000ff"> </font>
<font size="2" color="#0000ff">Class</font><font size="2"> Form1</font></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/953b1898d30249499c379dea012bbca9#953b1898d30249499c379dea012bbca9</link>
		<pubDate>Thu, 24 Sep 2009 20:13:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/953b1898d30249499c379dea012bbca9#953b1898d30249499c379dea012bbca9</guid>
		<dc:creator>Jorge Rocael Castro Barreno</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/elrocael/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">ManniAT said:</div><div class="quoteText">Hi Guys,<br /><br />I'm new to iTextSharp (and general PDF devel).<br />Can&nbsp;anyboy give me some &quot;startup&quot; how to digital sign a PDF document?<br />As far as I know signed PDFs there are two kinds of.<br />One is simply signed - and the other one is a &quot;Certified Document&quot;.<br /><br />In Acrobat I get asked (when I am the first signer) if I want to certify the document.<br /><br />And&nbsp;furtheron &nbsp;- there tow kinds of signing - one is with a visible signature - and one is without it.<br /><br />My primary goal is to<br />a.) open an existing PDF<br />b.) select a certificate from the users CertStore (CryptoAPI)<br />c.) create a &quot;Certified document&quot; with the&nbsp;selected key<br />d.) place a visula representation of it on the last page of the document.<br /><br />Regards<br /><br />Manfred</div></blockquote>
<p>&nbsp;</p>
<font size="2" color="#0000ff">
<p>Spanish</p>
<p>Muchas gracias amigo, el codigo me sirvió de mucho, lo imprementé de la siguiente manera...</p>
<p>&nbsp;</p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>Imports </p>
<p>&nbsp;</p>
<p>Public </p>
<p>&nbsp;</p>
<p><font size="2" color="#0000ff">Private</font><font size="2"> </font><font size="2" color="#0000ff">Sub</font><font size="2"> Button1_Click(</font><font size="2" color="#0000ff">ByVal</font><font size="2"> sender
</font><font size="2" color="#0000ff">As</font><font size="2"> System.Object, </font>
<font size="2" color="#0000ff">ByVal</font><font size="2"> e </font><font size="2" color="#0000ff">As</font><font size="2"> System.EventArgs)
</font><font size="2" color="#0000ff">Handles</font><font size="2"> Button1.Click</font><font size="2" color="#0000ff">Dim</font><font size="2"> m
</font><font size="2" color="#0000ff">As</font><font size="2"> MemoryStream = </font>
<font size="2" color="#0000ff">New</font><font size="2"> MemoryStream()</font><font size="2" color="#008000">' which document to open</font><font size="2">
</font></p>
<p><font size="2" color="#0000ff">Dim</font><font size="2"> file </font><font size="2" color="#0000ff">As</font><font size="2">
</font><font size="2" color="#0000ff">String</font><font size="2"> = (</font><font size="2" color="#800000">&quot;c:\prueba.pdf&quot;</font><font size="2">)</font></p>
<p><font size="2" color="#0000ff">Dim</font><font size="2"> reader </font><font size="2" color="#0000ff">As</font><font size="2"> PdfReader =
</font><font size="2" color="#0000ff">New</font><font size="2"> PdfReader(file)</font><font size="2" color="#008000">'
</font></p>
<p>&nbsp;</p>
<font size="2">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>TextBox1.Text = TextBox1.Text &amp; name1</p>
<p>&nbsp;</p>
<p>End</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</font><font size="2" color="#0000ff">Dim</font><font size="2"> outStamper </font>
<font size="2" color="#0000ff">As</font><font size="2"> PdfStamper = </font><font size="2" color="#0000ff">New</font><font size="2"> PdfStamper(reader, m)</font><font size="2" color="#0000ff">Dim</font><font size="2"> name1
</font><font size="2" color="#0000ff">As</font><font size="2"> </font><font size="2" color="#0000ff">String</font><font size="2"> = outStamper.AcroFields.GetField(</font><font size="2" color="#800000">&quot;Texto2&quot;</font><font size="2">)
</font><font size="2" color="#008000">'este es le nombre del campo de texto pdf</font><font size="2">
</font><font size="2" color="#0000ff">End</font><font size="2"> </font><font size="2" color="#0000ff">Sub</font><font size="2">
</font><font size="2" color="#0000ff">Class</font>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</font><font size="2">System</font><font size="2" color="#0000ff"> </font><font size="2">System.IO</font><font size="2" color="#0000ff">
</font><font size="2">iTextSharp.text</font><font size="2" color="#0000ff"> </font>
<font size="2">iTextSharp.text.pdf</font><font size="2" color="#0000ff"> </font><font size="2">System.Data</font><font size="2" color="#0000ff">
</font><font size="2">System.Text</font><font size="2" color="#0000ff"> </font><font size="2">System.Drawing</font><font size="2" color="#0000ff">
</font><font size="2">System.ComponentModel</font><font size="2" color="#0000ff">
</font><font size="2">System.Collections</font><font size="2" color="#0000ff"> </font>
<font size="2" color="#0000ff">Class</font><font size="2"> Form1</font></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/3ee95b16b5ef47369e6b9dea012bbce0#3ee95b16b5ef47369e6b9dea012bbce0</link>
		<pubDate>Thu, 24 Sep 2009 20:18:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/3ee95b16b5ef47369e6b9dea012bbce0#3ee95b16b5ef47369e6b9dea012bbce0</guid>
		<dc:creator>Jorge Rocael Castro Barreno</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/elrocael/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Just a quick note regarding the subject &quot;free PDF generator&quot;; in December 2009 the license for iTextSharp became &quot;Affero GNU Public License&quot;, so when used with a commercial application, e.g. non-open-source, this library requires commercial licensing.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/779a26ff5b514f388eb09dea012bbd21#779a26ff5b514f388eb09dea012bbd21</link>
		<pubDate>Sun, 24 Jan 2010 21:44:05 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/779a26ff5b514f388eb09dea012bbd21#779a26ff5b514f388eb09dea012bbd21</guid>
		<dc:creator>Les Ferguson</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/LesFerg/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>hi, im new here. im involved in a project where i need to fill a form that has multi-line blanks. The thing is that some of these empty spaces that need to be filled are multi-line and the first line does not start where the rest does. So as to explain myself,
 i mean something like this:</p>
<p>&nbsp;</p>
<p>XXXXXXXXXXXXX</p>
<p>XXXX____________</p>
<p>__________________</p>
<p>XXXXXXXXXXXXX</p>
<p>&nbsp;</p>
<p>I inserted an acro field with margins but and if i write manually it works like a charm. I managed to recover the data from the DB and put it in the empty spaces but the thing is that when i open the pdf i see the acro fields that are single line do not
 have problems but those that are multi-line do not fit into the created margin. The inserted text starts where the line starts, without consideration of the margin. Now, if i click into the acro field then the text fits into the space perfectly. Once i click
 on another place of the document, the text goes back to the beggining of the line.
</p>
<p>&nbsp;</p>
<p>How can i solve this?</p>
<p>Thx even for reading this, im sorry for reopening the thread and for my bad english. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/01c7a3f08a67408081d49dea012bbd66#01c7a3f08a67408081d49dea012bbd66</link>
		<pubDate>Mon, 25 Jan 2010 13:10:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/01c7a3f08a67408081d49dea012bbd66#01c7a3f08a67408081d49dea012bbd66</guid>
		<dc:creator>pei</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pei/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Use a&nbsp;<a href="http://www.winnovative-software.com/">HTML to PDF</a> converter for .NET .&nbsp;Is&nbsp;the easiest way to produce&nbsp;rich PDF documents on the fly.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d141c73eaf9a41ff9a529dea012bbda7#d141c73eaf9a41ff9a529dea012bbda7</link>
		<pubDate>Mon, 25 Jan 2010 14:44:39 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d141c73eaf9a41ff9a529dea012bbda7#d141c73eaf9a41ff9a529dea012bbda7</guid>
		<dc:creator>fchivu</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/fchivu/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">fchivu said:</div><div class="quoteText">
<p>Use a&nbsp;<a href="http://www.winnovative-software.com/">HTML to PDF</a> converter for .NET .&nbsp;Is&nbsp;the easiest way to produce&nbsp;rich PDF documents on the fly.</p>
</div></blockquote>
<p>i dont want any more products, i just want to know how can i make the text i add fit in the blanks like its supossed to.</p>
<p>&nbsp;</p>
<p>ANY IDEAS?</p>
<p>&nbsp;</p>
<p>thanks in advance</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/db693ef2f33e406fb6279dea012bbdd0#db693ef2f33e406fb6279dea012bbdd0</link>
		<pubDate>Thu, 28 Jan 2010 04:14:40 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/db693ef2f33e406fb6279dea012bbdd0#db693ef2f33e406fb6279dea012bbdd0</guid>
		<dc:creator>pei</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pei/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">pei said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">fchivu said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>i dont want any more products, i just want to know how can i make the text i add fit in the blanks like its supossed to.</p>
<p>&nbsp;</p>
<p>ANY IDEAS?</p>
<p>&nbsp;</p>
<p>thanks in advance</p>
</div></blockquote>
<p>check this: <a href="http://itextsharp.sourceforge.net/tutorial/">http://itextsharp.sourceforge.net/tutorial/</a></p>
<p>&nbsp;</p>
<p>please create small example and post it or contact me.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f151d7581d3d45ab8e159dea012bbe13#f151d7581d3d45ab8e159dea012bbe13</link>
		<pubDate>Thu, 28 Jan 2010 10:21:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f151d7581d3d45ab8e159dea012bbe13#f151d7581d3d45ab8e159dea012bbe13</guid>
		<dc:creator>Nobels</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Nobels/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>You can check the <a href="http://www.winnovative-software.com/">HTML to PDF</a> library for .NET or the
<a href="http://www.pdfspot.com/">HTML to PDF</a> online for free&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f582e3a6237d4933aa6b9dea012bbe3b#f582e3a6237d4933aa6b9dea012bbe3b</link>
		<pubDate>Thu, 28 Jan 2010 14:46:31 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f582e3a6237d4933aa6b9dea012bbe3b#f582e3a6237d4933aa6b9dea012bbe3b</guid>
		<dc:creator>fchivu</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/fchivu/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Ok I've gotten my pdfstamping working with iTextsharp but I can't figure out how to control the font size of the fillable text fields.&nbsp; Is this something that needs to be done at the template level (I don't have Adobe Professional - I'm relying on someone
 else doing the pdf)? Or can I control it via code??</p>
<p>&nbsp;</p>
<p>I have tried:</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BaseFont baseFont = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.EMBEDDED);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfContentByte content = pdfStamper.GetOverContent(1);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content.BeginText();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content.SetFontAndSize(baseFont, 10);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Populate the PDF form with the FDF key/value pairs<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AcroFields pdfForm = pdfStamper.AcroFields;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfForm.SetFields(fdfReader);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content.EndText();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content.Stroke();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //todo stopped jere<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfForm.SetFieldProperty(&quot;MemberEmail&quot;, &quot;textfont&quot;, baseFont, null);<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //’Flatten’ (make the text go directly onto the pdf) and close the form<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfStamper.FormFlattening = true;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfStamper.Writer.CloseStream = true; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfStamper.Close();</p>
<p>&nbsp;</p>
<p>But there is no change at all to the font.</p>
<p>&nbsp;</p>
<p>I'm struggling to find anyone who combines filling a pdf template with data with the ability to control font?!!</p>
<p>&nbsp;</p>
<p>Thanks <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7a15510d4de0487c9dbe9dea012bbe84#7a15510d4de0487c9dbe9dea012bbe84</link>
		<pubDate>Sun, 31 Jan 2010 23:46:55 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7a15510d4de0487c9dbe9dea012bbe84#7a15510d4de0487c9dbe9dea012bbe84</guid>
		<dc:creator>Jen</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/polarwarp/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>You can use&nbsp;this <a href="http://www.winnovative-software.com/">HTML to PDF </a>
&nbsp;library or&nbsp;a <a href="http://www.pdfspot.com/">HTML to PDF </a>online service.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1f901d2124574f609ae99dea012bbead#1f901d2124574f609ae99dea012bbead</link>
		<pubDate>Wed, 10 Feb 2010 14:16:22 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1f901d2124574f609ae99dea012bbead#1f901d2124574f609ae99dea012bbead</guid>
		<dc:creator>fchivu</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/fchivu/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Filth said:</div><div class="quoteText">
<p>Hi,</p>
<p>I've just starting using iTextSharp in a code behind page, but when I run it, it just shows a&nbsp;empty pdf.</p>
<p>I was wondering if anyone could see anything crazy that I have or haven't done?<br /><br />The code in my page_load event is:<br /><br /></p>
<p></p>
MemoryStream m = new MemoryStream();
<p></p>
<p>Document document = new Document(PageSize.A4.Rotate(), 10, 10, 10, 10);</p>
<p>try </p>
<p>{</p>
<p>Response.ContentType = &quot;application/pdf&quot;;</p>
<p>PdfWriter.GetInstance(document, m);</p>
<p></p>
<p>document.Open();</p>
<p></p>
<p>document.Add(new Paragraph(DateTime.Now.ToString()));</p>
<p>document.Add(new Paragraph(&quot;This is another test&quot;));</p>
<p>document.Add(new Paragraph(&quot;Yet another test&quot;));</p>
<p>} </p>
<p>catch (DocumentException ex) </p>
<p>{</p>
<p>Console.Error.WriteLine(ex.StackTrace);</p>
<p>Console.Error.WriteLine(ex.Message);</p>
<p>}</p>
<p>// step 5: Close document</p>
<p>document.Close();</p>
<p>// step 6: Write pdf bytes to outputstream</p>
<p>Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);</p>
<p>Response.OutputStream.Flush();</p>
<p>Response.OutputStream.Close();</p>
</div></blockquote>
<p>You can use&nbsp;this <a href="http://www.winnovative-software.com/">HTML to PDF </a>
&nbsp;library or&nbsp;a <a href="http://www.pdfspot.com/">HTML to PDF </a>online service.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d5b8cd0dec404c70a7cc9dea012bbedb#d5b8cd0dec404c70a7cc9dea012bbedb</link>
		<pubDate>Wed, 10 Feb 2010 14:19:03 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/d5b8cd0dec404c70a7cc9dea012bbedb#d5b8cd0dec404c70a7cc9dea012bbedb</guid>
		<dc:creator>fchivu</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/fchivu/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">fchivu said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">Filth said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>You can use&nbsp;this <a href="http://www.winnovative-software.com/">HTML to PDF </a>
&nbsp;library or&nbsp;a <a href="http://www.pdfspot.com/">HTML to PDF </a>online service.</p>
</div></blockquote>
<p>Hello,</p>
<p>&nbsp;</p>
<p>I have a doubt. I want to merge few pdf's into one. I am able to do it using iTextSharp. However, i notice that the page numbers do not change. If i merge two pdf with 4 pages each, i would want the final merged pdf to have a page numbering from 1 - 8; &nbsp;whats
 happening now is that i have the merged pdf with the page numbering 1-4 and again 1-4.</p>
<p>How do i change the page numbers of the merged pdf's ?</p>
<p>&nbsp;</p>
<p>Thanks!</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/e05de7e9c4194c548de09dea012bbf1e#e05de7e9c4194c548de09dea012bbf1e</link>
		<pubDate>Mon, 22 Feb 2010 19:15:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/e05de7e9c4194c548de09dea012bbf1e#e05de7e9c4194c548de09dea012bbf1e</guid>
		<dc:creator>chidnyc</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/chidnyc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>hello,</p>
<p>&nbsp;</p>
<p>in this thread i've read a lot of people are having problems dynamically creating form fields and controlling the text size/font with the pdfstamper. i too had problems because of the shared server situation and found the easiest solution was to instead
 use the watermark feature of iTextsharp.</p>
<p>&nbsp;</p>
<p>using a watermark you don't have to dynamically add&nbsp;any form fields... you just have to know the x and y coordinates of each field you want to &quot;stamp&quot;. you can add as many watermarks as you want and they don't have to be opaque.... they can be any color,
 any size, any font installed on the server.</p>
<p>&nbsp;</p>
<p>pdf spec is device independent so the coordinates are exactly were you would place those form fields anyway. you may have to experiement with getting the coordinates right though and depending on your application this may be impractical.</p>
<p>&nbsp;</p>
<p>so set up your template and let it live on the server, then watermark the heck out of it <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7b79bd634be848a5b6c89dea012bbf62#7b79bd634be848a5b6c89dea012bbf62</link>
		<pubDate>Thu, 04 Mar 2010 21:05:54 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7b79bd634be848a5b6c89dea012bbf62#7b79bd634be848a5b6c89dea012bbf62</guid>
		<dc:creator>itsnotabug</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/itsnotabug/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">joachim said:</div><div class="quoteText">I had similar problem. I just downloaded a trial of the latest version of the Adobe Acrobat, which has a cool form designer tool. I used that to create the template document for my program, including adding all the form fields.<br /><br />This works fine as long as you do not need to modify the template after it is created.<br /><br />My code then creates the PDF documents based on this template, by filling in values from database records, into form fields programmatically.<br /><br />Good luck...<br /></div></blockquote>
<p>Hi every one </p>
<p>I am using Itextsharp for converting the webpage gridview to the PDF </p>
<p>every thing works fine but the only thing is I want to show the gridview in PDF with wrap in text in the columns as I have some long text</p>
<p>in some columns. </p>
<p>what would be the code.</p>
<p>&nbsp;</p>
<p>Any answers will be appreciated </p>
<p>&nbsp;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4d2cc2f272d44028bf3a9dea012bbfa6#4d2cc2f272d44028bf3a9dea012bbfa6</link>
		<pubDate>Fri, 21 May 2010 10:30:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4d2cc2f272d44028bf3a9dea012bbfa6#4d2cc2f272d44028bf3a9dea012bbfa6</guid>
		<dc:creator>Rasool</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Rasool/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Filth said:</div><div class="quoteText">
<p>Hi,</p>
<p>I've just starting using iTextSharp in a code behind page, but when I run it, it just shows a&nbsp;empty pdf.</p>
<p>I was wondering if anyone could see anything crazy that I have or haven't done?<br /><br />The code in my page_load event is:<br /><br /></p>
<p></p>
MemoryStream m = new MemoryStream();
<p></p>
<p>Document document = new Document(PageSize.A4.Rotate(), 10, 10, 10, 10);</p>
<p>try </p>
<p>{</p>
<p>Response.ContentType = &quot;application/pdf&quot;;</p>
<p>PdfWriter.GetInstance(document, m);</p>
<p></p>
<p>document.Open();</p>
<p></p>
<p>document.Add(new Paragraph(DateTime.Now.ToString()));</p>
<p>document.Add(new Paragraph(&quot;This is another test&quot;));</p>
<p>document.Add(new Paragraph(&quot;Yet another test&quot;));</p>
<p>} </p>
<p>catch (DocumentException ex) </p>
<p>{</p>
<p>Console.Error.WriteLine(ex.StackTrace);</p>
<p>Console.Error.WriteLine(ex.Message);</p>
<p>}</p>
<p>// step 5: Close document</p>
<p>document.Close();</p>
<p>// step 6: Write pdf bytes to outputstream</p>
<p>Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);</p>
<p>Response.OutputStream.Flush();</p>
<p>Response.OutputStream.Close();</p>
</div></blockquote>
<p>you can try&nbsp;a <a href="http://www.winnovative-software.com">html to pdf</a> converter for library for .net or a
<a href="http://www.pdfspot.com/">free html to pdf</a> online service</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7090ccc0c1d94189b47e9dea012bbfeb#7090ccc0c1d94189b47e9dea012bbfeb</link>
		<pubDate>Fri, 11 Jun 2010 13:08:37 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/7090ccc0c1d94189b47e9dea012bbfeb#7090ccc0c1d94189b47e9dea012bbfeb</guid>
		<dc:creator>fchiv</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/fchiv/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I'm just jumping in here, haven't followe the entire thread. There's many PDF tools out there, for .NET and such, but it's a jungle. I want to promote
<a href="http://www.pdfsharp.net/">PDFSharp</a>&nbsp;(pdfsharp.net), It's an free .net library for PDF manipulation. There's vast documentation and a active forum where the author himself is active.
</p>
<p>&nbsp;</p>
<p>I'm using this component in a current project where I create PDF's from scratch based on input from my database</p>
<p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/aa5f4c923927415db2409dea012bc02d#aa5f4c923927415db2409dea012bc02d</link>
		<pubDate>Wed, 30 Jun 2010 11:46:49 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/aa5f4c923927415db2409dea012bc02d#aa5f4c923927415db2409dea012bc02d</guid>
		<dc:creator>Oggelito</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Oggelito/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">fchivu said:</div><div class="quoteText">
<p>You can use&nbsp;this <a href="http://www.winnovative-software.com/">HTML to PDF </a>
&nbsp;library or&nbsp;a <a href="http://www.pdfspot.com/">HTML to PDF </a>online service.</p>
</div></blockquote>
<p>Hi Everybody,</p>
<p>Can anyone solve my problem?</p>
<p>I am having Two aspx page, Main.aspx and View.aspx. In main.aspx page i am having iframe in td. The src of iFrame is View.aspx.
</p>
<p>&nbsp;&nbsp; In the Pageload event of View.aspx page, i am loading the pdf as inline file.</p>
<p>&nbsp;</p>
<p>Now my user wants to edit the content of pdf(adding comments) using typewriter function.&nbsp; So i want to save the pdf content as binary value in database.</p>
<p>&nbsp;</p>
<p>please see the following link:</p>
<p><a href="http://www.eggheadcafe.com/community/aspnet/17/10183194/getting-location-of-iframe-document-in-aspnet.aspx">http://www.eggheadcafe.com/community/aspnet/17/10183194/getting-location-of-iframe-document-in-aspnet.aspx</a></p>
<p>&nbsp;</p>
<p>How to do this? Maill me if anyone know the solution. </p>
<p><a href="mailto:mailtosenthilvel@gmail.com">mailtosenthilvel@gmail.com</a></p>
<p>Thanks in Advance.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>With Regards,</p>
<p>Vel,</p>
<p>&nbsp;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0180d9b1b7ff4ec188649dea012bc072#0180d9b1b7ff4ec188649dea012bc072</link>
		<pubDate>Tue, 06 Jul 2010 04:59:50 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0180d9b1b7ff4ec188649dea012bc072#0180d9b1b7ff4ec188649dea012bc072</guid>
		<dc:creator>Newvel</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Newvel/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">joachim said:</div><div class="quoteText">
<blockquote>
<div>sbc wrote:</div>
<div>Don't know why you have to go through all those stages just to modify a file<br /></div>
</blockquote>
<br /><br />You don't; like I said it's just a workaround. And yes, it's inefficient (especially if you're doing it on the server).<br /><br />But if it is just the Title you are worries about, then just set the title on the form template and when the new document is created with the stamper,&nbsp;the Title&nbsp;will still be there.</div></blockquote>
<p>hi</p>
<p>&nbsp;</p>
<p>i am new to &nbsp;iTextSharp,any one please help me to convert .doc to pdf</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/c8e18214d7f140b5afef9dea012bc0b6#c8e18214d7f140b5afef9dea012bc0b6</link>
		<pubDate>Tue, 10 Aug 2010 08:06:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/c8e18214d7f140b5afef9dea012bc0b6#c8e18214d7f140b5afef9dea012bc0b6</guid>
		<dc:creator>Anjaneya</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/anjaneya/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>hi all,</p>
<p>in several projects I&nbsp;used&nbsp;solution &quot;wkhtmltopdf&quot;.<br />First I tried iTextSharp, but it does not work well with converting html file to pdf file, and sometimes happened when displaying Cyrillic.</p>
<p>&quot;wkhtmltopdf&quot; works fine, but it is an executable file</p>
<p>&nbsp;</p>
<p>Peace</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/adf5c3dc1d5543bca2959dea012bc0f8#adf5c3dc1d5543bca2959dea012bc0f8</link>
		<pubDate>Sat, 14 Aug 2010 22:18:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/adf5c3dc1d5543bca2959dea012bc0f8#adf5c3dc1d5543bca2959dea012bc0f8</guid>
		<dc:creator>Maxim Serenko</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Beetlejuice/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi, I'm using a PDF stamper to fill in form fields as suggested many times above. </p><p>I also want to add an image whcih is created at runtime. Is there any way of using the stamper object for this (ie substitute a template field?) Or do I need to save the stamped PDF, and then run it back through the PDFWriter and add my image to the docuemnt. </p><p>I'd be grateful if anyone can suggest some code for this....</p><p>&nbsp;</p><p>Many thanks</p><p>Rob</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4fc673bf22cc4cc295969e0c00eee1e3#4fc673bf22cc4cc295969e0c00eee1e3</link>
		<pubDate>Mon, 11 Oct 2010 14:29:44 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/4fc673bf22cc4cc295969e0c00eee1e3#4fc673bf22cc4cc295969e0c00eee1e3</guid>
		<dc:creator>robnisbet</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/robnisbet/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET#c4fc673bf22cc4cc295969e0c00eee1e3">robnisbet</a>:hi, try using a watermark. i think it can be text or image... even with transparency. you need to know the exact coordinates. see my last post.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0df4742e760d4c88b6e09e0c010b3214#0df4742e760d4c88b6e09e0c010b3214</link>
		<pubDate>Mon, 11 Oct 2010 16:12:49 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/0df4742e760d4c88b6e09e0c010b3214#0df4742e760d4c88b6e09e0c010b3214</guid>
		<dc:creator>itsnotabug</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/itsnotabug/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Thanks &lt;itsnotabug&gt; I read up a bit on watermarks etc and using the &quot;UnderConent&quot;. My code now looks like this for anyone interested. I read the original PDF in, scale the image, find the last page and add the image, then save the pdf again to a different filename. Brilliant!</p><p>Thanks!</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfReader reader = new PdfReader(myoriginalPDFFileName);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfStamper stamper = new PdfStamper(reader, new FileStream(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mynewPDFFileName, FileMode.Create));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Single x=0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Single y=0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iTextSharp.text.Rectangle rect = reader.GetPageSizeWithRotation(1);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance(myImageName);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (img.Width &gt; rect.Width || img.Height &gt; rect.Height)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; img.ScaleToFit(rect.Width, rect.Height);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x = (rect.Width - img.ScaledWidth) / 2;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //y = (rect.Height - img.ScaledHeight) / 2;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y = 0; //Set at bottom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x = (rect.Width - img.Width) / 2;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y = (rect.Height - img.Height) / 2;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; img.SetAbsolutePosition(x, y);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int pageCount = reader.NumberOfPages;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PdfContentByte underContent = stamper.GetUnderContent(pageCount);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; underContent.AddImage(img);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // flatten form fields and close document<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stamper.FormFlattening = true;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stamper.Close();</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f603e9fdf116412ead279e0d00ed782e#f603e9fdf116412ead279e0d00ed782e</link>
		<pubDate>Tue, 12 Oct 2010 14:24:35 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/f603e9fdf116412ead279e0d00ed782e#f603e9fdf116412ead279e0d00ed782e</guid>
		<dc:creator>robnisbet</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/robnisbet/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET#cf603e9fdf116412ead279e0d00ed782e">robnisbet</a>:yes, after mucking with the pdfStamper (which is admittedly good if you have a solid template &#43; key/value pairs), i prefer just watermarking the heck out of a pdf. you have much more control over the position, layout and can use images. you can use multiple watermarks per page, transparencies, easy as pie.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/79d3610df7664846b5ac9e0d00fac27c#79d3610df7664846b5ac9e0d00fac27c</link>
		<pubDate>Tue, 12 Oct 2010 15:12:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/79d3610df7664846b5ac9e0d00fac27c#79d3610df7664846b5ac9e0d00fac27c</guid>
		<dc:creator>itsnotabug</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/itsnotabug/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>I can get itextsharp to work with the MS VS Web Development Server, no problem. &nbsp;However, how to you get it to work with IIS7.5? &nbsp;The same code that works with the WD Server, throws a BC30002: Type 'Document' is not defined. Error in this line...</p><p>Dim document As New Document(PageSize.A4)</p><p>I assume there is something that needs to be configured on the IIS 7.5 server, but so far I can't find any information on the subject.</p><p>Thanks! McF</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1fdd44c873ae4989bace9efa00d6d0e7#1fdd44c873ae4989bace9efa00d6d0e7</link>
		<pubDate>Mon, 06 Jun 2011 13:02:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/1fdd44c873ae4989bace9efa00d6d0e7#1fdd44c873ae4989bace9efa00d6d0e7</guid>
		<dc:creator>McFrisch</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/McFrisch/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hi,</p><p>I am trying to find an open source/free class library that can convert Url to PDF. There are lots of paid libraries like abcpdf.net, PDFDuo and ConvertApi that easily convert any Url to PDF.</p><p>Can we convert Url to pdf with iTextSharp? I tried local with html files (physical/relative path), it works fine but it give some exception while converting an Internet url like www.google.com to pdf.</p><p>Can anyone helps?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/451e6e0b527b4f0e92aea00d0069029d#451e6e0b527b4f0e92aea00d0069029d</link>
		<pubDate>Wed, 07 Mar 2012 06:22:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/451e6e0b527b4f0e92aea00d0069029d#451e6e0b527b4f0e92aea00d0069029d</guid>
		<dc:creator>sachin303</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sachin303/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET and iTextSharp (free PDF Generator for .NET)</title>
		<description><![CDATA[<p>Hello,</p><p>Can anyone help me how to repeat the section of PDF dynamically in iTexSharp?<br>Actually if am able to create the pdf with&nbsp;AcroFields and now i want to add the section of pdf dynamically if the user increases by 4 otherwise the pdf look as it is.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b5fabfbfce994117baa1a1320136e209#b5fabfbfce994117baa1a1320136e209</link>
		<pubDate>Tue, 25 Dec 2012 18:51:53 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/b5fabfbfce994117baa1a1320136e209#b5fabfbfce994117baa1a1320136e209</guid>
		<dc:creator>Pranjali</dc:creator>
		<slash:comments>79</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Pranjali/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>