<?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: Print a PDF Document in Java</title>
	<atom:link href="http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/</link>
	<description>Break Coders Block!</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:29:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: cisq</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-2/#comment-72247</link>
		<dc:creator>cisq</dc:creator>
		<pubDate>Tue, 31 Jan 2012 12:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-72247</guid>
		<description>Great work, many thanks</description>
		<content:encoded><![CDATA[<p>Great work, many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shoaib Ahmed</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-2/#comment-71533</link>
		<dc:creator>Shoaib Ahmed</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-71533</guid>
		<description>this library is just superb... helped me a lot. i worked with it for the printinig purpose...</description>
		<content:encoded><![CDATA[<p>this library is just superb&#8230; helped me a lot. i worked with it for the printinig purpose&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Techie</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-2/#comment-64329</link>
		<dc:creator>Techie</dc:creator>
		<pubDate>Thu, 08 Dec 2011 14:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-64329</guid>
		<description>Hi Friends,

Thanks for sharing this example.

I am facing issue when I print on Linux/Unix machine.
It is printing Binary (Junk Chars) not the actual PDF Doc.
Same code is working fine on Windows.
If any one of you know the solution or any inputs, highly appreciated.

Thanks in Advance.</description>
		<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>Thanks for sharing this example.</p>
<p>I am facing issue when I print on Linux/Unix machine.<br />
It is printing Binary (Junk Chars) not the actual PDF Doc.<br />
Same code is working fine on Windows.<br />
If any one of you know the solution or any inputs, highly appreciated.</p>
<p>Thanks in Advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jhay</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-2/#comment-62695</link>
		<dc:creator>Jhay</dc:creator>
		<pubDate>Sat, 26 Nov 2011 06:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-62695</guid>
		<description>How to use this through PHP where I can pass a variable that has the link to my PDF?  For example, an external PDF or internal...</description>
		<content:encoded><![CDATA[<p>How to use this through PHP where I can pass a variable that has the link to my PDF?  For example, an external PDF or internal&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clement</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-2/#comment-62048</link>
		<dc:creator>Clement</dc:creator>
		<pubDate>Mon, 21 Nov 2011 09:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-62048</guid>
		<description>Very nice code, very simple and useful.
Thank you.</description>
		<content:encoded><![CDATA[<p>Very nice code, very simple and useful.<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Print &#38; PDF Document in Java &#124; P3r3s&#039; Notes</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-2/#comment-59939</link>
		<dc:creator>Print &#38; PDF Document in Java &#124; P3r3s&#039; Notes</dc:creator>
		<pubDate>Thu, 03 Nov 2011 21:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-59939</guid>
		<description>[...] Print a PDF Document in Java.   This entry was posted in Code and tagged java by abrioso. Bookmark the permalink. [...]</description>
		<content:encoded><![CDATA[<p>[...] Print a PDF Document in Java.   This entry was posted in Code and tagged java by abrioso. Bookmark the permalink. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stampare PDF da Java &#124; Lady Blackice</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-2/#comment-38640</link>
		<dc:creator>Stampare PDF da Java &#124; Lady Blackice</dc:creator>
		<pubDate>Thu, 24 Mar 2011 15:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-38640</guid>
		<description>[...] che facevano al caso mio!  Prima parte: per mandare in stampa il PDF ho seguito le istruzioni di questo post, che suggerisce l&#8217;utilizzo della libreria PDF Renderer. Solo una correzione al codice [...]</description>
		<content:encoded><![CDATA[<p>[...] che facevano al caso mio!  Prima parte: per mandare in stampa il PDF ho seguito le istruzioni di questo post, che suggerisce l&#8217;utilizzo della libreria PDF Renderer. Solo una correzione al codice [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bainer</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-1/#comment-36687</link>
		<dc:creator>Bainer</dc:creator>
		<pubDate>Thu, 03 Mar 2011 20:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-36687</guid>
		<description>Thank you Barrett for figuring this thing out!!</description>
		<content:encoded><![CDATA[<p>Thank you Barrett for figuring this thing out!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-1/#comment-33434</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 11 Feb 2011 15:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-33434</guid>
		<description>This is what i use to keep the original pdf size :

&lt;pre&gt;
	/* fit the PDFPage into the printing area */
	Graphics2D a_o_graphic = (Graphics2D)the_o_graphics;
	PDFPage a_o_page = my_o_file.getPage(a_i_pagenum);

	double pwidth = the_o_format.getImageableWidth();
	double pheight = the_o_format.getImageableHeight();
 
	Rectangle a_o_imageArea;
 
    if (pwidth &gt;= a_o_page.getWidth() &#124;&#124; pheight &gt;= a_o_page.getHeight()) {
	/* Define the image area */
		a_o_imageArea = new Rectangle((int) the_o_format.getImageableX(), (int) the_o_format.getImageableY(),
		(int) a_o_page.getWidth(), (int) a_o_page.getHeight());
		a_o_graphic.translate(0, 0);
    }
    else{
	/* Define the image area */
		a_o_imageArea = new Rectangle((int) the_o_format.getImageableX(), (int) the_o_format.getImageableY(),
		(int) the_o_format.getImageableWidth(), (int) the_o_format.getImageableHeight());
		a_o_graphic.translate(0, 0);
    }
&lt;/pre&gt;

I hope it can be useful for someone :)</description>
		<content:encoded><![CDATA[<p>This is what i use to keep the original pdf size :</p>
<pre>
	/* fit the PDFPage into the printing area */
	Graphics2D a_o_graphic = (Graphics2D)the_o_graphics;
	PDFPage a_o_page = my_o_file.getPage(a_i_pagenum);

	double pwidth = the_o_format.getImageableWidth();
	double pheight = the_o_format.getImageableHeight();

	Rectangle a_o_imageArea;

    if (pwidth &gt;= a_o_page.getWidth() || pheight &gt;= a_o_page.getHeight()) {
	/* Define the image area */
		a_o_imageArea = new Rectangle((int) the_o_format.getImageableX(), (int) the_o_format.getImageableY(),
		(int) a_o_page.getWidth(), (int) a_o_page.getHeight());
		a_o_graphic.translate(0, 0);
    }
    else{
	/* Define the image area */
		a_o_imageArea = new Rectangle((int) the_o_format.getImageableX(), (int) the_o_format.getImageableY(),
		(int) the_o_format.getImageableWidth(), (int) the_o_format.getImageableHeight());
		a_o_graphic.translate(0, 0);
    }
</pre>
<p>I hope it can be useful for someone :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tee</title>
		<link>http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/comment-page-1/#comment-28973</link>
		<dc:creator>Tee</dc:creator>
		<pubDate>Fri, 21 Jan 2011 16:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/#comment-28973</guid>
		<description>@Tuyen Tran
Thanks a lot for your sketch. That&#039;s working perfect for me !</description>
		<content:encoded><![CDATA[<p>@Tuyen Tran<br />
Thanks a lot for your sketch. That&#8217;s working perfect for me !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

