<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating PDF-files with iText</title>
	<atom:link href="http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/</link>
	<description>There is no place like home.</description>
	<lastBuildDate>Sun, 05 Feb 2012 05:16:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: raviraj</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-11348</link>
		<dc:creator>raviraj</dc:creator>
		<pubDate>Mon, 05 Dec 2011 08:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-11348</guid>
		<description>i had run the code but i did not find any pdf file ..where it can be stored ?</description>
		<content:encoded><![CDATA[<p>i had run the code but i did not find any pdf file ..where it can be stored ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diogo</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-7318</link>
		<dc:creator>Diogo</dc:creator>
		<pubDate>Wed, 16 Mar 2011 15:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-7318</guid>
		<description>Thank you! it helped me a lot!</description>
		<content:encoded><![CDATA[<p>Thank you! it helped me a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: victor edward</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-2833</link>
		<dc:creator>victor edward</dc:creator>
		<pubDate>Tue, 28 Sep 2010 22:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-2833</guid>
		<description>Hi I have a problem when sending print the PDF document created adobe reader tells me that can not display this site and reviewing and only happens when I add lines, remove them and no error appears, I leave the code as the sample probe page of the creators and nothing itext


Imports iTextSharp.text.Document
Imports iTextSharp.text.pdf
Imports iTextSharp.text
Imports iTextSharp.text.pdf.PdfWriter
Imports System.IO

MemStream Dim As New MemoryStream ()
        Dim As iTextSharp.text.pdf.PdfWriter pdfw
        Dim cb As PdfContentByte
        DocumentPDF Dim As Document = New Document ()
DocumentPDF = New Document (iTextSharp.text.PageSize.LETTER, 0, 0, 0, 0)

  &#039;Open the document
        DocumentPDF.Open ()
        cb = pdfw.DirectContent
        &#039;Add a page.
        DocumentPDF.NewPage ()
        &#039;Start the Text
        cb.BeginText ()

  cb.SaveState ()
        cb.SetLineWidth (8)
        cb.SetLineCap (5)
        cb.MoveTo (350, 500)
        cb.LineTo (540, 500)
        cb.Stroke ()
        cb.RestoreState ()

 cb.EndText ()
        pdfw.Flush ()
        &#039;Dim As jAction PdfAction.JavaScript PDFACTION = (&quot;this.notprint (true);&quot; &amp; vbCr, pdfw)
        &#039;Pdfw.AddJavaScript (jAction)
        &#039;Close the document
        DocumentPDF.CloseDocument ()</description>
		<content:encoded><![CDATA[<p>Hi I have a problem when sending print the PDF document created adobe reader tells me that can not display this site and reviewing and only happens when I add lines, remove them and no error appears, I leave the code as the sample probe page of the creators and nothing itext</p>
<p>Imports iTextSharp.text.Document<br />
Imports iTextSharp.text.pdf<br />
Imports iTextSharp.text<br />
Imports iTextSharp.text.pdf.PdfWriter<br />
Imports System.IO</p>
<p>MemStream Dim As New MemoryStream ()<br />
        Dim As iTextSharp.text.pdf.PdfWriter pdfw<br />
        Dim cb As PdfContentByte<br />
        DocumentPDF Dim As Document = New Document ()<br />
DocumentPDF = New Document (iTextSharp.text.PageSize.LETTER, 0, 0, 0, 0)</p>
<p>  &#8216;Open the document<br />
        DocumentPDF.Open ()<br />
        cb = pdfw.DirectContent<br />
        &#8216;Add a page.<br />
        DocumentPDF.NewPage ()<br />
        &#8216;Start the Text<br />
        cb.BeginText ()</p>
<p>  cb.SaveState ()<br />
        cb.SetLineWidth (8)<br />
        cb.SetLineCap (5)<br />
        cb.MoveTo (350, 500)<br />
        cb.LineTo (540, 500)<br />
        cb.Stroke ()<br />
        cb.RestoreState ()</p>
<p> cb.EndText ()<br />
        pdfw.Flush ()<br />
        &#8216;Dim As jAction PdfAction.JavaScript PDFACTION = (&#8220;this.notprint (true);&#8221; &amp; vbCr, pdfw)<br />
        &#8216;Pdfw.AddJavaScript (jAction)<br />
        &#8216;Close the document<br />
        DocumentPDF.CloseDocument ()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: melyvin</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-1919</link>
		<dc:creator>melyvin</dc:creator>
		<pubDate>Mon, 08 Mar 2010 08:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-1919</guid>
		<description>hi i am experiencing some difficulties such that my program has an error and it tells me the package com.lowagie.text does not exist even after importing iText 2.0 please help</description>
		<content:encoded><![CDATA[<p>hi i am experiencing some difficulties such that my program has an error and it tells me the package com.lowagie.text does not exist even after importing iText 2.0 please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh Voruganti</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-1533</link>
		<dc:creator>Rajesh Voruganti</dc:creator>
		<pubDate>Mon, 09 Nov 2009 07:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-1533</guid>
		<description>Rotated Rectangle with stroking not printed accurately while PDF Generating</description>
		<content:encoded><![CDATA[<p>Rotated Rectangle with stroking not printed accurately while PDF Generating</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manfred</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-1511</link>
		<dc:creator>Manfred</dc:creator>
		<pubDate>Thu, 29 Oct 2009 03:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-1511</guid>
		<description>@Luis: it&#039;s already a while ago that you have posted that question, so I assume that you have solved the problem. Anyway, here&#039;s my solution:

Rectangle a4 = PageSize.A4;
Rectangle a4Landscape = a4.rotate();
Document doc = new Document(a4Landscape);

For me, it works like a charm... The paper is in landscape format and the content is written in the correct orientation.</description>
		<content:encoded><![CDATA[<p>@Luis: it&#8217;s already a while ago that you have posted that question, so I assume that you have solved the problem. Anyway, here&#8217;s my solution:</p>
<p>Rectangle a4 = PageSize.A4;<br />
Rectangle a4Landscape = a4.rotate();<br />
Document doc = new Document(a4Landscape);</p>
<p>For me, it works like a charm&#8230; The paper is in landscape format and the content is written in the correct orientation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-1140</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Thu, 02 Jul 2009 22:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-1140</guid>
		<description>I have a problem con iText I need generate a document in landscape orientation; for that I imported a pdf file and write on it, the pdf that I  import is in letter horizontal position, when  the program generates the result pdf, the application always gave me a document with portrait position, the text that program puts in document are in correct orientation but the document are  wrong orientation, I don&#039;t know why the code read the base pdf in landscape position and gave one in portrait, the page size are read and asigned with these commands 

Rectangle pageSize = reader.getPageSize(1);
document = new Document(pageSize); 

If I use the method rotate in
document = new Document(pageSize.rotate());

I obtain a document in landascape but the base pdf are in portrait position and cutted by the size of the page

I don&#039;t know how do for obtain a pdf in landascape position. :( correctly

Please Help me</description>
		<content:encoded><![CDATA[<p>I have a problem con iText I need generate a document in landscape orientation; for that I imported a pdf file and write on it, the pdf that I  import is in letter horizontal position, when  the program generates the result pdf, the application always gave me a document with portrait position, the text that program puts in document are in correct orientation but the document are  wrong orientation, I don&#8217;t know why the code read the base pdf in landscape position and gave one in portrait, the page size are read and asigned with these commands </p>
<p>Rectangle pageSize = reader.getPageSize(1);<br />
document = new Document(pageSize); </p>
<p>If I use the method rotate in<br />
document = new Document(pageSize.rotate());</p>
<p>I obtain a document in landascape but the base pdf are in portrait position and cutted by the size of the page</p>
<p>I don&#8217;t know how do for obtain a pdf in landascape position. :( correctly</p>
<p>Please Help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-928</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 23 Apr 2009 16:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-928</guid>
		<description>I have an open document I am writing to.  Instead of adding a new Paragraph Element, what if I want to write the entire contents of an existing PDF File?</description>
		<content:encoded><![CDATA[<p>I have an open document I am writing to.  Instead of adding a new Paragraph Element, what if I want to write the entire contents of an existing PDF File?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajith Nishantha</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-907</link>
		<dc:creator>Ajith Nishantha</dc:creator>
		<pubDate>Tue, 31 Mar 2009 05:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-907</guid>
		<description>it is so use full to my project . thanks so much
*************************************************</description>
		<content:encoded><![CDATA[<p>it is so use full to my project . thanks so much<br />
*************************************************</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurette</title>
		<link>http://www.bartneck.de/2008/02/28/creating-pdf-files-with-itext/comment-page-1/#comment-844</link>
		<dc:creator>Laurette</dc:creator>
		<pubDate>Fri, 27 Feb 2009 15:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.bartneck.de/website/2008/02/28/creating-pdf-files-with-itext/#comment-844</guid>
		<description>Thanks! This was very helpful! Short, sweet and no need to sift through tutorials to get started. :)</description>
		<content:encoded><![CDATA[<p>Thanks! This was very helpful! Short, sweet and no need to sift through tutorials to get started. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

