Re: xml, xsl = html

2005-03-10 Thread Manisha Sathe
Thanks to all who responded, one last query, whether this will give me very proper printable format ? (i assume that client's pagesettings can be kept to a constant ? )

regards
ManishaTommy Reynolds [EMAIL PROTECTED] wrote:
Uttered [EMAIL PROTECTED], spake thus: Is this enough or do you need the complete file?That's fine, I get the idea.Thanks!
		Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses.

Re: xml, xsl = html

2005-03-10 Thread Manisha Sathe
Thanks Loius,

Do u mind sending me complete file ? I am totally new in this area.

regards
Manisha[EMAIL PROTECTED] wrote:
A snippet of a very simple XSL that produces HTML is inlined below:xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:fo="http://www.w3.org/1999/XSL/Format"




Is this enough or do you need the complete file?-Lou~~LOG-NET, Inc.The Logistics Network Management System~~230 Half Mile RoadThird FloorRed Bank, NJ 07701PH: 732-758-6800FAX: 732-747-7497http://www.LOG-NET.com~~CONFIDENTIAL  PRIVILEGEDUnless otherwise indicated or if obvious from the nature of the content,the information contained herein is privileged and confidentialinformation/work product. The communication is intended for the use of theindividual or entity named above. If the reader of this transmission isnot the intended recipient, you are hereby notified that anydissemination, distribution or copying of this communication is
 strictlyprohibited. If you have received this communication in error, pleasenotify the sender immediately by telephone (732-758-6800) or by electronicmail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper orotherwise, which you may have of this communication. Thank you.~~Tommy Reynolds <[EMAIL PROTECTED] aCoder.com cc: Subject: Re: xml, xsl = html 03/09/2005 09:16 Please respond to fop-user Uttered "Arun Sinha" <[EMAIL PROTECTED]>, spake thus: You can achieve it without using fop. Simply outout the tags html in your xsl. Link your xsl to xml and call the XML directly in browser.Do you have a short example? I'd love to see it.Cheers(See attached file: attg4xc7.dat)-To
 unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 

xml unicode problem

2005-03-10 Thread Manisha Sathe
I amon MSSQL 2K. The field i am using to store chinese character is defiles as 

chinesename nvarchar(50)

Using jsp file (meta tag set to UTF-8) to display form. User fill up the form and submit it. At backend i run servlet andinsert into table.When i insert the value i use statements like 

insertvalue (N'..'). 

When i view it using Enterprise Manager, i see some weird characters.Butstill when i use jsp file to retrive all data back,it shows on screen all correct. 

But the problem comes when i use these database values and create XML file. In XML file created i see the sameas what i see in Enterprise Manager. So PDF rendered also is showing same weird chars.

I know MSSQL uses UCS2 but i am specifying UTF-8 for my jsp ? Any clues on this pls ? How i can have my XML file properly created ?

regards
Manisha




		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 

xml, xsl = html

2005-03-09 Thread Manisha Sathe
Currently i amusing xml / xsl and generating pdf file. Is there any way to generate html file from xml and xsl ?

Whether this html can have proper printable format ?

regards
Manisha
		Celebrate Yahoo!'s 10th Birthday!  
Yahoo! Netrospective: 100 Moments of the Web 

Re: Out of Memory problem

2005-02-28 Thread Manisha Sathe
I tried to increase memory of JVM through Tomcat - but not much change. I believe the way i am using my procedure (creating objects) that might be wrong.

Below is some statistics (logger is displaying) when i am trying to render the PDF with 1 page / 2 pages / 3 pages etc
 1 page report 2 pages report 3 pages report
Initial Heap size ~ 12M 14M 10M
Current Heap size ~ 64M 10M 9M
Total memory used~ 52M 4M -1M

If i try for 4 pages report then i get OutOfMemory Error. Once i get this error then even sometimes iget errors for 2 pages / 3pages report too. Total memory used always go in -ve later.

I am attaching my procedure below which i use to render the pdf
--
//Following method is used to render PDFpublic synchronized void renderPDF (...) throws Exception { ... get xsl file path 
 get xml 
 org.apache.fop.image.FopImageFactory.resetCache(); //get the user config file for pdf Arial unicode font File userConfigFile = new File(cnffilepath); Options options = new org.apache.fop.apps.Options(userConfigFile);
 TraxInputHandler xsltinput = new TraxInputHandler(new File(xmlpath), new File(xslpath));ByteArrayOutputStream outputPDFBuffer = new ByteArrayOutputStream();Driver driver = new Driver(); driver.setLogger(new org.apache.avalon.framework.logger.Log4JLogger(logger) );driver.setRenderer(Driver.RENDER_PDF);driver.setOutputStream(outputPDFBuffer);xsltinput.run(driver);FileOutputStream pdfDoc = new FileOutputStream(pdfpath);pdfDoc.write(outputPDFBuffer.toByteArray(), 0, outputPDFBuffer.size());pdfDoc.flush();pdfDoc.close();}//renderPDF-

regards
Manisha


