RE: Whether Chinese Characters / Unicode supported by FOP ?

2005-02-14 Thread Manisha Sathe
I am trying to set it up MS Song Font now

1)I installed mssong font on my machine (mssong.ttf)
2)Opend dos command prompt 

d:\fop-0.20.5 java -cp build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar; lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfcm.xml

But i am getting following error

Exception in Thread "main" java.lang.NoClassDefFoundError lib/xercesImpl-2/2/1/jar;lib\xalan-2/4/1/jar


I do not know how the name of jar files aregetting changed. What am i missing ?

regards
Manisha




		Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search. Learn more.

sample codes

2005-02-14 Thread jeb501
Hi All,

Where can I find sample codes for creating Invoice like forms using XSL-FO

Regards
Eugene

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sample codes

2005-02-14 Thread IndianAtTech
Your first step

http://www.sys-con.com/xml/article.cfm?id=493


On Mon, 14 Feb 2005 09:48:41 +0530, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi All,
 
 Where can I find sample codes for creating Invoice like forms using XSL-FO
 
 Regards
 Eugene
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sample codes

2005-02-14 Thread IndianAtTech
http://www.cranesoftwrights.com/


On Mon, 14 Feb 2005 12:42:36 +0530, IndianAtTech [EMAIL PROTECTED] wrote:
 Your first step
 
 http://www.sys-con.com/xml/article.cfm?id=493
 
 
 On Mon, 14 Feb 2005 09:48:41 +0530, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Hi All,
 
  Where can I find sample codes for creating Invoice like forms using XSL-FO
 
  Regards
  Eugene
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Whether Chinese Characters / Unicode supported by FOP ?

2005-02-14 Thread Manisha Sathe
1)Finally i could resolve the problem. It was a class path set up problem. I set the classpath separately and then run 
d:\fop-0.20.5org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfmssong.xml

At least it did not give me error and create ttfmssong.xml file.

2)Later opened fopBaseDir/conf/config.xml and added inside it

 font metrics-file="D:\fop-0.20.5\ttfmssong.xml" embed-file="C:\WINNT\Fonts\mssong.ttf" kerning="yes" font-triplet name="MSSong" style="normal" weight="normal"/ font-triplet name="MSSong" style="normal" weight="bold"/ font-triplet name="MSSong" style="italic" weight="normal"/ font-triplet name="MSSong" style="italic" weight="bold"/ /font
3)Inside my .xsl file i am using MSSong font but still i am getting 
unknown font MSSong,normal,normal so defined defaulted font


Pls Pls help me, i really need that font to display Chinese characters. 


Thanks in advance
Manisha





Manisha Sathe [EMAIL PROTECTED] wrote:

I am trying to set it up MS Song Font now

1)I installed mssong font on my machine (mssong.ttf)
2)Opend dos command prompt 

d:\fop-0.20.5 java -cp build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar; lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfcm.xml

But i am getting following error

Exception in Thread "main" java.lang.NoClassDefFoundError lib/xercesImpl-2/2/1/jar;lib\xalan-2/4/1/jar


I do not know how the name of jar files aregetting changed. What am i missing ?

regards
Manisha






Do you Yahoo!?Yahoo! Mail - Find what you need with new enhanced search. Learn more.
		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Re: Whether Chinese Characters / Unicode supported by FOP ?

2005-02-14 Thread Jeremias Maerki
There's a space in the classpath you need to remove.

On 14.02.2005 02:33:38 Manisha Sathe wrote:
 I am trying to set it up MS Song Font now
  
 1)I installed mssong font on my machine (mssong.ttf)
 2)Opend dos command prompt 
  
 d:\fop-0.20.5 java -cp 
 build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar; 
 lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar 
 org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfcm.xml


   ^^


 But i am getting following error
  
 Exception in Thread main java.lang.NoClassDefFoundError 
 lib/xercesImpl-2/2/1/jar;lib\xalan-2/4/1/jar
  
  
 I do not know how the name of jar files are getting changed. What am i 
 missing ?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Solved: RE: Whether Chinese Characters / Unicode supported by FOP ?

