<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Pure Java Print PDF Open Source API</title>
	<atom:link href="http://webmoli.com/2008/11/03/java-print-pdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://webmoli.com/2008/11/03/java-print-pdf/</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 14:36:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Mamoun</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-1254</link>
		<dc:creator><![CDATA[Mamoun]]></dc:creator>
		<pubDate>Tue, 24 Jan 2012 14:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-1254</guid>
		<description><![CDATA[its fantastic thank you a lot]]></description>
		<content:encoded><![CDATA[<p>its fantastic thank you a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-1141</link>
		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Tue, 29 Nov 2011 14:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-1141</guid>
		<description><![CDATA[Marvelous, TQVM]]></description>
		<content:encoded><![CDATA[<p>Marvelous, TQVM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MadisonYE</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-1120</link>
		<dc:creator><![CDATA[MadisonYE]]></dc:creator>
		<pubDate>Fri, 28 Oct 2011 06:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-1120</guid>
		<description><![CDATA[I&#039;ve just found this site &lt;a href=&quot;http://www.theas400.com&quot; rel=&quot;nofollow&quot;&gt;theas400.com&lt;/a&gt;, could I just borrow the technical 
data from the site or do I need some kind of permission?. I am doing a project for school.

Madison]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve just found this site <a href="http://www.theas400.com" rel="nofollow">theas400.com</a>, could I just borrow the technical<br />
data from the site or do I need some kind of permission?. I am doing a project for school.</p>
<p>Madison</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaffarsn</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-1111</link>
		<dc:creator><![CDATA[jaffarsn]]></dc:creator>
		<pubDate>Wed, 12 Oct 2011 10:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-1111</guid>
		<description><![CDATA[Hi venkat,

I have put the jar file into lib folder and tried to compile the prindpdf.java file and it throws the error as follows:
PrintPdf.java:15: package com.sun.pdfview does not exist
import com.sun.pdfview.PDFFile;
                      ^
PrintPdf.java:16: package com.sun.pdfview does not exist
import com.sun.pdfview.PDFPage;
                      ^
PrintPdf.java:17: package com.sun.pdfview does not exist
import com.sun.pdfview.PDFRenderer;
                      ^
PrintPdf.java:102: cannot find symbol
symbol  : class PDFFile
location: class PDFPrintPage
        private PDFFile file;
                ^
PrintPdf.java:104: cannot find symbol
symbol  : class PDFFile
location: class PDFPrintPage
        PDFPrintPage(PDFFile file) {
                     ^
PrintPdf.java:74: cannot find symbol
symbol  : class PDFFile
location: class PrintPdf
                PDFFile pdfFile = new PDFFile(bb);
                ^
PrintPdf.java:74: cannot find symbol
symbol  : class PDFFile
location: class PrintPdf
                PDFFile pdfFile = new PDFFile(bb);
                                      ^
PrintPdf.java:112: cannot find symbol
symbol  : class PDFPage
location: class PDFPrintPage
                        PDFPage page = file.getPage(pagenum);
                        ^
PrintPdf.java:118: cannot find symbol
symbol  : class PDFRenderer
location: class PDFPrintPage
                        PDFRenderer pgs = new PDFRenderer(page, g2, imageArea, n
ull, null);
                        ^
PrintPdf.java:118: cannot find symbol
symbol  : class PDFRenderer
location: class PDFPrintPage
                        PDFRenderer pgs = new PDFRenderer(page, g2, imageArea, n
ull, null);
                                              ^
10 errors


Please suggest me to resolve this.

Thanks in Advance.]]></description>
		<content:encoded><![CDATA[<p>Hi venkat,</p>
<p>I have put the jar file into lib folder and tried to compile the prindpdf.java file and it throws the error as follows:<br />
PrintPdf.java:15: package com.sun.pdfview does not exist<br />
import com.sun.pdfview.PDFFile;<br />
                      ^<br />
PrintPdf.java:16: package com.sun.pdfview does not exist<br />
import com.sun.pdfview.PDFPage;<br />
                      ^<br />
PrintPdf.java:17: package com.sun.pdfview does not exist<br />
import com.sun.pdfview.PDFRenderer;<br />
                      ^<br />
PrintPdf.java:102: cannot find symbol<br />
symbol  : class PDFFile<br />
location: class PDFPrintPage<br />
        private PDFFile file;<br />
                ^<br />
PrintPdf.java:104: cannot find symbol<br />
symbol  : class PDFFile<br />
location: class PDFPrintPage<br />
        PDFPrintPage(PDFFile file) {<br />
                     ^<br />
PrintPdf.java:74: cannot find symbol<br />
symbol  : class PDFFile<br />
location: class PrintPdf<br />
                PDFFile pdfFile = new PDFFile(bb);<br />
                ^<br />
PrintPdf.java:74: cannot find symbol<br />
symbol  : class PDFFile<br />
location: class PrintPdf<br />
                PDFFile pdfFile = new PDFFile(bb);<br />
                                      ^<br />
PrintPdf.java:112: cannot find symbol<br />
symbol  : class PDFPage<br />
location: class PDFPrintPage<br />
                        PDFPage page = file.getPage(pagenum);<br />
                        ^<br />
PrintPdf.java:118: cannot find symbol<br />
symbol  : class PDFRenderer<br />
location: class PDFPrintPage<br />
                        PDFRenderer pgs = new PDFRenderer(page, g2, imageArea, n<br />
ull, null);<br />
                        ^<br />
PrintPdf.java:118: cannot find symbol<br />
symbol  : class PDFRenderer<br />
location: class PDFPrintPage<br />
                        PDFRenderer pgs = new PDFRenderer(page, g2, imageArea, n<br />
ull, null);<br />
                                              ^<br />
10 errors</p>
<p>Please suggest me to resolve this.</p>
<p>Thanks in Advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terin</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-1036</link>
		<dc:creator><![CDATA[Terin]]></dc:creator>
		<pubDate>Thu, 26 May 2011 13:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-1036</guid>
		<description><![CDATA[I could not find the pdfrenderer.jar file on the java.net website..Can u pls sent it to me]]></description>
		<content:encoded><![CDATA[<p>I could not find the pdfrenderer.jar file on the java.net website..Can u pls sent it to me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjeevi</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-996</link>
		<dc:creator><![CDATA[Sanjeevi]]></dc:creator>
		<pubDate>Thu, 03 Feb 2011 11:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-996</guid>
		<description><![CDATA[Hi venkat,

I tried your code, but it is throwing exception, and the file is created with partial text.
I am posting the generated exception here.

com.sun.pdfview.PDFParseException: Encode required for function type 3!
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported shader type: 3
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported shader type: 3
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported shader type: 3
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported shader type: 3
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported shader type: 3
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported shader type: 3
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1
        at java.awt.image.ColorModel.(ColorModel.java:318)
        at java.awt.image.ComponentColorModel.(ComponentColorModel.java:256)
        at com.sun.pdfview.PDFImage$DecodeComponentColorModel.(PDFImage.java:564)
        at com.sun.pdfview.PDFImage.getColorModel(PDFImage.java:529)
        at com.sun.pdfview.PDFImage.parseData(PDFImage.java:270)
        at com.sun.pdfview.PDFImage.getImage(PDFImage.java:225)
        at com.sun.pdfview.PDFRenderer.drawImage(PDFRenderer.java:273)
        at com.sun.pdfview.PDFImageCmd.execute(PDFPage.java:643)
        at com.sun.pdfview.PDFRenderer.iterate(PDFRenderer.java:570)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at PDFPrintPage.print(NewClass.java:42)
        at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1936)
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431)
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1247)
        at PrintPdf.print(PrintPdf.java:99)
        at PrintPdf.main(PrintPdf.java:40)
java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1
        at java.awt.image.ColorModel.(ColorModel.java:318)
        at java.awt.image.ComponentColorModel.(ComponentColorModel.java:256)
        at com.sun.pdfview.PDFImage$DecodeComponentColorModel.(PDFImage.java:564)
        at com.sun.pdfview.PDFImage.getColorModel(PDFImage.java:529)
        at com.sun.pdfview.PDFImage.parseData(PDFImage.java:270)
        at com.sun.pdfview.PDFImage.getImage(PDFImage.java:225)
        at com.sun.pdfview.PDFRenderer.drawImage(PDFRenderer.java:273)
        at com.sun.pdfview.PDFImageCmd.execute(PDFPage.java:643)
        at com.sun.pdfview.PDFRenderer.iterate(PDFRenderer.java:570)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at PDFPrintPage.print(NewClass.java:42)
        at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1964)
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431)
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1247)
        at PrintPdf.print(PrintPdf.java:99)
        at PrintPdf.main(PrintPdf.java:40)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Encode required for function type 3!
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Encode required for function type 3!
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Unsupported function type 4.
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)
com.sun.pdfview.PDFParseException: Encode required for function type 3!
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
        at java.lang.Thread.run(Thread.java:662)

Thanks,
Sanjeevi]]></description>
		<content:encoded><![CDATA[<p>Hi venkat,</p>
<p>I tried your code, but it is throwing exception, and the file is created with partial text.<br />
I am posting the generated exception here.</p>
<p>com.sun.pdfview.PDFParseException: Encode required for function type 3!<br />
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported shader type: 3<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported shader type: 3<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported shader type: 3<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported shader type: 3<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported shader type: 3<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported shader type: 3<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:135)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1<br />
        at java.awt.image.ColorModel.(ColorModel.java:318)<br />
        at java.awt.image.ComponentColorModel.(ComponentColorModel.java:256)<br />
        at com.sun.pdfview.PDFImage$DecodeComponentColorModel.(PDFImage.java:564)<br />
        at com.sun.pdfview.PDFImage.getColorModel(PDFImage.java:529)<br />
        at com.sun.pdfview.PDFImage.parseData(PDFImage.java:270)<br />
        at com.sun.pdfview.PDFImage.getImage(PDFImage.java:225)<br />
        at com.sun.pdfview.PDFRenderer.drawImage(PDFRenderer.java:273)<br />
        at com.sun.pdfview.PDFImageCmd.execute(PDFPage.java:643)<br />
        at com.sun.pdfview.PDFRenderer.iterate(PDFRenderer.java:570)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at PDFPrintPage.print(NewClass.java:42)<br />
        at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1936)<br />
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431)<br />
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1247)<br />
        at PrintPdf.print(PrintPdf.java:99)<br />
        at PrintPdf.main(PrintPdf.java:40)<br />
java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1<br />
        at java.awt.image.ColorModel.(ColorModel.java:318)<br />
        at java.awt.image.ComponentColorModel.(ComponentColorModel.java:256)<br />
        at com.sun.pdfview.PDFImage$DecodeComponentColorModel.(PDFImage.java:564)<br />
        at com.sun.pdfview.PDFImage.getColorModel(PDFImage.java:529)<br />
        at com.sun.pdfview.PDFImage.parseData(PDFImage.java:270)<br />
        at com.sun.pdfview.PDFImage.getImage(PDFImage.java:225)<br />
        at com.sun.pdfview.PDFRenderer.drawImage(PDFRenderer.java:273)<br />
        at com.sun.pdfview.PDFImageCmd.execute(PDFPage.java:643)<br />
        at com.sun.pdfview.PDFRenderer.iterate(PDFRenderer.java:570)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at PDFPrintPage.print(NewClass.java:42)<br />
        at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1964)<br />
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431)<br />
        at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1247)<br />
        at PrintPdf.print(PrintPdf.java:99)<br />
        at PrintPdf.main(PrintPdf.java:40)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Encode required for function type 3!<br />
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Encode required for function type 3!<br />
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Unsupported function type 4.<br />
        at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:175)<br />
        at com.sun.pdfview.PDFParser.parseColorSpace(PDFParser.java:1229)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:648)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)<br />