Chris Bowditch [EMAIL PROTECTED] wrote:

Manisha Sathe wrote: Thanks Chris,  Would appreciate if u can explain more how shall i increase memory in my  case -  I am on Tomcat server and using servlet to render the fop. I am not  using fop.bat file, Which script starts my JVM - really speaking i also  do not know.Well I havent used Tomcat, but I know it will be started by a shell script or batch file. You will need to find it and add the parameter -Xmx256M to the call to java. Ask on a tomcat specific list, this is getting somewhat off topic for FOP/XSL-FO.Chris__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Out of Memory problem

2005-02-28 Thread Manisha Sathe

i am generating xml file on fly. Giving one sample of xml. Pls ignore chinese characters (copied any dummy things inside), Iam usingArial Unicode MS font. 

regards
ManishaAshish [EMAIL PROTECTED] wrote:




Can you send your xml and xsl file ?


Ashish


- Original Message - 
From: Manisha Sathe 
To: [EMAIL PROTECTED] 
Sent: 28 February, 2005 09:32
Subject: Re: Out of Memory problem

I tried to increase memory of JVM through Tomcat - but not much change. I believe the way i am using my procedure (creating objects) that might be wrong.

Below is some statistics (logger is displaying) when i am trying to render the PDF with 1 page / 2 pages / 3 pages etc
 1 page report 2 pages report 3 pages report
Initial Heap size ~ 12M 14M 10M
Current Heap size ~ 64M 10M 9M
Total memory used~ 52M 4M -1M

If i try for 4 pages report then i get OutOfMemory Error. Once i get this error then even sometimes iget errors for 2 pages / 3pages report too. Total memory used always go in -ve later.

I am attaching my procedure below which i use to render the pdf
--
//Following method is used to render PDFpublic synchronized void renderPDF (...) throws Exception { ... get xsl file path 
 get xml 
 org.apache.fop.image.FopImageFactory.resetCache(); //get the user config file for pdf Arial unicode font File userConfigFile = new File(cnffilepath); Options options = new org.apache.fop.apps.Options(userConfigFile);
 TraxInputHandler xsltinput = new TraxInputHandler(new File(xmlpath), new File(xslpath));ByteArrayOutputStream outputPDFBuffer = new ByteArrayOutputStream();Driver driver = new Driver(); driver.setLogger(new org.apache.avalon.framework.logger.Log4JLogger(logger) );driver.setRenderer(Driver.RENDER_PDF);driver.setOutputStream(outputPDFBuffer);xsltinput.run(driver);FileOutputStream pdfDoc = new FileOutputStream(pdfpath);pdfDoc.write(outputPDFBuffer.toByteArray(), 0, outputPDFBuffer.size());pdfDoc.flush();pdfDoc.close();}//renderPDF-

regards
Manisha


Chris Bowditch [EMAIL PROTECTED] wrote:

Manisha Sathe wrote: Thanks Chris,  Would appreciate if u can explain more how shall i increase memory in my  case -  I am on Tomcat server and using servlet to render the fop. I am not  using fop.bat file, Which script starts my JVM - really speaking i also  do not know.Well I havent used Tomcat, but I know it will be started by a shell script or batch file. You will need to find it and add the parameter -Xmx256M to the call to java. Ask on a tomcat specific list, this is getting somewhat off topic for FOP/XSL-FO.Chris
__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 
		Do you Yahoo!? 
Yahoo! Sports -  
Sign up for Fantasy Baseball.?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 
	xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
	xmlns:fo=http://www.w3.org/1999/XSL/Format;

xsl:template match=Advertisement
	fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
		fo:layout-master-set
			fo:simple-page-master master-name=advertisement
page-height=29.7cm 
page-width=22cm
margin-top=2cm 
margin-bottom=2cm 
margin-left=2.0cm 
margin-right=2.0cm
fo:region-body margin-top=0cm/
fo:region-before extent=0cm/
fo:region-after extent=1cm/
			/fo:simple-page-master
		/fo:layout-master-set
  		xsl:apply-templates select=AdvertPage/
	/fo:root
/xsl:template

xsl:template match=AdvertPage
  fo:page-sequence master-reference=advertisement
   fo:flow flow-name=xsl-region-body			

	fo:table table-layout=fixed	 
	  fo:table-column column-width=18cm /
		fo:table-body
		  fo:table-row		
		fo:table-cell display-align=center  background-color=rgb(0, 0, 0) border-collapse=collapse 
border-style=solid border-width=thick
			fo:block text-align=center color=rgb(256, 256, 256) fo:external-graphic 
src=url('file:D:\jakarta-tomcat-5.0.25\webapps\sbcs\jsps\images\advert_ch_hdr.jpg')//fo:block
		/fo:table-cell
		  /fo:table-row
		/fo:table-body
	/fo:table
	fo:table table-layout=fixed	 
	 fo:table-column column-width=5cm /		
	 fo:table-column column-width=4cm /
	 fo:table-column column-width=4cm /
	 fo:table-column column-width=5cm /
		fo:table-body
		  fo:table-row height=1cm
		fo:table-cell display-align=center border-collapse=collapse 