2005-02-14 Thread Manisha Sathe
Initially i tried to changed userconfig.xml (as mentioned in documentation http://xml.apache.org/fop/configuration.html ) But goterror so also triedchanging config.xml. 

The thing i was missing was 

fop -c userconfig.xml ...

This part- path -i was specifying wrongly - but finally i got it correctly

Thanks to all who helped in my all previousposts. At last i could create one proper pdf document in English / Chinese. Of-course i am testing it through command line prompt. Now will beshifting it to Struts,

regards
Manisha




Manisha Sathe [EMAIL PROTECTED] wrote:

1)Finally i could resolve the problem. It was a class path set up problem. I set the classpath separately and then run 
d:\fop-0.20.5org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfmssong.xml

At least it did not give me error and create ttfmssong.xml file.

2)Later opened fopBaseDir/conf/config.xml and added inside it

 font metrics-file="D:\fop-0.20.5\ttfmssong.xml" embed-file="C:\WINNT\Fonts\mssong.ttf" kerning="yes" font-triplet name="MSSong" style="normal" weight="normal"/ font-triplet name="MSSong" style="normal" weight="bold"/ font-triplet name="MSSong" style="italic" weight="normal"/ font-triplet name="MSSong" style="italic" weight="bold"/ /font
3)Inside my .xsl file i am using MSSong font but still i am getting 
unknown font MSSong,normal,normal so defined defaulted font


Pls Pls help me, i really need that font to display Chinese characters. 


Thanks in advance
Manisha





Manisha Sathe [EMAIL PROTECTED] wrote:

I am trying to set it up MS Song Font now

1)I installed mssong font on my machine (mssong.ttf)
2)Opend dos command prompt 

d:\fop-0.20.5 java -cp build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar; lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\mssong.ttf ttfcm.xml

But i am getting following error

Exception in Thread "main" java.lang.NoClassDefFoundError lib/xercesImpl-2/2/1/jar;lib\xalan-2/4/1/jar


I do not know how the name of jar files aregetting changed. What am i missing ?

regards
Manisha






Do you Yahoo!?Yahoo! Mail - Find what you need with new enhanced search. Learn more.


Do you Yahoo!?Yahoo! Search presents - Jib Jab's 'Second Term'
		Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.

Printing using FOP

2005-02-14 Thread Hassan Mushtaq
Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing using FOP

2005-02-14 Thread Manoj_Nair
You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

org.apache.fop.apps.XSLTInputHandler input =
new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

PrinterJob pj = new PrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
Driver driver = new Driver();
driver.setLogger (log);
driver.setRenderer (renderer);
driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




   
  Hassan Mushtaq  
   
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]   
  
  hg.com  cc:  
   
   Subject:  Printing using FOP 
   
  02/14/2005 10:58  
   
  AM
   
  Please respond to 
   
  fop-user  
   

   

   




Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Printing using FOP

2005-02-14 Thread Hassan Mushtaq
Hi Manoj,
 Thanks for taking interest. PrintRenderer in FOP 0.20.5 (latest) is
an abstract class. And I did see the solution you mentioned was suggested by
someone else in mailing archives, and he/she was saying it worked for them.
So I can not help but speculating that previous versions of FOP perhaps did
not have PrintRenderer as abstract class? Thanks.

Hassan Mushtaq


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing using FOP


You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

org.apache.fop.apps.XSLTInputHandler input =
new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

PrinterJob pj = new PrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
Driver driver = new Driver();
driver.setLogger (log);
driver.setRenderer (renderer);
driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  Printing using FOP
  02/14/2005 10:58
  AM
  Please respond to
  fop-user






Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Printing using FOP

2005-02-14 Thread Manoj_Nair
Thats possible ! This setup has worked for me...





   
  Hassan Mushtaq  
   
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]   
  
  hg.com  cc:  
   
   Subject:  RE: Printing using FOP 
   
  02/14/2005 11:43  
   
  AM
   
  Please respond to 
   
  fop-user  
   

   

   