com.sun.pdfview.PDFParseException: Encode required for function type 3!<br />
        at com.sun.pdfview.function.FunctionType3.parse(FunctionType3.java:139)<br />
        at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)<br />
        at com.sun.pdfview.pattern.ShaderType2.parse(ShaderType2.java:109)<br />
        at com.sun.pdfview.pattern.PDFShader.getShader(PDFShader.java:173)<br />
        at com.sun.pdfview.PDFParser.doShader(PDFParser.java:1151)<br />
        at com.sun.pdfview.PDFParser.iterate(PDFParser.java:640)<br />
        at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)<br />
        at java.lang.Thread.run(Thread.java:662)</p>
<p>Thanks,<br />
Sanjeevi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-986</link>
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Thu, 20 Jan 2011 12:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-986</guid>
		<description><![CDATA[@Praveen: did you get it working on your AS400 ? I am trying to do sometinhg similar but unfortunately the call to PrinterJob.lookupPrintServices() is giving me an empty list. With IBM supplied classes I can get a list of 55 available printers. So why is the lookup empty?]]></description>
		<content:encoded><![CDATA[<p>@Praveen: did you get it working on your AS400 ? I am trying to do sometinhg similar but unfortunately the call to PrinterJob.lookupPrintServices() is giving me an empty list. With IBM supplied classes I can get a list of 55 available printers. So why is the lookup empty?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghu</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-950</link>
		<dc:creator><![CDATA[Raghu]]></dc:creator>
		<pubDate>Tue, 07 Dec 2010 22:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-950</guid>
		<description><![CDATA[Hi Venkat,

Great posting. Thank you very much.

I have integrated PDFRender API and your code, PrintPdf via the a servlet called PDFRendererServlet. I made a small change on the PrintPdf file to display the print dialog by the line pjob.printDialog() on the browser.

I am running tomcat (6.x) as the app server. I use eclipse ide installed on macbook pro. When I run the server and test locally it works fine (say, http://localhost:8080/pdfWeb/PDFRendererServlet).

While the server is running on the macbook, and test the print capability via a IE from the windows XP desktop computer (which is in network), I see the print dialog box on the macbook rather than on the windows XP desktop computer.

Appreciate if you could help me out what am I doing wrong or any other fix or code modifications needed.

Raghu]]></description>
		<content:encoded><![CDATA[<p>Hi Venkat,</p>
<p>Great posting. Thank you very much.</p>
<p>I have integrated PDFRender API and your code, PrintPdf via the a servlet called PDFRendererServlet. I made a small change on the PrintPdf file to display the print dialog by the line pjob.printDialog() on the browser.</p>
<p>I am running tomcat (6.x) as the app server. I use eclipse ide installed on macbook pro. When I run the server and test locally it works fine (say, <a href="http://localhost:8080/pdfWeb/PDFRendererServlet" rel="nofollow">http://localhost:8080/pdfWeb/PDFRendererServlet</a>).</p>
<p>While the server is running on the macbook, and test the print capability via a IE from the windows XP desktop computer (which is in network), I see the print dialog box on the macbook rather than on the windows XP desktop computer.</p>
<p>Appreciate if you could help me out what am I doing wrong or any other fix or code modifications needed.</p>
<p>Raghu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravie</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-827</link>
		<dc:creator><![CDATA[Ravie]]></dc:creator>
		<pubDate>Thu, 26 Aug 2010 11:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-827</guid>
		<description><![CDATA[HI....

as your code is too much useful to me but still I&#039;m confused with a problem..
In this code u r using below line to select a default printer.
pjob = PrinterJob.getPrinterJob();

Instead I want to use any printer which is selected by me(using combo).

and to do that I&#039;ve used setPrintService(PrintService[i]); method of PrinterJob class. But it gives me NullPointerException. So what could be the solution to this one???

pls reply its urgent...]]></description>
		<content:encoded><![CDATA[<p>HI&#8230;.</p>
<p>as your code is too much useful to me but still I&#8217;m confused with a problem..<br />
In this code u r using below line to select a default printer.<br />
pjob = PrinterJob.getPrinterJob();</p>
<p>Instead I want to use any printer which is selected by me(using combo).</p>
<p>and to do that I&#8217;ve used setPrintService(PrintService[i]); method of PrinterJob class. But it gives me NullPointerException. So what could be the solution to this one???</p>
<p>pls reply its urgent&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whofeih</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-797</link>
		<dc:creator><![CDATA[Whofeih]]></dc:creator>
		<pubDate>Mon, 17 May 2010 03:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-797</guid>
		<description><![CDATA[It did not work when i tried it. Upon running my application, it asks me where to save the TIFF file. That&#039;s weird. Please help me. Thanks!]]></description>
		<content:encoded><![CDATA[<p>It did not work when i tried it. Upon running my application, it asks me where to save the TIFF file. That&#8217;s weird. Please help me. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asishthat</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-784</link>
		<dc:creator><![CDATA[Asishthat]]></dc:creator>
		<pubDate>Wed, 07 Apr 2010 01:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-784</guid>
		<description><![CDATA[While the code is very useful yet there is no way of knowing when the printer is offline, Paper ran out, printer not connected. How do we make them a part of this so that we can handle the exceptions. It seems that once we  send the document it hands it over and doesn&#039;t return the exception. The Printer Icon on system tray shows error to Cancel printing.

Any Ideas]]></description>
		<content:encoded><![CDATA[<p>While the code is very useful yet there is no way of knowing when the printer is offline, Paper ran out, printer not connected. How do we make them a part of this so that we can handle the exceptions. It seems that once we  send the document it hands it over and doesn&#8217;t return the exception. The Printer Icon on system tray shows error to Cancel printing.</p>
<p>Any Ideas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lamartini</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-746</link>
		<dc:creator><![CDATA[lamartini]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 19:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-746</guid>
		<description><![CDATA[https://pdf-renderer.dev.java.net/servlets/ProjectForumMessageView?forumID=2969&amp;messageID=31058  OOOhhps here is the link.]]></description>
		<content:encoded><![CDATA[<p><a href="https://pdf-renderer.dev.java.net/servlets/ProjectForumMessageView?forumID=2969&#038;messageID=31058" rel="nofollow">https://pdf-renderer.dev.java.net/servlets/ProjectForumMessageView?forumID=2969&#038;messageID=31058</a>  OOOhhps here is the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lamartini</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-745</link>
		<dc:creator><![CDATA[lamartini]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 19:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-745</guid>
		<description><![CDATA[I try to print a pdf file programatically and get Xref error also as did madhavi.. The website link I provided shows a patch..   but Its not working for me..  If someone uses the patch and gets it working please post how you got it to work..]]></description>
		<content:encoded><![CDATA[<p>I try to print a pdf file programatically and get Xref error also as did madhavi.. The website link I provided shows a patch..   but Its not working for me..  If someone uses the patch and gets it working please post how you got it to work..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike A</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-743</link>
		<dc:creator><![CDATA[Mike A]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-743</guid>
		<description><![CDATA[@mike smith:  as coded, it uses the default printer, which in your case appears to be the &quot;Microsoft XPS document writer&quot;  change your default printer and try it again.]]></description>
		<content:encoded><![CDATA[<p>@mike smith:  as coded, it uses the default printer, which in your case appears to be the &#8220;Microsoft XPS document writer&#8221;  change your default printer and try it again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Hatfield</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-742</link>
		<dc:creator><![CDATA[Brian Hatfield]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-742</guid>
		<description><![CDATA[I need to print PDF files on a local JES2 printer. DO you know if that is possible?]]></description>
		<content:encoded><![CDATA[<p>I need to print PDF files on a local JES2 printer. DO you know if that is possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike smith</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-734</link>
		<dc:creator><![CDATA[mike smith]]></dc:creator>
		<pubDate>Wed, 10 Feb 2010 07:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-734</guid>
		<description><![CDATA[I am trying to implement your solution as per your code. 

when running your code, I get a &quot;saveAs&quot; dialog appearing for me to save a document of type .xps

I am presuming the image is created from reading the pdf file and before printing it wants me to rename this before printing is activated.

My Question is, where in your code can I automate this so that:
1) I do not have to physically name the new image file
2) It stores the new file directly in a certain directly which I can then delete after printing is finished.

I need this because my requirement is that I print a hundred of so pdfs at a time, so I need to automate this in my webserver.

Your assistance is greatly appreicated.
Thanks]]></description>
		<content:encoded><![CDATA[<p>I am trying to implement your solution as per your code. </p>
<p>when running your code, I get a &#8220;saveAs&#8221; dialog appearing for me to save a document of type .xps</p>
<p>I am presuming the image is created from reading the pdf file and before printing it wants me to rename this before printing is activated.</p>
<p>My Question is, where in your code can I automate this so that:<br />
1) I do not have to physically name the new image file<br />
2) It stores the new file directly in a certain directly which I can then delete after printing is finished.</p>
<p>I need this because my requirement is that I print a hundred of so pdfs at a time, so I need to automate this in my webserver.</p>
<p>Your assistance is greatly appreicated.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: markee</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-720</link>
		<dc:creator><![CDATA[markee]]></dc:creator>
		<pubDate>Tue, 05 Jan 2010 09:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-720</guid>
		<description><![CDATA[Problem is in the PDF rendering of PDF-renderer which is not complete, not the printing]]></description>
		<content:encoded><![CDATA[<p>Problem is in the PDF rendering of PDF-renderer which is not complete, not the printing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-703</link>
		<dc:creator><![CDATA[Krishna]]></dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-703</guid>
		<description><![CDATA[Please download PDFRenderer.jar and use below code it will work for PDF Printing.


import java.awt.print.Book;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;

import javax.print.PrintException;

import com.sun.pdfview.PDFFile;
import com.sun.pdfview.PDFPrintPage;
public class PDFPrinter {
	
	public static void main(String[] args){
		
		try{
		File f = new File(&quot;C:\\CareLink\\WPS\\WID_naming_conventions.pdf&quot;); 
		FileInputStream fis = new FileInputStream(f); 
		FileChannel fc = fis.getChannel(); 
		ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); 
		PDFFile pdfFile = new PDFFile(bb); // Create PDF Print Page 
		PDFPrintPage pages = new PDFPrintPage(pdfFile); 
		
		 
		// Create Print Job 
		PrinterJob pjob = PrinterJob.getPrinterJob(); 
		PageFormat pf = PrinterJob.getPrinterJob().defaultPage(); 
		pjob.setJobName(f.getName()); 
		Book book = new Book(); 
		book.append(pages, pf, pdfFile.getNumPages()); 
		pjob.setPageable(book); 
		
		 
		// Send print job to default printer 
		pjob.print();
		System.out.print(&quot;done&quot;);
		}catch(PrinterException exe){
			
		}catch(IOException e){
			
		}
	}

}]]></description>
		<content:encoded><![CDATA[<p>Please download PDFRenderer.jar and use below code it will work for PDF Printing.</p>
<p>import java.awt.print.Book;<br />
import java.awt.print.PageFormat;<br />
import java.awt.print.Printable;<br />
import java.awt.print.PrinterException;<br />
import java.awt.print.PrinterJob;<br />
import java.io.*;<br />
import java.nio.ByteBuffer;<br />
import java.nio.channels.FileChannel;</p>
<p>import javax.print.PrintException;</p>
<p>import com.sun.pdfview.PDFFile;<br />
import com.sun.pdfview.PDFPrintPage;<br />
public class PDFPrinter {</p>
<p>	public static void main(String[] args){</p>
<p>		try{<br />
		File f = new File(&#8220;C:\\CareLink\\WPS\\WID_naming_conventions.pdf&#8221;);<br />
		FileInputStream fis = new FileInputStream(f);<br />
		FileChannel fc = fis.getChannel();<br />
		ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());<br />
		PDFFile pdfFile = new PDFFile(bb); // Create PDF Print Page<br />
		PDFPrintPage pages = new PDFPrintPage(pdfFile); </p>
<p>		// Create Print Job<br />
		PrinterJob pjob = PrinterJob.getPrinterJob();<br />
		PageFormat pf = PrinterJob.getPrinterJob().defaultPage();<br />
		pjob.setJobName(f.getName());<br />
		Book book = new Book();<br />
		book.append(pages, pf, pdfFile.getNumPages());<br />
		pjob.setPageable(book); </p>
<p>		// Send print job to default printer<br />
		pjob.print();<br />
		System.out.print(&#8220;done&#8221;);<br />
		}catch(PrinterException exe){</p>
<p>		}catch(IOException e){</p>
<p>		}<br />
	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkat</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-700</link>
		<dc:creator><![CDATA[Venkat]]></dc:creator>
		<pubDate>Mon, 02 Nov 2009 17:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-700</guid>
		<description><![CDATA[Sorry guys, I have no clue about this error. Try posting the issue into https://pdf-renderer.dev.java.net/ if you don&#039;t get response there my advice is look for commercial software.

I am planning to buy a commercial API for printing PDF because PDF spec and format will keep change expecting a open source to serve Adobe spec is not feasible.]]></description>
		<content:encoded><![CDATA[<p>Sorry guys, I have no clue about this error. Try posting the issue into <a href="https://pdf-renderer.dev.java.net/" rel="nofollow">https://pdf-renderer.dev.java.net/</a> if you don&#8217;t get response there my advice is look for commercial software.</p>
<p>I am planning to buy a commercial API for printing PDF because PDF spec and format will keep change expecting a open source to serve Adobe spec is not feasible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhavi</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-699</link>
		<dc:creator><![CDATA[Madhavi]]></dc:creator>
		<pubDate>Mon, 02 Nov 2009 13:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-699</guid>
		<description><![CDATA[Hii Venkat,

Thanks for sharing your work..I have taken your files and tried in Java 1.5 and PDF 6..
I m getting the following error: 

com.sun.pdfview.PDFParseException: Expected &#039;xref&#039; at start of table
	at com.sun.pdfview.PDFFile.readTrailer(PDFFile.java:974)
	at com.sun.pdfview.PDFFile.parseFile(PDFFile.java:1175)
	at com.sun.pdfview.PDFFile.(PDFFile.java:126)
	at com.sun.pdfview.PDFFile.(PDFFile.java:102)

Can u please help me in solving this issue?

Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hii Venkat,</p>
<p>Thanks for sharing your work..I have taken your files and tried in Java 1.5 and PDF 6..<br />
I m getting the following error: </p>
<p>com.sun.pdfview.PDFParseException: Expected &#8216;xref&#8217; at start of table<br />
	at com.sun.pdfview.PDFFile.readTrailer(PDFFile.java:974)<br />
	at com.sun.pdfview.PDFFile.parseFile(PDFFile.java:1175)<br />
	at com.sun.pdfview.PDFFile.(PDFFile.java:126)<br />
	at com.sun.pdfview.PDFFile.(PDFFile.java:102)</p>
<p>Can u please help me in solving this issue?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-698</link>
		<dc:creator><![CDATA[Adam]]></dc:creator>
		<pubDate>Sun, 01 Nov 2009 19:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-698</guid>
		<description><![CDATA[I can&#039;t get it to print correctly. Whether my in my own program or in the example program, printing portrait stuff always shrinks the page and prints it in the top left corner (its like 45% the size.)  Regardless of the PDF I print (datasheets or ones I created with PDFlatex or itext) results are the same.  same results on linux and XP as well.

The code is exactly from the example program (the example program does the same thing as mentioned above.)
Any help would be appreciated.]]></description>
		<content:encoded><![CDATA[<p>I can&#8217;t get it to print correctly. Whether my in my own program or in the example program, printing portrait stuff always shrinks the page and prints it in the top left corner (its like 45% the size.)  Regardless of the PDF I print (datasheets or ones I created with PDFlatex or itext) results are the same.  same results on linux and XP as well.</p>
<p>The code is exactly from the example program (the example program does the same thing as mentioned above.)<br />
Any help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlon Alves</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-696</link>
		<dc:creator><![CDATA[Marlon Alves]]></dc:creator>
		<pubDate>Wed, 28 Oct 2009 19:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-696</guid>
		<description><![CDATA[Great post!!!!!!!!!!

Thanks...]]></description>
		<content:encoded><![CDATA[<p>Great post!!!!!!!!!!</p>
<p>Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajashekar</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-692</link>
		<dc:creator><![CDATA[Rajashekar]]></dc:creator>
		<pubDate>Fri, 23 Oct 2009 13:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-692</guid>
		<description><![CDATA[Wow! thanks a lot venkat.....

That was really my bad...anyways thanks for the much needed help...]]></description>
		<content:encoded><![CDATA[<p>Wow! thanks a lot venkat&#8230;..</p>
<p>That was really my bad&#8230;anyways thanks for the much needed help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkat</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-691</link>
		<dc:creator><![CDATA[Venkat]]></dc:creator>
		<pubDate>Fri, 23 Oct 2009 12:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-691</guid>
		<description><![CDATA[the pdf.jar contains java classes not .class files. Hope this info helps you.]]></description>
		<content:encoded><![CDATA[<p>the pdf.jar contains java classes not .class files. Hope this info helps you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajashekar</title>
		<link>http://webmoli.com/2008/11/03/java-print-pdf/#comment-689</link>
		<dc:creator><![CDATA[Rajashekar]]></dc:creator>
		<pubDate>Fri, 23 Oct 2009 10:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=192#comment-689</guid>
		<description><![CDATA[Hi Venkat,

Thanks for sharing the jar file....but i do have a problem.

I copied the same PrintPdf.java that you have provided and i added the pdf.jar to my library and configured in PlugIn.xml file also.

am not able to clear the errors that is being shown in the the import statements that are present in the PrintPdf.java.

import com.sun.pdfview.PDFFile;
import com.sun.pdfview.PDFPage;
import com.sun.pdfview.PDFRenderer;

The files PDFFile.java, PDFPage.java and PDFRenderer.java are not visible. 
Even the sub-packages that are present in the pdfview package like: action, colospace are visible but again the classess inside these sub-packages are also not visible, an not able to import those java files too.

am struck as to where is the problem.....please guide me in resolving these errors.....

looking forward for you reply at the earliest....

Thanks in Advance....]]></description>
		<content:encoded><![CDATA[<p>Hi Venkat,</p>
<p>Thanks for sharing the jar file&#8230;.but i do have a problem.</p>
<p>I copied the same PrintPdf.java that you have provided and i added the pdf.jar to my library and configured in PlugIn.xml file also.</p>
<p>am not able to clear the errors that is being shown in the the import statements that are present in the PrintPdf.java.</p>
<p>import com.sun.pdfview.PDFFile;<br />
import com.sun.pdfview.PDFPage;<br />
import com.sun.pdfview.PDFRenderer;</p>
<p>The files PDFFile.java, PDFPage.java and PDFRenderer.java are not visible.<br />
Even the sub-packages that are present in the pdfview package like: action, colospace are visible but again the classess inside these sub-packages are also not visible, an not able to import those java files too.</p>
<p>am struck as to where is the problem&#8230;..please guide me in resolving these errors&#8230;..</p>
<p>looking forward for you reply at the earliest&#8230;.</p>
<p>Thanks in Advance&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