border-style=solid border-width=thick
			fo:block text-align=centerfo:inline font-family=arialuni#32852;#36187;/fo:inline/fo:block
		/fo:table-cell
		fo:table-cell  display-align=center border-collapse=collapse 
border-style=solid border-width=thick
			fo:block text-align=centerfo:inline font-family=arialuni#20027;#38431;/fo:inline/fo:block
		/fo:table-cell
		fo:table-cell display-align=center border-collapse=collapse 
border-style=solid border-width=thick	
			fo:block text-align=centerfo:inline font-family=arialuni#23458;#38431

Re: Out of Memory problem

2005-02-25 Thread Manisha Sathe
Thanks Chris,

Would appreciate ifu can explain more how shall i increase memory in my case -

I am on Tomcat server andusing servlet to render the fop. I am not using fop.bat file, Which script starts my JVM - really speaking i also do not know. 

My servlet.jar / fop.jar and related files are inside /WEB-INF/lib directory. I am compiling all files thr ant (all class path is set in CLASSPATH)

How can i increase memoryso as to get correct font and pdf in my case?

regards
Manisha


Chris Bowditch [EMAIL PROTECTED] wrote:
Manisha Sathe wrote: I am trying for one Chinese PDF. When i do not make use of Arial Unicode  MS font then i do not get this error. All chinese characters are  displayed as #. Once i use this font then i get this error (even if it  is just 2-3 pages long - sometimes at very beginning i get the 1 page  report - after that even not that)  I tried the the things mentined such as reduce the size of image, page  sequence (do not know how to increase the JVM memory on fly) - also  reset the Cache etc what ever given in docs, but still same.To increase JVM memory, just change your FOP.bat or whatever script starts your Java VM and specify command line parameter -Xmx256M. The default is 64Mb, which isnt sufficient due to the large number of glyphs in The Arial Unicode font.Chris-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Out of Memory problem

2005-02-24 Thread Manisha Sathe
I am trying for one Chinese PDF. When i do not make use of Arial Unicode MS font then i do not get this error. All chinese characters are displayed as #. Once i use thisfont then i get this error (even if it is just 2-3 pages long - sometimes at very beginning i get the 1 page report - after that even not that)

I tried the the things mentined such as reduce the size of image, page sequence (do not know how to increase the JVM memory on fly) - also reset the Cache etc what ever given in docs, but still same.

The report is all full with chinese characters. On logger i do not see anything but on jsp page i getjava lang out of memory error. 

Is there any thing else which i can do here ?

regards
Manisha__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Getting huge no of errors

2005-02-18 Thread Manisha Sathe
oh yes! my xsl file does not start like this and this is a problem in my xsl. Thanks J.Pietschmann for pointing this out.

Try use a JAXP directly as Jeremias hinted, and be sure tonot override the usual default of not validating the XSLTfor the stylesheet parser.

can u explain a bit more - rather steps for this ? how can i achieve this ? Although now i am getting the things properly still i would prefer to know about this.

regards
Manisha

"J.Pietschmann" [EMAIL PROTECTED] wrote:

Manisha Sathe wrote: I tried yr xml and xsl and i am not getting any error. Now i will check  my xml/xsl exactly where i am going wrong but that's my job.our style shett probably starts with a DOCTYPE declaration,probably for declaring entities like nbsp:

]Try use a JAXP directly as Jeremias hinted, and be sure tonot override the usual default of not validating the XSLTfor the stylesheet parser. If this doesn't help, checkyour JDK version and upgrade if necessary, and check yourclasspath and endorsed directories for undesirable XML parserlibraries (there was a Crimson release, rather long ago, whichvalidated on encountering a DOCTYPE with an internal subseteven if not told to validate)You can also expand any entity declared in the DOCTYPE inthe stylesheet, and get rid of the DOCTYPE decl completely.J.Pietschmann-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone.

Escape problem ?

2005-02-17 Thread Manisha Sathe
I am generatingXML - which is having some unicodes and these r writen as 

amp;#x2206; (for #x2206; )

When irender pdf using xslit does not show me actual unicode character but shows me #x2206. I tried using disable-output-escaping="yes" inside xsl but no use. 

How can i get proper display in pdf ?

regards
Manisha


		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Re: Getting huge no of errors

2005-02-17 Thread Manisha Sathe
Thanks Jeremias,

I will try that out too. I am not getting warnings but 

[Error] advertformat.xsl:7:37 Element type "xsl:stylesheet" must be declared
. like this for all tags inside xsl like fo:table, fo:row ... etc.

i think as u mentioned am i passing wrong xsl file ? Would u mind passing me simplest xsl / xml files so that i can check with that. 

regards
ManishaJeremias Maerki [EMAIL PROTECTED] wrote:
I've never seen this but I guess they are warnings from a validating XMLparser. Maybe you have a Schema declaration in your stylesheet orsomething like that. Maybe you should rewrite the servlet to use a moreJAXP-like approach as described here:http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ExampleXML2PDF.java?hideattic=1rev=1.1.2.2>I don't know if this will help but you will have greater control overhow the XSLT process is done.Good luck.On 16.02.2005 10:02:25 Manisha Sathe wrote: Till now i was trying fop through command line. I was passing xml and xsl file and getting pdf file. So far so good. Now i changed it to servlet. Using example servlet provided but i am getting huge number of errors. (although i am getting the o/p)  
 -  TraxInputHandler input = new TraxInputHandler(new File(xmlParam), new File(xslParam)); ByteArrayOutputStream out = new ByteArrayOutputStream(); Driver driver = new Driver(); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); input.run(driver); ,.  later i write it to pdf file.   But i get Errors like  [Error] advertformat.xsl:7:37 Element type "xsl:stylesheet" must be declared [Error] advertformat.xsl:8:37 Element type "xsl:template" must be declared [Error] advertformat.xsl:10:37 Element type "fo:table" must be declared [Error] advertformat.xsl:17:37 Element type "fo:table-row" must be declared [Error] advertformat.xsl:17:37 Element type "fo:table-cell" must be declared  .  ..   Like this
 for all tags it is giving me error. I am getting my pdf file properly but i am not understanding why this is happenning then ?Jeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search. Learn more.

Re: Getting huge no of errors

2005-02-17 Thread Manisha Sathe
Hi Jeremias Maerki,

A BigThanksto u,

I tried yr xml and xsl and i am not getting any error. Now i will check my xml/xsl exactly where i am going wrong butthat's my job. 

Thanks once again

regards
Manisha

Jeremias Maerki [EMAIL PROTECTED] wrote:
Here you areOn 17.02.2005 09:47:36 Manisha Sathe wrote: i think as u mentioned am i passing wrong xsl file ? Would u mind passing me simplest xsl / xml files so that i can check with that. Jeremias Maerki ATTACHMENT part 2 application/octet-stream name=Ticket.xml ATTACHMENT part 3 application/octet-stream name=xml2fo.xslt-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Re: Dynamic parameter settings

2005-02-16 Thread Manisha Sathe
thanks! it did the trick

regards
ManishaJeremias Maerki [EMAIL PROTECTED] wrote:
This is an XSLT question, not really FOP-related, but try:orOn 15.02.2005 10:29:53 Manisha Sathe wrote: In XML file itself i have a value which i need to use for row span.  I know i can get the value with Also i can set the row span with     But what i want is set "RowSpan" value from xml inside "number-rows-spanned"  I tried many different ways but unable to get thr, any idea ?Jeremias
 Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

XSLT Forum

2005-02-16 Thread Manisha Sathe
Any good XSLT forum where i can post my xslt related queries there ?

regards
Manisha


		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Re: [OT] XSLT question

2005-02-16 Thread Manisha Sathe
Yes, i subscribe it but whenever i am posting any query it's giving me failure notice. 
i amposting it here incase anybody knows:

I am using xml / xsl to create pdf. I want to do page break at the end of AdvertPage tag. What i am doing is   xsl:template match="AdvertPage" fo:table table-layout="fixed"  fo:table-column column-width="18cm" /..display of other info.fo:block break-before='page' keep-with-previous='auto' / /xsl:template


		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Getting huge no of errors

2005-02-16 Thread Manisha Sathe
Till now i was trying fop through command line. I was passing xml and xsl file and getting pdf file. So far so good. Now i changed it to servlet. Using example servlet provided but i am getting huge number of errors. (although i am getting the o/p) 

-

 TraxInputHandler input = new TraxInputHandler(new File(xmlParam), new File(xslParam));
 ByteArrayOutputStream out = new ByteArrayOutputStream();
  Driver driver = new Driver(); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); input.run(driver);
,.

later i write it to pdf file. 

But i get Errors like

[Error] advertformat.xsl:7:37 Element type "xsl:stylesheet" must be declared

[Error] advertformat.xsl:8:37 Element type "xsl:template" must be declared
[Error] advertformat.xsl:10:37 Element type "fo:table" must be declared
[Error] advertformat.xsl:17:37 Element type "fo:table-row" must be declared

[Error] advertformat.xsl:17:37 Element type "fo:table-cell" must be declared
.

..
Like this for all tags it is giving me error. I am getting my pdf file properly but i am not understanding why this is happenning then ?

regards
Manisha




		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Seeking for expert opinion

2005-02-15 Thread Manisha Sathe
Initially i tested creating pdf using static xml/xsl file using following dos prompt cmd- 

fop -xml myxml.xml -xsl myxsl.xsl -pdf mydoc.pdf
Now i want to generatexml/pdf on fly. User will specify search criteria - depending on that i will pick up data from database.I want to generate xml from this data and useit to create pdf file. 

What is normal practice to do this?

1)I am not too sure about how to create XML- whether use SAX/DOM or just type it out asastring data
2)e.g If i generate XML o/pas astring- whether can i make use of this XML String to generate pdf ? Ori need to write this in a file ?

Pls guide me, ifanybody can sharesamplewhich shows creation of XML and generatepdf from that - would be a greate help.

regards
Manisha



		Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone.

Dynamic parameter settings

2005-02-15 Thread Manisha Sathe
In XML file itself i have a value which i need to use forrow span.

I know i can get the value with 

xsl:value-of select="RowSpan"/

Also i can set the row span with 

fo:table-cell number-rows-spanned="2"

But what i want is set "RowSpan" value from xml inside "number-rows-spanned"

I tried many different waysbut unable to get thr, any idea ?

regards
Manisha

		Do you Yahoo!? 
The all-new My Yahoo! – What will yours do?

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.

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'

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.

Whether Chinese Characters / Unicode supported by FOP ?

2005-02-11 Thread Manisha Sathe
What i am doing is - taking data from database - put inside XML and then create PDF from that. 

I also need to print chinese characters. I tried first with some unicode (HTML equivalent) 
#29699;#36187;#32534;#21495;

But i am not getting this in PDF, what's the solution for this ?

regards
Manisha

		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Sorry: Re: Whether Chinese Characters / Unicode supported by FOP ?

2005-02-11 Thread Manisha Sathe
Sorry, wrong post

answer was givenin my last post

regards
ManishaManisha Sathe [EMAIL PROTECTED] wrote:

What i am doing is - taking data from database - put inside XML and then create PDF from that. 

I also need to print chinese characters. I tried first with some unicode (HTML equivalent) 
#29699;#36187;#32534;#21495;

But i am not getting this in PDF, what's the solution for this ?

regards
Manisha



Do you Yahoo!?Yahoo! Search presents - Jib Jab's 'Second Term'
		Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we.

valign query

2005-02-11 Thread Manisha Sathe
I am having a table with some cells (with border) but all text inside my table aligns to the top - i.e. comes verynear to border. I want the text to be vertically alignedat center 

How can i achieve it?

regards
Manisha
		Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less.

Re: Whether Chinese Characters / Unicode supported by FOP ?

2005-02-11 Thread Manisha Sathe
Hi all,

i want to display some chinese characters. I am tryingfollowing unicodes. These get display in HTML properly. But in pdf i do not get these characters. 

#29699;#36187;#32534;#21495;

I tried many different fonts but still the same. Which font shall i make use off ?

regards
Manisha



Manisha Sathe [EMAIL PROTECTED] wrote:

Sorry, wrong post

answer was givenin my last post

regards
ManishaManisha Sathe [EMAIL PROTECTED] wrote:

What i am doing is - taking data from database - put inside XML and then create PDF from that. 

I also need to print chinese characters. I tried first with some unicode (HTML equivalent) 
#29699;#36187;#32534;#21495;

But i am not getting this in PDF, what's the solution for this ?

regards
Manisha



Do you Yahoo!?Yahoo! Search presents - Jib Jab's 'Second Term'


Do you Yahoo!?Yahoo! Mail - You care about security. So do we.
		Do you Yahoo!? 
Meet the all-new My Yahoo! – Try it today! 

RE: valign query

2005-02-11 Thread Manisha Sathe
Oh! Thanks Arun, it works,

regards,
ManishaArun Sinha [EMAIL PROTECTED] wrote:
Hi Manisha,You need to use display-align.Cheers.ArunFrom: Manisha Sathe <[EMAIL PROTECTED]>Reply-To: [EMAIL PROTECTED]To: [EMAIL PROTECTED]Subject: valign queryDate: Thu, 10 Feb 2005 22:01:15 -0800 (PST)I am having a table with some cells (with border) but all text inside my table aligns to the top - i.e. comes very near to border. I want the text to be vertically aligned at centerHow can i achieve it?regardsManisha-Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less._Manage information better. Optimise your tasks.
 http://www.microsoft.com/india/office/experience/ Experience MS Office System.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

Re: Whether Chinese Characters / Unicode supported by FOP ?

2005-02-11 Thread Manisha Sathe
hmm..

it's giving me 'unknown font' for both. is there any way for it ? Whether it means that on my m/c need to have these fonts ?

regards
ManishaArun Sinha [EMAIL PROTECTED] wrote:
Hi,Try setting font family to "MS Hei" or "MS Song".Cheers.ArunFrom: Manisha Sathe <[EMAIL PROTECTED]>Reply-To: [EMAIL PROTECTED]To: [EMAIL PROTECTED]Subject: Re: Whether Chinese Characters / Unicode supported by FOP ?Date: Thu, 10 Feb 2005 22:43:25 -0800 (PST)Hi all,i want to display some chinese characters. I am trying following unicodes. These get display in HTML properly. But in pdf i do not get these characters.ÇòÈü±àºÅI tried many different fonts but still the same. Which font shall i make use off ?regardsManishaManisha Sathe <[EMAIL PROTECTED]>wrote:Sorry, wrong postanswer was given in my last
 postregardsManishaManisha Sathe <[EMAIL PROTECTED]>wrote:What i am doing is - taking data from database - put inside XML and then create PDF from that.I also need to print chinese characters. I tried first with some unicode (HTML equivalent)ÇòÈü±àºÅBut i am not getting this in PDF, what's the solution for this ?regardsManisha-Do you Yahoo!?Yahoo! Search presents - Jib Jab's 'Second Term'-Do you Yahoo!?Yahoo! Mail - You care about security. So do we.-Do you Yahoo!? Meet the all-new My Yahoo! ¨C Try it today!_The real power of teamwork. Experience it in real time.
 http://www.microsoft.com/india/office/experience/ Experience MS Office System.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

RE: Want to know the normal practice

2005-02-08 Thread Manisha Sathe
1) I am just trying with one sample xml and xls (got from web). 
2) Using FopServlet (came with fop- from servlet example)
3) But continuously getting NullPointer Exception at following 

driver.render(input.getParser(), input.getInputSource());

I am attaching the xml and xsl for the info

XML File - data.xml
-
?xml version="1.0" encoding="UTF-8"?CatalogueBook TitleMastering EJB/Title AuthorEd Roman/Author Price$45.00/Price/BookBook TitleDesign Patterns/Title AuthorErich Gamma/Author Price$50.00/Price/BookBook TitleEffective Java/Title AuthorJosch Bloch/Author Price$30.00/Price/Book/Catalogue--


XSL File - format.xsl
---

?xml version="1.0" encoding="UTF-8"?xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:java="java" exclude-result-prefixes="fo"xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/!-- = --!-- root element: Catalogue --!-- = --xsl:template match="Catalog"fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
fo:layout-master-set!-- (1. Define the page margins) --fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm"fo:region-body//fo:simple-page-master/fo:layout-master-set!-- (2. For the page layout refer to the master layout)--fo:page-sequence master-reference="simpleA4"fo:flow flow-name="xsl-region-body"fo:block font-size="16pt" font-weight="bold" space-after="5mm"Catalog Information/fo:block!-- (3. Defining the block with table definition to display data --
fo:block font-size="10pt"fo:table table-layout="fixed"fo:table-column column-width="8cm"/fo:table-column column-width="8cm"/fo:table-column column-width="8cm"/fo:table-bodyxsl:apply-templates//fo:table-body/fo:table/fo:block/fo:flow/fo:page-sequence/fo:root/xsl:template!-- = --!-- Book
 Information --!-- = --xsl:template match="Book" fo:table-rowfo:table-cellfo:block xsl:value-of select="Title"//fo:block/fo:table-cellfo:table-cellfo:block  xsl:value-of select="Author"//fo:block/fo:table-cell fo:table-cellfo:block  xsl:value-of
 select="Price"//fo:block/fo:table-cell/fo:table-row/xsl:template/xsl:stylesheet
---------

Pls tell mewhat am i missing now ? If possible whether anybody can provide me the sample xml / xsl files so that i can test it out ?

regards
Manisha

Arun Sinha [EMAIL PROTECTED] wrote:
Hi Manisha,Once you have your XML, you can directly use :-fop -xml myxml.xml -xsl myxsl.xsl -pdf mydoc.pdfHope the above helps.Cheers.ArunFrom: Manisha Sathe <[EMAIL PROTECTED]>Reply-To: [EMAIL PROTECTED]To: [EMAIL PROTECTED]Subject: Want to know the normal practiceDate: Sun, 6 Feb 2005 23:14:52 -0800 (PST)I need to pull some data from database and want to show it inside pdf in a tabular form. What is the best way to do it ?1)First create XML and convert it to FO2)Take FO and convert it into PDFIs there any other direct way ? My environment is java / JSP / Struts framework with MSSQL as backend. Is there any example for FOP with Database ?btw, the examples given seems to be using
 deprecated methods, where can i find latest examples ? (using j2sdk 1.4.2_03)regardsManisha-Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'_MSN Spaces! Your space, your time. http://www.msn.co.in/spaces Your personal haven online.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

RE: Want to know the normal practice

2005-02-08 Thread Manisha Sathe
btw i also tried from command line

fop -xml data.xml -xsl format.xsl -pdf mydoc.pdf

I am getting following

[INFO] using SAX2 Parser
[INFO]FOP 0.20.5

[INFO] using SAX2 Parser[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] java.lang.NullPointerException

So same thing for both, pls any body has working xml/xsl sample so that at least i start with that ?

regards
Manisha

Manisha Sathe [EMAIL PROTECTED] wrote:

1) I am just trying with one sample xml and xls (got from web). 
2) Using FopServlet (came with fop- from servlet example)
3) But continuously getting NullPointer Exception at following 

driver.render(input.getParser(), input.getInputSource());

I am attaching the xml and xsl for the info

XML File - data.xml
-
?xml version="1.0" encoding="UTF-8"?CatalogueBook TitleMastering EJB/Title AuthorEd Roman/Author Price$45.00/Price/BookBook TitleDesign Patterns/Title AuthorErich Gamma/Author Price$50.00/Price/BookBook TitleEffective Java/Title AuthorJosch Bloch/Author Price$30.00/Price/Book/Catalogue--


XSL File - format.xsl
---

?xml version="1.0" encoding="UTF-8"?xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:java="java" exclude-result-prefixes="fo"xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/!-- = --!-- root element: Catalogue --!-- = --xsl:template match="Catalog"fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
fo:layout-master-set!-- (1. Define the page margins) --fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm"fo:region-body//fo:simple-page-master/fo:layout-master-set!-- (2. For the page layout refer to the master layout)--fo:page-sequence master-reference="simpleA4"fo:flow flow-name="xsl-region-body"fo:block font-size="16pt" font-weight="bold" space-after="5mm"Catalog Information/fo:block!-- (3. Defining the block with table definition to display data --
fo:block font-size="10pt"fo:table table-layout="fixed"fo:table-column column-width="8cm"/fo:table-column column-width="8cm"/fo:table-column column-width="8cm"/fo:table-bodyxsl:apply-templates//fo:table-body/fo:table/fo:block/fo:flow/fo:page-sequence/fo:root/xsl:template!-- = --!-- Book
 Information --!-- = --xsl:template match="Book" fo:table-rowfo:table-cellfo:block xsl:value-of select="Title"//fo:block/fo:table-cellfo:table-cellfo:block  xsl:value-of select="Author"//fo:block/fo:table-cell fo:table-cellfo:block  xsl:value-of
 select="Price"//fo:block/fo:table-cell/fo:table-row/xsl:template/xsl:stylesheet
---------

Pls tell mewhat am i missing now ? If possible whether anybody can provide me the sample xml / xsl files so that i can test it out ?

regards
Manisha

Arun Sinha [EMAIL PROTECTED] wrote:
Hi Manisha,Once you have your XML, you can directly use :-fop -xml myxml.xml -xsl myxsl.xsl -pdf mydoc.pdfHope the above helps.Cheers.ArunFrom: Manisha Sathe <[EMAIL PROTECTED]>Reply-To: [EMAIL PROTECTED]To: [EMAIL PROTECTED]Subject: Want to know the normal practiceDate: Sun, 6 Feb 2005 23:14:52 -0800 (PST)I need to pull some data from database and want to show it inside pdf in a tabular form. What is the best way to do it ?1)First create XML and convert it to FO2)Take FO and convert it into PDFIs there any other direct way ? My environment is java / JSP / Struts framework with MSSQL as backend. Is there any example for FOP with Database ?btw, the examples given seems to be using
 deprecated methods, where can i find latest examples ? (using j2sdk 1.4.2_03)regardsManisha-Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'_MSN Spaces! Your space, your time. http://www.msn.co.in/spaces Your personal haven online.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?Yahoo! Search presents - Jib Jab's 'Second Term'
		Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard.

Want to see paginated report

2005-02-08 Thread Manisha Sathe
Hi all,

Finally today i could run my first fop program and could create PDF from XML/XSL. 
I want to generate some reports in PDF format. Icanpick up the data from database and generatein XML format. But what i need is 

1)Paginated o/p - let's say after every 10 records new page. 
2)Each page will have some standard headers / footers which contains images
3)I also want to print inside header some values givenfor search criterialikefrom date and to date.

First of all is it possible and if yes any tutorial / sample available ?

regards
Manisha

__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

totally new to FOP -Please help me

2005-02-07 Thread Manisha Sathe
I am very new to fop - just started learningit. 

1)I downloaded the fop - 0.20.5 - binary version for windows (.zip)
2)Unzipped it (D:\fop-0.20.5)
3)Trying to run D:\fop-0.20.5\fop.bat - i geto/p as mentioned in the document
http://apache.oss.eznetsols.org/xml/fop/
4)but at the end of itigot error -

[ERROR] No Input file specified

What's missing ? JAVA_HOME is set properly. 

5)I also tried to compile one servlet (which i got it from web) -iput inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors
--
import org.apache.fop.apps.Driver;import org.apache.fop.apps.XSLTInputHandler;import org.apache.fop.render.Renderer;import org.apache.avalon.framework.logger.Logger;import org.apache.avalon.framework.logger.ConsoleLogger;
import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.Transformer;import javax.xml.transform.TransformerFactory;import java.io.IOException;import java.io.ByteArrayOutputStream;import java.util.logging.Level;
public class FOPServlet extends HttpServlet{ private String xmlFile = "data.xml"; private String xslFile = "pdfGen.xsl";
 protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponsehttpServletResponse) throws ServletException, IOException { // set up a FOP driver Driver driver = new Driver(); // set up the logger for the driver Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger);
 try { //set the renderer to be PDF driver.setRenderer(Driver.RENDER_PDF);
 //create the input from the XSLT transform XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
 // now prepare the outputStrean ByteArrayOutputStream outStream = new ByteArrayOutputStream();
 //set the driver outputStream driver.setOutputStream(outStream);
 //do the XSLT driver.render(inputHandler.getParser(), inputHandler.getInputSource());
 //now that the content is written in the output stream, //get ready to send the response back to browser byte[] content = outStream.toByteArray(); httpServletResponse.setContentLength(content.length); // set the MIME-TYPE httpServletResponse.setContentType("application/pdf"); //write the content httpServletResponse.getOutputStream().write(content);
 httpServletResponse.getOutputStream().flush();
 } catch (Exception e) { e.printStackTrace(); }
 }
}


I am getting following:

D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: package org.apache.fop.apps does not existimport org.apache.fop.apps.Driver; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: package org.apache.fop.apps does not existimport org.apache.fop.apps.XSLTInputHandler; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: package org.apache.fop.render does not existimport
 org.apache.fop.render.Renderer; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.Logger; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: package org.apache.avalon.framework.logger does not existimport
 org.apache.avalon.framework.logger.ConsoleLogger; ^

Please can anybody give me clue about it ? What am i doing wrong ?

regards
Manisha



		Do you Yahoo!? 
Meet the all-new My Yahoo! – Try it today! 

Re: totally new to FOP -Please help me

2005-02-07 Thread Manisha Sathe
hi all,

1) no 5 i could sort it out - some silly mistake in my classpath settings. but no 4 is as it is

regards
Manisha
Manisha Sathe [EMAIL PROTECTED] wrote:

I am very new to fop - just started learningit. 

1)I downloaded the fop - 0.20.5 - binary version for windows (.zip)
2)Unzipped it (D:\fop-0.20.5)
3)Trying to run D:\fop-0.20.5\fop.bat - i geto/p as mentioned in the document
http://apache.oss.eznetsols.org/xml/fop/
4)but at the end of itigot error -

[ERROR] No Input file specified

What's missing ? JAVA_HOME is set properly. 

5)I also tried to compile one servlet (which i got it from web) -iput inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors
--
import org.apache.fop.apps.Driver;import org.apache.fop.apps.XSLTInputHandler;import org.apache.fop.render.Renderer;import org.apache.avalon.framework.logger.Logger;import org.apache.avalon.framework.logger.ConsoleLogger;
import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.Transformer;import javax.xml.transform.TransformerFactory;import java.io.IOException;import java.io.ByteArrayOutputStream;import java.util.logging.Level;
public class FOPServlet extends HttpServlet{ private String xmlFile = "data.xml"; private String xslFile = "pdfGen.xsl";
 protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponsehttpServletResponse) throws ServletException, IOException { // set up a FOP driver Driver driver = new Driver(); // set up the logger for the driver Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger);
 try { //set the renderer to be PDF driver.setRenderer(Driver.RENDER_PDF);
 //create the input from the XSLT transform XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
 // now prepare the outputStrean ByteArrayOutputStream outStream = new ByteArrayOutputStream();
 //set the driver outputStream driver.setOutputStream(outStream);
 //do the XSLT driver.render(inputHandler.getParser(), inputHandler.getInputSource());
 //now that the content is written in the output stream, //get ready to send the response back to browser byte[] content = outStream.toByteArray(); httpServletResponse.setContentLength(content.length); // set the MIME-TYPE httpServletResponse.setContentType("application/pdf"); //write the content httpServletResponse.getOutputStream().write(content);
 httpServletResponse.getOutputStream().flush();
 } catch (Exception e) { e.printStackTrace(); }
 }
}


I am getting following:

D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: package org.apache.fop.apps does not existimport org.apache.fop.apps.Driver; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: package org.apache.fop.apps does not existimport org.apache.fop.apps.XSLTInputHandler; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: package org.apache.fop.render does not existimport
 org.apache.fop.render.Renderer; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.Logger; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: package org.apache.avalon.framework.logger does not existimport
 org.apache.avalon.framework.logger.ConsoleLogger; ^

Please can anybody give me clue about it ? What am i doing wrong ?

regards
Manisha





Do you Yahoo!?Meet the all-new My Yahoo! – Try it today! 
		Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard.

Want to know the normal practice

2005-02-07 Thread Manisha Sathe
I need to pull some data from database and want to show it inside pdf in a tabular form. What is the best way to do it ?

1)First create XML and convert it to FO
2)Take FO and convert it into PDF 

Is there any other direct way ? My environment is java / JSP / Struts frameworkwith MSSQL as backend. Is there any examplefor FOPwith Database ?

btw, the examples given seems to be using deprecated methods, where can i find latest examples ? (using j2sdk 1.4.2_03)

regards
Manisha





		Do you Yahoo!? 
Yahoo! Search presents - Jib Jab's 'Second Term'

RE: New babie question

2004-12-18 Thread Manisha Sathe
Thanks a lot, i will try it now,
regards
Manisha

		Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.

New babie question

2004-12-17 Thread Manisha Sathe
I am havingHTML page with tables / images etcwhich i want to convert into PDF file as it is. 

Is there any direct way to convert it using FOP ? 

regards
Manisha


		Do you Yahoo!? 
Send a seasonal email greeting and help others. Do good.