Hi Manoj,
 Thanks for taking interest. PrintRenderer in FOP 0.20.5 (latest)
is
an abstract class. And I did see the solution you mentioned was suggested
by
someone else in mailing archives, and he/she was saying it worked for them.
So I can not help but speculating that previous versions of FOP perhaps did
not have PrintRenderer as abstract class? Thanks.

Hassan Mushtaq


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing using FOP


You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

org.apache.fop.apps.XSLTInputHandler input =
new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

PrinterJob pj = new PrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
Driver driver = new Driver();
driver.setLogger (log);
driver.setRenderer (renderer);
driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  Printing using FOP
  02/14/2005 10:58
  AM
  Please respond to
  fop-user






Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Printing using FOP

2005-02-14 Thread Hassan Mushtaq
Hi Manoj, what version of FOP you are using? Thanks.

Hassan Mushtaq



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Printing using FOP


Thats possible ! This setup has worked for me...





  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  RE: Printing using
FOP
  02/14/2005 11:43
  AM
  Please respond to
  fop-user






Hi Manoj,
 Thanks for taking interest. PrintRenderer in FOP 0.20.5 (latest)
is
an abstract class. And I did see the solution you mentioned was suggested
by
someone else in mailing archives, and he/she was saying it worked for them.
So I can not help but speculating that previous versions of FOP perhaps did
not have PrintRenderer as abstract class? Thanks.

Hassan Mushtaq


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing using FOP


You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

org.apache.fop.apps.XSLTInputHandler input =
new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

PrinterJob pj = new PrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
Driver driver = new Driver();
driver.setLogger (log);
driver.setRenderer (renderer);
driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  Printing using FOP
  02/14/2005 10:58
  AM
  Please respond to
  fop-user






Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Printing using FOP

2005-02-14 Thread Manoj_Nair
FOP 0.20.5




   
  Hassan Mushtaq  
   
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]   
  
  hg.com  cc:  
   
   Subject:  RE: Printing using FOP 
   
  02/14/2005 12:00  
   
  PM
   
  Please respond to 
   
  fop-user  
   

   

   




Hi Manoj, what version of FOP you are using? Thanks.

Hassan Mushtaq



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Printing using FOP


Thats possible ! This setup has worked for me...





  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  RE: Printing using
FOP
  02/14/2005 11:43
  AM
  Please respond to
  fop-user






Hi Manoj,
 Thanks for taking interest. PrintRenderer in FOP 0.20.5 (latest)
is
an abstract class. And I did see the solution you mentioned was suggested
by
someone else in mailing archives, and he/she was saying it worked for them.
So I can not help but speculating that previous versions of FOP perhaps did
not have PrintRenderer as abstract class? Thanks.

Hassan Mushtaq


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing using FOP


You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

org.apache.fop.apps.XSLTInputHandler input =
new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

PrinterJob pj = new PrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
Driver driver = new Driver();
driver.setLogger (log);
driver.setRenderer (renderer);
driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  Printing using FOP
  02/14/2005 10:58
  AM
  Please respond to
  fop-user






Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








RE: Printing using FOP

2005-02-14 Thread Sascha Schmidt
Hello.

Have a look at source code of class org.apache.fop.apps.PrintStarter. It
should give you a good start point.

Sascha
 
NORTHBIT
Sascha Schmidt
[EMAIL PROTECTED] 
www.northbit.de

-Original Message-
From: Hassan Mushtaq [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 14, 2005 7:58 PM
To: [EMAIL PROTECTED]
Subject: Printing using FOP

Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Version from CVS building...

2005-02-14 Thread J.Pietschmann
Tommy Reynolds wrote:
The current
tool generates the error:
	[ERROR] file:/tmp/xmlto.HY6297/ldd-en.proc:4316:-1 The id 
	id3094608 already exists in this document

and I take that to be a duplicate auto-generated id since none of
mine look like that.
It's a bug related to retrying layout of certain content, usually
related to keeps, table footers or perhaps spanning blocks or
footnotes in a multi-column layout.
Unfortunately, standard stylesheets like the DocBook XSLT tend
to generate a lot of IDs (and other stuff) which are likely to be
unnecessary in your particular situation but keep triggering the
infamous duplicate ID bug. You might try adaptive post-hoc filtering,
or track down the source of this particular ID and check whether
you can patch the style sheet in order to avoid generating it.
The CVS head still hasn't keeps, footnotes, multi-column layout
and proper table footer layout and will probably choke on a lot
of features the current DocBook style sheets generate. OTOH
there's a better block layout and a nearly compliant vertical
alignment in lines...
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Printing using FOP

2005-02-14 Thread Hassan Mushtaq
Hi Manoj, hmm, this is interesting, I am using same version, yet
PrintRenderer is abstract. Can you tell me what classes you imported to make
this code work. May be I am importing wrong classes. Thanks.

Hassan Mushtaq



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 2:02 PM
To: [EMAIL PROTECTED]
Subject: RE: Printing using FOP


FOP 0.20.5




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  RE: Printing using
FOP
  02/14/2005 12:00
  PM
  Please respond to
  fop-user






Hi Manoj, what version of FOP you are using? Thanks.

Hassan Mushtaq



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Printing using FOP


Thats possible ! This setup has worked for me...





  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  RE: Printing using
FOP
  02/14/2005 11:43
  AM
  Please respond to
  fop-user






Hi Manoj,
 Thanks for taking interest. PrintRenderer in FOP 0.20.5 (latest)
is
an abstract class. And I did see the solution you mentioned was suggested
by
someone else in mailing archives, and he/she was saying it worked for them.
So I can not help but speculating that previous versions of FOP perhaps did
not have PrintRenderer as abstract class? Thanks.

Hassan Mushtaq


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing using FOP


You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

org.apache.fop.apps.XSLTInputHandler input =
new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

PrinterJob pj = new PrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
Driver driver = new Driver();
driver.setLogger (log);
driver.setRenderer (renderer);
driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  Printing using FOP
  02/14/2005 10:58
  AM
  Please respond to
  fop-user






Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Printing using FOP

2005-02-14 Thread Manoj_Nair




I am using this class as a subclass inside an applet class

import org.apache.fop.render.awt.*;

public class PrintApplet extends JApplet
{


class PrintRenderer extends AWTRenderer {

  }
}

Does this make sense?

Thanks
Manoj





   
  Hassan Mushtaq  
   
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]   
  
  hg.com  cc:  
   
   Subject:  RE: Printing using FOP 
   
  02/14/2005 01:53  
   
  PM
   
  Please respond to 
   
  fop-user  
   

   

   




Hi Manoj, hmm, this is interesting, I am using same version, yet
PrintRenderer is abstract. Can you tell me what classes you imported to
make
this code work. May be I am importing wrong classes. Thanks.

Hassan Mushtaq



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 2:02 PM
To: [EMAIL PROTECTED]
Subject: RE: Printing using FOP


FOP 0.20.5




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  RE: Printing using
FOP
  02/14/2005 12:00
  PM
  Please respond to
  fop-user






Hi Manoj, what version of FOP you are using? Thanks.

Hassan Mushtaq



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Printing using FOP


Thats possible ! This setup has worked for me...





  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  RE: Printing using
FOP
  02/14/2005 11:43
  AM
  Please respond to
  fop-user






Hi Manoj,
 Thanks for taking interest. PrintRenderer in FOP 0.20.5 (latest)
is
an abstract class. And I did see the solution you mentioned was suggested
by
someone else in mailing archives, and he/she was saying it worked for them.
So I can not help but speculating that previous versions of FOP perhaps did
not have PrintRenderer as abstract class? Thanks.

Hassan Mushtaq


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing using FOP


You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

org.apache.fop.apps.XSLTInputHandler input =
new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

PrinterJob pj = new PrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
Driver driver = new Driver();
driver.setLogger (log);
driver.setRenderer (renderer);
driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




  Hassan Mushtaq
  [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
  hg.com  cc:
   Subject:  Printing using FOP
  02/14/2005 10:58
  AM
  Please respond to
  fop-user






Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem