Help!!!

2003-03-11 Thread Sidhartha Tripathy



hi 
i am using some unicode fonts in xml file and finally 
displaying that in pdf file  using fop
 
but i for some fonts i am getting squares i have downloaded 
unicode fonts and registered that in fop.
 
these are the fonts

」  タ  モ 
‡
is there any solutions for that ?? another character that is 
also not coming is endash –.
plz suggest any way to print those characters.
Thanks
Sid
** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm
** No virus found in attached file noname.htm

NO VIRUS FOUND: SERVER GENERATED MESSAGE
* End of message ***


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

help!!!

2002-08-12 Thread ehoo

Hello master-hand:

I using JAVA only one year!

My boss order me analyse FOP,and rewrite in C++;I think it's impossible!

Now,I want to know.How long time I can find out the design about FOP complete? 
Otherwise I am 22 old,  experience less one year!

Can you help me???  


[EMAIL PROTECTED]
2002-08-13


_
Do You Yahoo!?
ÒøÐоÞÍ·¾Û»áÖÐÔ­ ´óÀËÌÔ¡®½ð¡¯Ë­½«Ð¦°Á
http://sweepstakes.yahoo.com/bank_surveywave2/

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




Please help with params - please help

2002-01-22 Thread Dudley . Butt

Ok guys, what i really need help with is sending params thru to my XSL
sheet, basically, it would be great if someone could please help me with how
to use params in XSLT.
What i need is some external data to be written on a PDF page, basically a
fax cover sheet. The process just before the XSL transform has 2 bits of
data that I need to print on the sheet. How can I get it so that I can
retrieve them and print the data?

Thanx


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**
.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

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




RE: Please help with params - please help

2002-01-22 Thread Michiel Verhoef

Hi,

If you use Xalan as XSLT processor you might use the -param switch to 
do what you want.

-PARAM name value (Set a stylesheet parameter)

As far as I know you need to use  for the entire stylesheet,
just like you would when passing parameters to templates.

See also:  http://xml.apache.org/xalan-j/commandline.html

HTH,

Michiel


$ -Original Message-
$ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
$ Sent: dinsdag 22 januari 2002 11:00
$ To: [EMAIL PROTECTED]
$ Subject: Please help with params - please help
$ 
$ 
$ Ok guys, what i really need help with is sending params thru to my XSL
$ sheet, basically, it would be great if someone could please 
$ help me with how
$ to use params in XSLT.
$ What i need is some external data to be written on a PDF 
$ page, basically a
$ fax cover sheet. The process just before the XSL transform 
$ has 2 bits of
$ data that I need to print on the sheet. How can I get it so that I can
$ retrieve them and print the data?
$ 
$ Thanx
$ 
$ 
$ **
$ This email and any files transmitted with it are confidential and
$ intended solely for the use of the individual or entity to whom they
$ are addressed. If you have received this email in error please notify
$ the system manager.
$ 
$ This footnote also confirms that this email message has been swept by
$ MIMEsweeper for the presence of computer viruses.
$ 
$ www.mimesweeper.com
$ **
$ .
$ 
$ 
$ **
$ This email and any files transmitted with it are confidential and
$ intended solely for the use of the individual or entity to whom they
$ are addressed. If you have received this email in error please notify
$ the system manager.
$ 
$ This footnote also confirms that this email message has been swept by
$ MIMEsweeper for the presence of computer viruses.
$ 
$ www.mimesweeper.com
$ **
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, email: [EMAIL PROTECTED]
$ 

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




please help!!!

2001-08-09 Thread eric.deandrea

I have a table with 4 columns. One of the cells has text in it that is
bigger than the size of the column and the text is over-writing the text in
the following cell. How do I stop this? I have this:










This is some text in cell 1 that
will over-write the text in cell 2.




This is some text in cell 2.




This is some text in cell 3.




This is some text in cell 4.







-Eric


Eric Deandrea
Software Engineer  (978) 698-6351  
Inforonics, Inc.   [EMAIL PROTECTED]
30 Porter Rd.
Littleton, MA 01460


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




Help me

2001-08-15 Thread xi chen

hi,dear Mr/Mrs,
   I met a question about registering fonts in FOP
0.17.0 DEV. in the 
apache website about Fop,it said i can register the
fonts wiht FOP 
like this:
**
   
 Edit conf/userconfig.xml and add entries for the font
if the fonts 
section, ie: 
   
*

  I have tried, but it seems didn't work, I don't know
how to 
register the font i need correctly .

any help in this regard would be much appreciated.



_
Do You Yahoo!? µÇ¼Ãâ·ÑÑÅ»¢µçÓÊ! http://mail.yahoo.com.cn

ÎÞÁÄ£¿ÓôÃÆ£¿¸ßÐË£¿Ã»ÀíÓÉ£¿¶¼À´ÁÄÌì°É£¡¡ª¡ª 
ÑÅ»¢È«ÐÂÁÄÌìÊÒ! http://cn.chat.yahoo.com/c/roomlist.html

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




need help

2001-12-12 Thread Cyril Rognon

Hello,

I have already posted a message about memory issue but it went unseen.

My problem is : I have 50-500 pages document to generate. Fop handles this 
perfectly and fastly (1200 ms / page average).

I just have one draw back : I need to provide much memory to FOP.

I have managed to have no more than 20 pages in each page sequences and yet 
need more than 128 Mo  for a 81 pages document.

I wloud like to know if someone can help or tell me where to look to 
downsize my memory requierments. If I succeed, Fop will be heavily used in 
a production environnement.

Thanks

Cyril


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




need help??

2002-02-12 Thread Rikhil Jain



Hi * 
,
 
When I 
try to put content which has higher length compare to the cell of a particular 
column of the table
then 
it extends to the next column if I used "wrap-option=no-wrap" attribute 
.
But it 
will work fine if I used  "wrap-option=wrap" attribute 
.
 
My 
objective in first case is that rest of data should be lost, not to extend in 
next column .
 
Please 
tell whether it is possible or not in FOP .
 
Thanks 
in advance
 
Regards
Rikhil

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


Re: Help!!!

2003-03-11 Thread J.Pietschmann
Sidhartha Tripathy wrote:
hi 
i am using some unicode fonts in xml file and finally displaying that in pdf file  using fop

but i for some fonts i am getting squares i have downloaded unicode fonts and registered that in fop.

these are the fonts
」  タ  モ ‡
is there any solutions for that ?? another character that is also not coming is endash –.
Check whether your font has a glyph for the mentioned characters.
At least the 」 etc. seem to be fairly unusual ("ASCII variants,
full width"). The double ‡ (double dagger) shouldn't have
a problem with a proper Unicode font. I think none of the characters
will work with the any of the default fonts.
J.Pietschmann

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


RE: help!!!

2002-08-13 Thread Rhett Aultman

Rewriting FOP in C++ is not impossible, though it may be quite difficult.  I'm really 
not sure what the rest of your questions are, but I'd say it's going to take you quite 
a while to complete a project like that, and if your boss is telling you and you alone 
to rewrite FOP in C++, and you are only 22 with only one year of programming 
experience, there is either a labor shortage in your office or your boss' project 
management skills aren't stellar.

What you might want to consider is showing your boss ways you can integrate FOP in its 
current implementation without rewriting it in C++.  For example, if you're performing 
PDF generation with FOP from a C++ program, just write your source data to a file, 
fork a process that runs FOP on that file, and then read the resulting file in.  Maybe 
it's not as elegant as having a pure C++ solution (though I find nothing about C++ 
elegant), but it will work with fewer bugs, and whereas it'll take you a long time to 
rewrite FOP in C++, this method would take you less than a day to implement.

-Original Message-
From: ehoo [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 9:58 PM
To: [EMAIL PROTECTED]
Subject: help!!!


Hello master-hand:

I using JAVA only one year!

My boss order me analyse FOP,and rewrite in C++;I think it's impossible!

Now,I want to know.How long time I can find out the design about FOP complete? 
Otherwise I am 22 old,  experience less one year!

Can you help me???  


[EMAIL PROTECTED]
2002-08-13


_

Do You Yahoo!? 

ÒøÐоÞÍ·¾Û»áÖÐÔ­ ´óÀËÌÔ¡®½ð¡¯Ë­½«Ð¦°Á

http://sweepstakes.yahoo.com/bank_surveywave2/


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


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




Re: help!!!

2002-08-13 Thread Peter B. West

It's being done.  Look for xslfo-proc on sourceforge.  And look for a
new boss.

Peter

>   I using JAVA only one year!
> 
>   My boss order me analyse FOP,and rewrite in C++;I think it's impossible!

-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"


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




Re: help!!!

2002-08-13 Thread Mark Malone

I think the "new boss" advice is more useful ;)  New boss would say 
"Take existing, make faster, short time to market!" This can't be real.

-M

On Tuesday, August 13, 2002, at 05:28  AM, Rhett Aultman wrote:

> Rewriting FOP in C++ is not impossible, though it may be quite 
> difficult.  I'm really not sure what the rest of your questions are, 
> but I'd say it's going to take you quite a while to complete a project 
> like that, and if your boss is telling you and you alone to rewrite FOP 
> in C++, and you are only 22 with only one year of programming 
> experience, there is either a labor shortage in your office or your 
> boss' project management skills aren't stellar.
>
> What you might want to consider is showing your boss ways you can 
> integrate FOP in its current implementation without rewriting it in 
> C++.  For example, if you're performing PDF generation with FOP from a 
> C++ program, just write your source data to a file, fork a process that 
> runs FOP on that file, and then read the resulting file in.  Maybe it's 
> not as elegant as having a pure C++ solution (though I find nothing 
> about C++ elegant), but it will work with fewer bugs, and whereas it'll 
> take you a long time to rewrite FOP in C++, this method would take you 
> less than a day to implement.
>
> -Original Message-----
> From: ehoo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 9:58 PM
> To: [EMAIL PROTECTED]
> Subject: help!!!
>
>
> Hello master-hand:
>
>   I using JAVA only one year!
>
>   My boss order me analyse FOP,and rewrite in C++;I think it's 
> impossible!
>
>   Now,I want to know.How long time I can find out the design about 
> FOP complete? Otherwise I am 22 old,  experience less one year!
>   
> Can you help me???
>
> 
> [EMAIL PROTECTED]
>   2002-08-13
>
>
> _
>
> Do You Yahoo!?
>
> 银行巨头聚会中原 大浪淘‘金’谁将笑傲
>
> http://sweepstakes.yahoo.com/bank_surveywave2/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




RE: help!!!

2002-08-13 Thread Rhett Aultman

On the contrary, that's how bosses are.  Don't even get me started on mine.

-Original Message-
From: Mark Malone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: help!!!


I think the "new boss" advice is more useful ;)  New boss would say 
"Take existing, make faster, short time to market!" This can't be real.

-M

On Tuesday, August 13, 2002, at 05:28  AM, Rhett Aultman wrote:

> Rewriting FOP in C++ is not impossible, though it may be quite 
> difficult.  I'm really not sure what the rest of your questions are, 
> but I'd say it's going to take you quite a while to complete a project 
> like that, and if your boss is telling you and you alone to rewrite FOP 
> in C++, and you are only 22 with only one year of programming 
> experience, there is either a labor shortage in your office or your 
> boss' project management skills aren't stellar.
>
> What you might want to consider is showing your boss ways you can 
> integrate FOP in its current implementation without rewriting it in 
> C++.  For example, if you're performing PDF generation with FOP from a 
> C++ program, just write your source data to a file, fork a process that 
> runs FOP on that file, and then read the resulting file in.  Maybe it's 
> not as elegant as having a pure C++ solution (though I find nothing 
> about C++ elegant), but it will work with fewer bugs, and whereas it'll 
> take you a long time to rewrite FOP in C++, this method would take you 
> less than a day to implement.
>
> -Original Message-
> From: ehoo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 9:58 PM
> To: [EMAIL PROTECTED]
> Subject: help!!!
>
>
> Hello master-hand:
>
>   I using JAVA only one year!
>
>   My boss order me analyse FOP,and rewrite in C++;I think it's 
> impossible!
>
>   Now,I want to know.How long time I can find out the design about 
> FOP complete? Otherwise I am 22 old,  experience less one year!
>   
> Can you help me???
>
> 
> [EMAIL PROTECTED]
>   2002-08-13
>
>
> _
>
> Do You Yahoo!?
>
> 银行巨头聚会中原 大浪淘‘金’谁将笑傲
>
> http://sweepstakes.yahoo.com/bank_surveywave2/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Help required

2004-10-20 Thread Sanket Desai
Hi there,

Can anyone guide me how to add hyphenation for Japanese
language? I have got .tex file for SJIS i.e. SJIS.tex, but according
to FOP's documentation, I need to convert it in .xml file. I don't
know how to convert it. So, please guide for the same.

regards,

Sanket.


Help with footer only on first page - please help

2002-01-24 Thread Dudley . Butt

Hi all, 

Could someone please help me with the correct way to implement a footer only
on the first page? 

Thanx

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




FOP help please...

2001-08-09 Thread Charlie Wu

 <>  <> 

Hi there:
 
I downloaded the latest FOP from xml.apache.org and was trying to run
some simple tests from the commandline.. The documentation says you
should just run:
 
FOP fo_inputfile pdf_outputfile (see
http://xml.apache.org/fop/running.html
<http://xml.apache.org/fop/running.html> )
 
but I can't find a FOP.exe or FOP unix binary anywhere.. and since this
is java I suspect there isn't any FOP anywhere anyway.. so I searched
google.com and looked for commandline examples and found many references
to calling org.apache.fop.apps.CommandLine - but then when I checked
this against the fop.jar there's NO CLASS with that name!! I couuld only
find Command, CommandLineStarter, and CommandLineOptions.. 
 
So what gives 
 
Can someone please help me out???
 
Thanks
 
Charlie

begin 600 Charlie Wu.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..E=U.T-H87)L:64-"D9..D-H
M87)L:64@5W4-"D]21SI"&UL+F%P86-H92YO&UL+F%P86-H92YO


Re: Help me

2001-08-16 Thread Tore Engvig



On Wed, 15 Aug 2001, [gb2312] xi chen wrote:

> hi,dear Mr/Mrs,
>I met a question about registering fonts in FOP
> 0.17.0 DEV. in the
> apache website about Fop,it said i can register the
> fonts wiht FOP
> like this:
> **

Hi xi,

I recommend that you use fop 0.20.1 instead of 0.17.
The procedure for adding fonts changed significantly between version 0.17
and version 0.18. Adding fonts in version 0.17 is not straightforward,
it's a lot easier from version 0.18. There has also been a lot of bugfixes
for fonts after version 0.17, so I would really recommend to use the
latest version.


Tore



>
>  Edit conf/userconfig.xml and add entries for the font
> if the fonts
> section, ie:
>  file="C:\WINNT\Fonts\Cyberbit.ttf">  name="Cyberbit"
> style="normal" weight="normal"> 
> *
>
>   I have tried, but it seems didn't work, I don't know
> how to
> register the font i need correctly .
>
> any help in this regard would be much appreciated.
>
>
>
> _
> Do You Yahoo!? µÇ¼Ãâ·ÑÑÅ»¢µçÓÊ! http://mail.yahoo.com.cn
>
> ÎÞÁÄ£¿ÓôÃÆ£¿¸ßÐË£¿Ã»ÀíÓÉ£¿¶¼À´ÁÄÌì°É£¡¡ª¡ª
> ÑÅ»¢È«ÐÂÁÄÌìÊÒ! http://cn.chat.yahoo.com/c/roomlist.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: please help!!!

2001-08-19 Thread Karen Lease

Hi Eric,

Sorry if no one has answered your plea before now.
Unfortunately (or perhaps fortunately?) I don't have any problem with
the example you sent. I'm using the latest CVS, but if you are using an
earlier version of FOP, you probably should try with the latest release
which is 0.20.1.

I've attached the PDF I generated, using a simple A4 size page master. I
assume this is the result you want?

It's true that the overflow property isn't implemented yet in FOP, but
Yyou shouldn't need to use it here, since the text is just wrapping
normally in the table cell. Overflow is really meant for flow objects
which won't fit at all on the page and should be clipped. An example
would be a large graphic.

"eric.deandrea" wrote:
> 
> I have a table with 4 columns. One of the cells has text in it that is
> bigger than the size of the column and the text is over-writing the text in
> the following cell. How do I stop this? I have this:
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  text-align="start"
> font-size="10pt"
> line-height="14pt"
> overflow="hidden"
> wrap-option="wrap">
> This is some text in cell 1 that
> will over-write the text in cell 2.
> 
> 
> 
>  text-align="start"
> font-size="10pt"
> line-height="14pt"
> overflow="hidden"
> wrap-option="wrap">
> This is some text in cell 2.
> 
> 
> 
>  text-align="start"
> font-size="10pt"
> line-height="14pt"
> overflow="hidden"
> wrap-option="wrap">
> This is some text in cell 3.
> 
> 
> 
>  text-align="start"
> font-size="10pt"
> line-height="14pt"
> overflow="hidden"
> wrap-option="wrap">
> This is some text in cell 4.
> 
> 
> 
> 
> 
> 
> -Eric
> 
> 
> Eric Deandrea
> Software Engineer  (978) 698-6351
> Inforonics, Inc.   [EMAIL PROTECTED]
> 30 Porter Rd.
> Littleton, MA 01460
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
 ericbug.pdf

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


FopServlet error help!

2001-08-29 Thread Kilmer, Erich

I am trying to run a FopServlet and I get this exception in my browser when
I try to render the .FO file:
org.xml.sax.SAXParseException: The root element is required in a well-formed
document
I know you think its the .FO file but I even get it when I run the readme.fo
that comes with FOP through it.
Here is what the code looks like:
FileInputStream foFile = new
FileInputStream(request.getParameter(FO_REQUEST_PARAM));
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.setContentType("application/pdf");
Driver driver = new Driver(foFile, out);
driver.run();
byte[] content = out.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();

Is there some Driver setting I should be doing?
TIA,

Erich Kilmer
Bell+Howell

PS: My .fo file starts out like this:


http://www.w3.org/1999/XSL/Format";>




I can send the entire file if someone wants to look at it.



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




Help with Driver

2001-08-30 Thread John H. Wyman
Title: Message




In July I developed an application based on the then current .19 and used 
both TransformerFactory (since I have many parameters to pass. I then used 
..snip
transformer.transform(xmlSource, result);
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PDF);
driver.buildFOTree((Document) result.getNode());
driver.format();
driver.setOutputStream(new FileOutputStream(args[1]+".pdf"));
driver.render();
It now appears as if buildFoTree, Format and render have changed. Is there a 
simple way to fix my code ? I took a quick look at the documentation and didn't 
see it.
John H. Wyman
5160 Darry Lane
Dublin, OH 43016
(614)-889-0698
mailto:[EMAIL PROTECTED]
Wyman Genealogy Site 
Francis Wyman Assoc email List http://groups.yahoo.com/group/FrancisWymanAssoc
Wyman Family Genealogy Forum 
The Wyman Surname Message Board 

 


HELP - PASSING PARAMETER

2001-09-21 Thread Semprini Davide

Hi at all,

I have two important question:

1) I have a jsp page that call a java function of my external class.
I pass at this object dynamic xml and stylesheet xsl
and then I have to pass some parameter at my stylesheet
that are stored in HttpSession object.
If I use XSLTransform from fop there isn't
a possibility passing parameter! Is this True??
I have utilized instead of it the class: javax.xml.transform.Transformer
With this class I can pass parameter to stylesheet and perform the 
transformation
getting out InputSource that I pass at Driver.

2) When the render process end in my JSP
return ByteArrayOutputStream that I convert
setting the contentType:

1) response.setContentType("application/pdf");
2) ByteArrayOutputStream ris_pdf = ((XMLTransform) 
request.getAttribute("XMLTransform")).processXML_PDF(abs_path, 
(ParamXSL[]) request.getAttribute("ParamXSL"), formato);
  
 
   3) byte[] content = ris_pdf.toByteArray();
4) response.setContentLength(content.length);
5) response.getOutputStream().write(content);
6) response.getOutputStream().flush(); 

At this point appear the browser form that call
me If I want to save or open the result
why if I have set the content type?? and If I choose
acrobat I can view the PDF File!

(I use Struts and the file my output file is called ListaFacolta.do)


 


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




Request to help

2001-10-20 Thread yaguang . chen
 BDY.RTF


Re: need help

2001-12-12 Thread Ed Howland

I have the same problem but I could not easily change the XSLT to generate
different page sequences. (The data is tables from a DB that go into a report.)
However, since the PDFs are to be viewed only online, I split the input (with
position()) and generate multiple page sets. That way no one PDF stream is more
than a few hundred kilobytes over a 56k connection.

In researching this, I found the "Driver.setBufferFile(File buf)" method. I've
set this, but it doesn't seem to work. There are no Javadocs on it. I've looked
at the code but I don't think its being actively called by the renderer.

Does anybody know the intent and design of this function? Do any developers
know if it will be implemented soon?

FOP is great, but it requires way too much kid gloving when it comes to
performance and memory utilization. I read a note a while back (2000 I think)
that someone said they were trying to achieve 100% conformance with the spec
before they addressed these issues. I might agree with that, but few web
browsers were 100% compliant with W3C standards before they were used daily by
10s of millions of users. FOP is in a good enough state to be useful in
production environments. Isn't it time to address the scalability aspects of
FOP to meet those needs?

I suggest that "out of the box" FOP needs to manage its own resources much
better. XSLT is already a drain. 

Ed


--- Cyril Rognon <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I have already posted a message about memory issue but it went unseen.
> 
> My problem is : I have 50-500 pages document to generate. Fop handles this 
> perfectly and fastly (1200 ms / page average).
> 
> I just have one draw back : I need to provide much memory to FOP.
> 
> I have managed to have no more than 20 pages in each page sequences and yet 
> need more than 128 Mo  for a 81 pages document.
> 
> I wloud like to know if someone can help or tell me where to look to 
> downsize my memory requierments. If I succeed, Fop will be heavily used in 
> a production environnement.
> 
> Thanks
> 
> Cyril
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




Re: need help

2001-12-12 Thread Keiron Liddle

On 2001.12.12 15:39 Ed Howland wrote:
> In researching this, I found the "Driver.setBufferFile(File buf)" method.
> I've
> set this, but it doesn't seem to work. There are no Javadocs on it. I've
> looked
> at the code but I don't think its being actively called by the renderer.
> 
> Does anybody know the intent and design of this function? Do any
> developers
> know if it will be implemented soon?

This was not a full or solid solution and was disabled due to problems.

> FOP is great, but it requires way too much kid gloving when it comes to
> performance and memory utilization. I read a note a while back (2000 I
> think)
> that someone said they were trying to achieve 100% conformance with the
> spec
> before they addressed these issues. I might agree with that, but few web
> browsers were 100% compliant with W3C standards before they were used
> daily by
> 10s of millions of users. FOP is in a good enough state to be useful in
> production environments. Isn't it time to address the scalability aspects
> of
> FOP to meet those needs?
> 
> I suggest that "out of the box" FOP needs to manage its own resources
> much
> better. XSLT is already a drain.

While that is true there are certain things you need to realise.
- there are serious layout issues that need to be addressed
- performance and memory is very much tied up to how the whole system 
works, this makes it difficult to fix
- getting FOP to a stage where there is a clear development direction is 
difficult
- none of this will happen by itself

It appears that more effort needs to be put towards communicating the 
issues involved and the way in which FOP can be improved.

Yes it does need to be much better.

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




RE: need help

2001-12-12 Thread Branham, Paul

The best way to do this is by using a smaller page region.

I don't remember the exact instructions, but if you look through the message
archive you will see this explained in detail.

Paul Branham
[EMAIL PROTECTED]
24/7 Media, Inc.
Phone:(301)897-7722


-Original Message-
From: Cyril Rognon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 8:16 AM
To: [EMAIL PROTECTED]
Subject: need help


Hello,

I have already posted a message about memory issue but it went unseen.

My problem is : I have 50-500 pages document to generate. Fop handles this 
perfectly and fastly (1200 ms / page average).

I just have one draw back : I need to provide much memory to FOP.

I have managed to have no more than 20 pages in each page sequences and yet 
need more than 128 Mo  for a 81 pages document.

I wloud like to know if someone can help or tell me where to look to 
downsize my memory requierments. If I succeed, Fop will be heavily used in 
a production environnement.

Thanks

Cyril


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

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




Re: need help

2001-12-12 Thread Nicola Ken Barozzi


- Original Message -
From: "Keiron Liddle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 3:54 PM
Subject: Re: need help

> While that is true there are certain things you need to realise.
> - there are serious layout issues that need to be addressed
> - performance and memory is very much tied up to how the whole system
> works, this makes it difficult to fix

Are there any discussions on how to reorganize fop on a more scalable
framework?
Maybe going to SAX or other internal representations?
Sorry for the questions, I'm not able to check the list arcives right now.

> - getting FOP to a stage where there is a clear development direction is
> difficult
> - none of this will happen by itself

Right.

> It appears that more effort needs to be put towards communicating the
> issues involved and the way in which FOP can be improved.

What are the plans for FOP.
Are the releases giong to be so slowly incremental?
I'm really in the need of enhancements on the performance side and I don't
know where to start.
I also needed something that could render fo dynamically but FOP is not made
for this...
How can I help regarding these issues?

Nicola Ken Barozzi These are the days of miracle and wonder...
...so don't cry baby, don't cry
<[EMAIL PROTECTED]>  Paul Simon



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




Re: need help

2001-12-12 Thread Cyril Rognon

Keiron,

Maybe Ed went a little too far about this.

of course I do not request immediate magical memory solution that would 
enable me to generate my pdf on a cell phone :)

I have read in this list that some people have 200+ pages documents with 
low memory footprint (around 20-50 Mo). I just want to know if someone 
could give me any hints of achieving a nice FOP generation within 128 Mo 
knowing that I am using page sequences under 15 pages.


Thanks in advance.


As for me, the speed of FOP is not an issue. The memory would not be an 
issue if I had not a physical limit of 128Mo for now (too many units involved).


At 15:54 12/12/2001 +0100, you wrote:
>On 2001.12.12 15:39 Ed Howland wrote:
>>In researching this, I found the "Driver.setBufferFile(File buf)" method.
>>I've
>>set this, but it doesn't seem to work. There are no Javadocs on it. I've
>>looked
>>at the code but I don't think its being actively called by the renderer.
>>Does anybody know the intent and design of this function? Do any
>>developers
>>know if it will be implemented soon?
>
>This was not a full or solid solution and was disabled due to problems.
>
>>FOP is great, but it requires way too much kid gloving when it comes to
>>performance and memory utilization. I read a note a while back (2000 I
>>think)
>>that someone said they were trying to achieve 100% conformance with the
>>spec
>>before they addressed these issues. I might agree with that, but few web
>>browsers were 100% compliant with W3C standards before they were used
>>daily by
>>10s of millions of users. FOP is in a good enough state to be useful in
>>production environments. Isn't it time to address the scalability aspects
>>of
>>FOP to meet those needs?
>>I suggest that "out of the box" FOP needs to manage its own resources
>>much
>>better. XSLT is already a drain.
>
>While that is true there are certain things you need to realise.
>- there are serious layout issues that need to be addressed
>- performance and memory is very much tied up to how the whole system 
>works, this makes it difficult to fix
>- getting FOP to a stage where there is a clear development direction is 
>difficult
>- none of this will happen by itself


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




Re: need help

2001-12-12 Thread Keiron Liddle

On 2001.12.12 16:11 Nicola Ken Barozzi wrote:
> Are there any discussions on how to reorganize fop on a more scalable
> framework?
> Maybe going to SAX or other internal representations?
> Sorry for the questions, I'm not able to check the list arcives right
> now.

Yes there have been.
This is important information that needs to be more accessible.
Briefly the idea is to keep information minimal and use/dispose of any 
data as soon as possible, failing that a simple caching mechanism will be 
available.

> What are the plans for FOP.
> Are the releases giong to be so slowly incremental?
> I'm really in the need of enhancements on the performance side and I
> don't
> know where to start.
> I also needed something that could render fo dynamically but FOP is not
> made
> for this...
> How can I help regarding these issues?

I think first you need to understand what is goind on. So we need to 
provide information:
- what the plans and issues are
- what is currently being done

I will be working on this!

Then should have a better idea and you can then ask more specific 
questions.

For now getting a general idea of the code might help you get started.

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




Re: need help

2001-12-12 Thread Cyril Rognon

Keiron,

I would gladly share this info in order to contribute to FOP.

here is the last transcript from FOP :
[DEBUG]: Initial heap size: 1828Kb
[DEBUG]: Current heap size: 127392Kb
[DEBUG]: Total memory used: 125564Kb
[DEBUG]:   Memory use is indicative; no GC was performed
[DEBUG]:   These figures should not be used comparatively
[DEBUG]: Total time used: 67054ms
[DEBUG]: Pages rendererd: 85
[DEBUG]: Avg render time: 788ms/page

As everyone see, speed is ok, but memory ? I thought Fop would dispose of 
all the objects inside a page sequence when it's done.
I have tested the following : adding some content to generate more page 
sequences and fop did you more memory. so there might be a leak somewhere.

anyway, I would gladly participate in whatever plan ther is to improve this 
great FO processor.

Thanks

Cyril

>I think first you need to understand what is goind on. So we need to 
>provide information:
>- what the plans and issues are
>- what is currently being done
>
>I will be working on this!


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




Anyone can help ?

2002-01-22 Thread Nick Winger

hi !


i have three questions using fop  ( with tables ):

1. i want to generate a pdf dynamically using java. now first i write a
dynamically fo file (formatted objects):

on the pages there is always a text ( form start to the middle of the
page) and below ( the other half os the page)
an image:
now when i write the text in java:
how can i recognize when i reach the half of the page ?
should i divide the half page points with the font-height and count the
rows ?


2. is it possible to have two different font-sizes in one column of a table
?


3. can i turn the bottom cell line (border) of a cell off ?


greetings

Nick Winger


(Software-Developer)


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




Re: Please help...

2002-01-28 Thread ewitness - Ben Fowler

At 9:15 am + 23/1/02, Nick Winger wrote:
>hi !
>
>
>i have three questions using fop  ( with tables ):
>
>1.  i want to generate a pdf dynamically using java. now first i write a
>dynamically fo file (formatted objects):
>
>on the pages there is always a text ( form start to the middle
>of the page) and below ( the other half os the page) an image:
>now when i write the text in java:
>how can i recognize when i reach the half of the page ?
>should i divide the half page points with the font-height and
>count the rows ?

I don't think that FOP can do this. Would you get what you wanted if
you put the image in a footer. I doubt that counting the rows is the
way to go.

>2.  is it possible to have two different font-sizes in one column of a
>table?

Yes.

>3.  can i turn the bottom cell line (border) of a cell off ?

I don't know.

Ben.

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




AW: Please help...

2002-01-28 Thread Nick Winger


how do i get an image in the footer ? how is the footer and header adressed
?


thanks
nick

-Ursprüngliche Nachricht-
Von: ewitness - Ben Fowler [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 28. Januar 2002 14:21
An: [EMAIL PROTECTED]
Betreff: Re: Please help...


At 9:15 am + 23/1/02, Nick Winger wrote:
>hi !
>
>
>i have three questions using fop  ( with tables ):
>
>1.  i want to generate a pdf dynamically using java. now first i write a
>dynamically fo file (formatted objects):
>
>on the pages there is always a text ( form start to the middle
>of the page) and below ( the other half os the page) an image:
>now when i write the text in java:
>how can i recognize when i reach the half of the page ?
>should i divide the half page points with the font-height and
>count the rows ?

I don't think that FOP can do this. Would you get what you wanted if
you put the image in a footer. I doubt that counting the rows is the
way to go.

>2.  is it possible to have two different font-sizes in one column of a
>table?

Yes.

>3.  can i turn the bottom cell line (border) of a cell off ?

I don't know.

Ben.

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


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




RE: Please help...

2002-01-28 Thread Sergei Timofejev







-Original Message-
From: Nick Winger [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:26 PM
To: [EMAIL PROTECTED]
Subject: AW: Please help...



how do i get an image in the footer ? how is the footer and header
adressed
?


thanks
nick

-Ursprüngliche Nachricht-
Von: ewitness - Ben Fowler [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 28. Januar 2002 14:21
An: [EMAIL PROTECTED]
Betreff: Re: Please help...


At 9:15 am + 23/1/02, Nick Winger wrote:
>hi !
>
>
>i have three questions using fop  ( with tables ):
>
>1.  i want to generate a pdf dynamically using java. now first i write
a
>dynamically fo file (formatted objects):
>
>on the pages there is always a text ( form start to the middle
>of the page) and below ( the other half os the page) an image:
>now when i write the text in java:
>how can i recognize when i reach the half of the page ?
>should i divide the half page points with the font-height and
>count the rows ?

I don't think that FOP can do this. Would you get what you wanted if
you put the image in a footer. I doubt that counting the rows is the
way to go.

>2.  is it possible to have two different font-sizes in one column of a
>table?

Yes.

>3.  can i turn the bottom cell line (border) of a cell off ?

I don't know.

Ben.

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


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


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




Pls help....str.getBytes()

2002-02-26 Thread Dudley . Butt

With reference to the following, does anyone know whether one must replace
every reference to str.getBytes(), or r there some selected ones we can do
only?

http://marc.theaimsgroup.com/?l=fop-dev&m=99587281428987&w=2


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine. 
 
Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies ("Dimension Data"). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone. 
 
Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.  



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




Help with Forrest

2003-02-28 Thread Peter B. West
I have been able to eliminate the need for frames in my documantation by 
getting dynamic inline frames to work in NS7.0, Mozilla 1.2.1 and IE6. 
This requires that a javascript file be included in each of the affected 
files.  I need some advice on how best to get this to work with Forrest. 
 Do I need to include some form of redundant lining to the htmlized 
code files?  Can I otherwise express such files (with javascript: links) 
in XML?  Does anyone know how I can get JavaSRc that Nicola mentioned.

I would like to clean up the documentation as much as possible.
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: RE: help!!!

2002-08-14 Thread ehoo

Hi :

  At the first,thinks for your help!

  Now I am looking for fopdot(write with C#),but I can't get LogKit.NET at 
http://www.pinetree-tech.com/projects/fog07.html.

  Can you help me?

 Thinks a lot!




>On the contrary, that's how bosses are.  Don't even get me started on mine.
>
>-Original Message-
>From: Mark Malone [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 13, 2002 1:59 PM
>To: [EMAIL PROTECTED]
>Subject: Re: help!!!
>
>
>I think the "new boss" advice is more useful ;)  New boss would say
>"Take existing, make faster, short time to market!" This can't be real.
>
>-M
>
>On Tuesday, August 13, 2002, at 05:28  AM, Rhett Aultman wrote:
>
>> Rewriting FOP in C++ is not impossible, though it may be quite
>> difficult.  I'm really not sure what the rest of your questions are,
>> but I'd say it's going to take you quite a while to complete a project
>> like that, and if your boss is telling you and you alone to rewrite FOP
>> in C++, and you are only 22 with only one year of programming
>> experience, there is either a labor shortage in your office or your
>> boss' project management skills aren't stellar.
>>
>> What you might want to consider is showing your boss ways you can
>> integrate FOP in its current implementation without rewriting it in
>> C++.  For example, if you're performing PDF generation with FOP from a
>> C++ program, just write your source data to a file, fork a process that
>> runs FOP on that file, and then read the resulting file in.  Maybe it's
>> not as elegant as having a pure C++ solution (though I find nothing
>> about C++ elegant), but it will work with fewer bugs, and whereas it'll
>> take you a long time to rewrite FOP in C++, this method would take you
>> less than a day to implement.
>>
>> -Original Message-
>> From: ehoo [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, August 12, 2002 9:58 PM
>> To: [EMAIL PROTECTED]
>> Subject: help!!!
>>
>>
>> Hello master-hand:
>>
>>  I using JAVA only one year!
>>
>>  My boss order me analyse FOP,and rewrite in C++;I think it's
>> impossible!
>>
>>  Now,I want to know.How long time I can find out the design about
>> FOP complete? Otherwise I am 22 old,  experience less one year!
>>  
>> Can you help me???   
>>
>> 
>> [EMAIL PROTECTED]
>> 2002-08-13
>>
>>
>> _
>>
>> Do You Yahoo!?
>>
>> ÒøÐоÞÍ·¾Û»áÖÐÔ­ ´óÀËÌÔ¡®½ð¡¯Ë­½«Ð¦°Á
>>
>> http://sweepstakes.yahoo.com/bank_surveywave2/
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, email: [EMAIL PROTECTED]
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, email: [EMAIL PROTECTED]
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]



_
Do You Yahoo!?
ÐÂÏʵ½µ×,ÓéÀÖµ½¼Ò - ÑÅ»¢ÍƳöÃâ·ÑÓéÀÖµç×ÓÖܱ¨!
http://cn.ent.yahoo.com/newsletter/index.html

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




Re: Help required

2004-10-20 Thread Glen Mazza
Best to use the FOP-USER list for these questions, the
same people are on both list, but actually more can
help you on FOP-USER.  Also, please make your subject
line meaningful to help for later archive retrieval.

Glen


--- Sanket Desai <[EMAIL PROTECTED]> wrote:

> Hi there,
> 
> Can anyone guide me how to add hyphenation
> for Japanese
> language? I have got .tex file for SJIS i.e.
> SJIS.tex, but according
> to FOP's documentation, I need to convert it in .xml
> file. I don't
> know how to convert it. So, please guide for the
> same.
> 
> regards,
> 
> Sanket.
> 



Re: Help with footer only on first page - please help

2002-01-30 Thread ewitness - Ben Fowler

At 8:50 am +0200 25/1/02, [EMAIL PROTECTED] wrote:
>Hi all,
>
>Could someone please help me with the correct way to implement a footer only
>on the first page?

I believe that you need to establish two sequences of master pages,
and use one (which has the footer) on the first page, and the
other for the remainder.

This might be an FAQ. You can certinly find helpful info
on the web exempli gratia
http://www.dpawson.co.uk/xsl/sect3/headers.html >

Ben

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




Re: Need FAQ help

2001-05-29 Thread Alex McLintock

So you have tested FOP with Chinese words and found some problems. 

FOP is at its very early stages of development. We have a version which works
for most people - but very few of us speak or write Chinese (possibly none!)
Your help would be most welcome in explaining the problems you are seeing 
with Chinese fop, and helping to test it too.

Please subscribe to the fop-dev mailing list so we can continue this discussion
with developers more experienced than I.

Alex

--- carter_liang <[EMAIL PROTECTED]> wrote: > yes,I have tried the "FOP".
> And I try the result that the "FOP" can not working chinese words.
> Thanks.
> Carter.
> 
> «H¥ó­ì¤å =?iso-8859-1?q?Alex=20McLintock?= <[EMAIL PROTECTED]>
> > Unfortunately I can't answer that - it is a lot more complicated than
> > "yes" or "no".
> > 
> > You need to ask on the FOP mailing list, and you need to give more
> > information.
> > Have you tried fop? How far did you get?
> > Do you know what fonts you need?
> > Do you need vertical text?
> > 
> > Goodluck
> > 
> > Alex McLintock
> > 
> > 
> > 
> > --- carter_liang <[EMAIL PROTECTED]> wrote: > dear Alex :
> > > Is the "FOP" working chinese words ?
> > > Thanks.
> > > Carter.



=
Alex McLintock[EMAIL PROTECTED]
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
DR WHO COMPETITION: 
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
Get Your XML T-Shirt  at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




Help about font ZapfDingbats

2001-05-31 Thread Di Perna Francesco

Hello.
I am very angry with the FOP processor.
In the FOP (0.18) examples there is a file "fonts.fo" that use
ZapfDingbats font.
If I transform with the fop.bat command line in a pdf file I can see the
ZapfDingbats well.
If I use the same xsl-fo instructions in my xsl file and use it for
transform a xml file into pdf the fop processor 
give me an error : "unknow font ZafDingbats" ,in the same
machine in the same environment.
The xsl-fo instruction tha I use is 



I




In that way I got a character of the default font-family.

Please help me.
I attached the fonts.fo examples.
Thanks



*** 
Di Perna Francesco tel. +39-050-970302 
Document Solutions s.r.l fax. +39-050-543063 
http://www.documentsolutions.it e-mail: [EMAIL PROTECTED]
Document Solutions is an Adobe Authorized Training Centre 

"There is nothing so powerful as an idea whose time has come" 
 Victor Hugo
*** 

 fonts.fo

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


New user expect help

2001-07-01 Thread S.A.Abdul Wahab



Hi!
 
I am very new user to FOP.  I couldn't find 
how to use FOP and what to set, if needed, like COCOON Project.  So could 
you please explain me indetail.  I am using iPlanet 
WebServer4.1.
 
Thanks,
Abdul Wahab.


Newbie attempting to help

2001-08-06 Thread Don Wellington

Hi-

Well, I am trying to make my first contribution to
FOP. By working on bug 2988 which I submitted.  I
willingly accept any and all help.

I tried forcing the status return from
ListItemLabel.layout to keep-with-next in an attempt
to force other code to handle keeping the
list-item-label and list-item-body together. That
didn't work, but keep-with-next is broken anyways, so
that is probably not  unexpected.  My thought right
now is to change 
the end of ListItemLabel.layout to:

if(status == Status.OK) {
   status = new Status(Status.KEEP_WITH_NEXT);
}
return status;

At least temporally, until I figure how to get FOP to
obey the keep_with_next when there is an
external-graphics as the first element in the
list-item-body. 

Anything wrong with that?  Any pointers in the right
direction?

Don Wellington

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




FW: FOP help please...

2001-08-08 Thread Charlie Wu

 <>  <> 


Hi there:
 
I downloaded the latest FOP from xml.apache.org and was trying to run
some simple tests from the commandline.. The documentation says you
should just run:
 
FOP fo_inputfile pdf_outputfile (see
http://xml.apache.org/fop/running.html
<http://xml.apache.org/fop/running.html> )
 
but I can't find a FOP.exe or FOP unix binary anywhere.. and since this
is java I suspect there isn't any FOP anywhere anyway.. so I searched
google.com and looked for commandline examples and found many references
to calling org.apache.fop.apps.CommandLine - but then when I checked
this against the fop.jar there's NO CLASS with that name!! I couuld only
find Command, CommandLineStarter, and CommandLineOptions.. 
 
So what gives 
 
Can someone please help me out???
 
Thanks
 
Charlie

begin 600 Charlie Wu.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..E=U.T-H87)L:64-"D9..D-H
M87)L:64@5W4-"D]21SI"&UL+F%P86-H92YO&UL+F%P86-H92YO


RE: FOP help please...

2001-08-08 Thread James Telfer

Try:
java -jar fop.jar

Invocation used to be handled by fop.bat/fop.sh, but I think this is now
obsolete. (?) Either way, the above works.

JT

-Original Message-
From: Charlie Wu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 2:52 PM
To: '[EMAIL PROTECTED]'
Subject: FW: FOP help please...


 <>  <> 


Hi there:
 
I downloaded the latest FOP from xml.apache.org and was trying to run
some simple tests from the commandline.. The documentation says you
should just run:
 
FOP fo_inputfile pdf_outputfile (see
http://xml.apache.org/fop/running.html
<http://xml.apache.org/fop/running.html> )
 
but I can't find a FOP.exe or FOP unix binary anywhere.. and since this
is java I suspect there isn't any FOP anywhere anyway.. so I searched
google.com and looked for commandline examples and found many references
to calling org.apache.fop.apps.CommandLine - but then when I checked
this against the fop.jar there's NO CLASS with that name!! I couuld only
find Command, CommandLineStarter, and CommandLineOptions.. 
 
So what gives 
 
Can someone please help me out???
 
Thanks
 
Charlie



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

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




Re: FOP help please...

2001-08-09 Thread Kevin Ward


Yes, it is misleading on the site.  You can use the following on the 
command line (assuming all the relevant jars are in your classpath):

java org.apache.fop.apps.Fop file.fo file.pdf

Kevin

At 09:41 PM 8/8/01 -0700, you wrote:
>  <>  <>
>
>Hi there:
>
>I downloaded the latest FOP from xml.apache.org and was trying to run
>some simple tests from the commandline.. The documentation says you
>should just run:
>
>FOP fo_inputfile pdf_outputfile (see
>http://xml.apache.org/fop/running.html
><http://xml.apache.org/fop/running.html> )
>
>but I can't find a FOP.exe or FOP unix binary anywhere.. and since this
>is java I suspect there isn't any FOP anywhere anyway.. so I searched
>google.com and looked for commandline examples and found many references
>to calling org.apache.fop.apps.CommandLine - but then when I checked
>this against the fop.jar there's NO CLASS with that name!! I couuld only
>find Command, CommandLineStarter, and CommandLineOptions..
>
>So what gives
>
>Can someone please help me out???
>
>Thanks
>
>Charlie

-
Kevin Ward
Web Developer
Lattice Semiconductor Corporation
 NE Moore Court
Hillsboro, OR 97124-6421
Ph: 503.268.8656
Fx: 503.268.8693
[EMAIL PROTECTED]
http://www.latticesemi.com/


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




RE: FOP help please...

2001-08-09 Thread COFFMAN Steven

Didn't you say on the general list that you were able to get the fop.sh and
fop.bat to work for you?
-Steve

-Original Message-
From: Charlie Wu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 12:42 AM
To: '[EMAIL PROTECTED]'
Subject: FOP help please...


 <>  <> 

Hi there:
 
I downloaded the latest FOP from xml.apache.org and was trying to run
some simple tests from the commandline.. The documentation says you
should just run:
 
FOP fo_inputfile pdf_outputfile (see
http://xml.apache.org/fop/running.html
<http://xml.apache.org/fop/running.html> )
 
but I can't find a FOP.exe or FOP unix binary anywhere.. and since this
is java I suspect there isn't any FOP anywhere anyway.. so I searched
google.com and looked for commandline examples and found many references
to calling org.apache.fop.apps.CommandLine - but then when I checked
this against the fop.jar there's NO CLASS with that name!! I couuld only
find Command, CommandLineStarter, and CommandLineOptions.. 
 
So what gives 
 
Can someone please help me out???
 
Thanks
 
Charlie



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

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




fop special character help!

2001-08-31 Thread Amy Weiss

Hi

I am a developer and I am trying to use fop (apache) to generate pdf from my
xsl file and xml file.  I need to know what font are supported by fop and
how I can print special characters.  For instance, I want to have an a with
an accent mark over it in the pdf.  I was just using the ascii value and
that worked fine, but now I also need to display korean, japanese, and
chinese characters in the pdf.  I don't want to find and type the ascii
value into the xsl and fop isn't recognizing them anyways.  My Adobe
supports these fonts but I am unable to find any way to put these characters
into the xsl file and have the fop turn them into pdf.

Please Help!

Amy Weiss

Yahoo! Inc.
Technical Yahoo!
701 First Avenue
Sunnyvale, CA 94089
Phone: 408-349-6232
Email: [EMAIL PROTECTED]



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




AW: HELP - PASSING PARAMETER

2001-09-21 Thread Beer, Christian

Hi!

Are you using iExplorer? If yes, then the thing is, that the
internetexplorer 
does give a damn about mime-types. For the iexplore only the url counts.
So try to add a ".pdf" to your url:

  http://myserver/servlet/pdfcreate?dump=filename.pdf


Christian

-Ursprüngliche Nachricht-
Von: Semprini Davide [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. September 2001 11:09
An: fop-dev
Betreff: HELP - PASSING PARAMETER


Hi at all,

I have two important question:

1) I have a jsp page that call a java function of my external class.
I pass at this object dynamic xml and stylesheet xsl
and then I have to pass some parameter at my stylesheet
that are stored in HttpSession object.
If I use XSLTransform from fop there isn't
a possibility passing parameter! Is this True??
I have utilized instead of it the class: javax.xml.transform.Transformer
With this class I can pass parameter to stylesheet and perform the 
transformation
getting out InputSource that I pass at Driver.

2) When the render process end in my JSP
return ByteArrayOutputStream that I convert
setting the contentType:

1) response.setContentType("application/pdf");
2) ByteArrayOutputStream ris_pdf = ((XMLTransform) 
request.getAttribute("XMLTransform")).processXML_PDF(abs_path, 
(ParamXSL[]) request.getAttribute("ParamXSL"), formato);
  
 
   3) byte[] content = ris_pdf.toByteArray();
4) response.setContentLength(content.length);
5) response.getOutputStream().write(content);
6) response.getOutputStream().flush(); 

At this point appear the browser form that call
me If I want to save or open the result
why if I have set the content type?? and If I choose
acrobat I can view the PDF File!

(I use Struts and the file my output file is called ListaFacolta.do)


 


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

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




HELP: PDF generation hangs

2001-11-26 Thread Vladimir Sneblic

Hi,

I have a problem when I try to generate a PDF file from a FOP file that
contains an SVG image. It doesn't matter if the image is inline or if it's
stored as a separate file. My problem is that the PDF file gets generated
but for some reason the java thread "hangs", i.e. even though the work is
finished it doesn't stop executing. Has anyone else encountered this
problem?

Here's the piece of code that I'm using to render the PDF:

Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
Logger log = hierarchy.getLoggerFor("fop");
log.setPriority(Priority.DEBUG);
Driver driver = new Driver(new InputSource(new
StringReader(template.toString())), outputStream);
driver.setLogger(log);
driver.setRenderer(Driver.RENDER_PDF);
 
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
driver.run();

This code generated this output:

INFO10068   [fop ] (): building formatting object tree
DEBUG   10068   [fop ] (): setting up fonts
INFO10068   [fop ] (): [1]
INFO10068   [fop ] (): Parsing of document complete, stopping
renderer
DEBUG   10068   [fop ] (): Initial heap size: 1569Kb
DEBUG   10068   [fop ] (): Current heap size: 2689Kb
DEBUG   10068   [fop ] (): Total memory used: 1119Kb
DEBUG   10068   [fop ] ():   Memory use is indicative; no GC was
performed
DEBUG   10068   [fop ] ():   These figures should not be used
comparatively
DEBUG   10068   [fop ] (): Total time used: 8993ms
DEBUG   10068   [fop ] (): Pages rendererd: 1
DEBUG   10068   [fop ] (): Avg render time: 8993ms/page

Thanks in advance,

Vladimir Sneblic
Software Engineer
Sytec Resources Limited

Phone:  +64 9 917-4264
Fax:+64 9 355-0070  
Mobile: +64 21 404046
Email:   [EMAIL PROTECTED]   
WWW:  http://www.sytec.co.nz

Important:  This electronic mail message and attachments (if any) are
confidential and may be legally privileged.  If you are not the intended
recipient please contact us immediately and destroy this message.  You may
not legally copy, disclose, disseminate or use the contents in any way.
Thank you.


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




HELP WITH FONTS PLEASE!

2001-12-21 Thread Gorka Echevarría



Hi all,
I have a problem to generate a pdf document 
from a servlet appling fonts that are not included by default in the Fop 
especification.
If I execute Fop from the command line, I have no 
problem at all, and it works perfectly.
I know how to especify the file "userconfig.xml" in 
the command line -> "Fop -c conf/userconfig.xml", but I don´t know how to do 
it 
in the servlet to allow the use of diferent kinds 
of font in the xsl-fo file.
My source code in the servlet looks like 
this:
        
    ByteArrayOutputStream out = new 
ByteArrayOutputStream();    
response.setContentType("application/pdf");    
Driver driver = new 
Driver();    
driver.setRenderer(Driver.RENDER_PDF);    
driver.setOutputStream(out);    
driver.render(input.getParser(), 
input.getInputSource());    
byte[] content = 
out.toByteArray();    
response.setContentLength(content.length);    
response.getOutputStream().write(content);    
response.getOutputStream().flush();
 
I've read the document fonts.pdf already 
(thank you very much Sergei) and I have read  the page http://xml.apache.org/fop/fonts.html but 
i have found no solution.
 
Can anyboy help me please?
 
Gorka Echevarría 
VélezBILBOMÁTICA, S.A.[EMAIL PROTECTED]
 
 
 
 


Re: AW: Please help...

2002-01-28 Thread Jochen . Maes


hi there,

for an image use this:
  

footer you can access like this: (i use it successfully)

   
 
   
 
   ___
 
   
   
 
   1
Enkel schriftelijke reacties kunnen in aanmerking
genomen worden.
 
   
   
 
__

   
   
 
   
 
 
 
   
 
   
  
   
 
 
   
  
   
 
   
   
 
   
  KBC Securities N.V.
   
 
 
   
  BTW BE-437.060.521
   
 
   
   
 
   
  Havenlaan 12
   
 
 
   
  Handelsregister 626.457
   
 
   
   
 
   
  B-1080 Brussel
   
 
 
   
  Rekening KBC Bank 409-6547401-42
   
 
   
   
 
   
  
   
 
 
   
  Onze referte : 
  
   
 
   
 
   
 
   
 
   




Jochen Maes
EDP departement
Programmeur

KBC-Securities
Havenlaan 16
1080 Brussel

Tel : 02/429.96.81
Fax : 02/429.17.48
E-mail : [EMAIL PROTECTED]

**

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. KBC Securities
reserves the right to monitor all e-mail communications through its
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of any such entity.
**


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




Re: Pls help....str.getBytes()

2002-02-27 Thread ewitness - Ben Fowler

>With reference to the following, does anyone know whether one must replace
>every reference to str.getBytes(), or r there some selected ones we can do
>only?
>
>http://marc.theaimsgroup.com/?l=fop-dev&m=99587281428987&w=2
>
>
>This message contains information intended solely for the addressee,
>which is confidential or private in nature and subject to legal privilege.
>If you are not the intended recipient, you may not peruse, use,
>disseminate, distribute or copy this message or any file attached to this
>message. Any such unauthorised use is prohibited and may be unlawful. If
>you have received this message in error, please notify the sender
>immediately by e-mail, facsimile or telephone and thereafter delete the
>original message from your machine.
> 
>Furthermore, the information contained in this message, and any
>attachments thereto, is for information purposes only and may contain the
>personal views and opinions of the author, which are not necessarily the
>views and opinions of Dimension Data (South Africa) (Proprietary) Limited
>or is subsidiaries and associated companies ("Dimension Data"). Dimension
>Data therefore does not accept liability for any claims, loss or damages
>of whatsoever nature, arising as a result of the reliance on such
>information by anyone.
> 
>Whilst all reasonable steps are taken to ensure the accuracy and
>integrity of information transmitted electronically and to preserve the
>confidentiality thereof, Dimension Data accepts no liability or
>responsibility whatsoever if information or data is, for whatsoever
>reason, incorrect, corrupted or does not reach its intended destination. 

I am really only writing to refer you to the Stupid Disclaimers
page http://www.goldmark.org/jeff/stupid-disclaimers/ >,
as you changed 'are' to 'r' to save two 7-bit bytes!

The short answer is that this is a java problem.

I hope that FOP will not move away from 100% pure java
without very good reason. If adding the requested
encoding is machine/OS specific then should we encapsulate
this issue by deriving from String?

Either way, any change should be fully consistent
with FOPs internationalisation mechansims.

I would guess that the medium length answer is yes,
all of them & you might be better catching the
exception at an appropriate point and reporting it.

If you are not familar with encoding in java, then
you might want to look here
http://www.oreilly.com/catalog/javanp2/chapter/ch11.html >, or
http://users.erols.com/eepeter/chinesecomputing/programming/java.html >
http://java.sun.com/products/javamail/FAQ.html >
where encoding is mentioned in passing.

Ben.

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




Re: Help with Forrest

2003-02-28 Thread Jeremias Maerki
Not a specialist on Forrest or Cocoon, yet, but I think it probably
needs among other things an additional map:match element with a custom
stylesheet, such as the one for the compliance document. So if you
converted the HTML to XHTML you could probably write an XSLT stylesheet
to add the JavaScript stuff. Just what's going though my head. I hope it
helps anyway. Probably best if you asked on Forrest mailing list, too.

Is this what you're looking for? http://sourceforge.net/projects/javasrc/

On 28.02.2003 16:55:12 Peter B. West wrote:
> I have been able to eliminate the need for frames in my documantation by 
> getting dynamic inline frames to work in NS7.0, Mozilla 1.2.1 and IE6. 
> This requires that a javascript file be included in each of the affected 
> files.  I need some advice on how best to get this to work with Forrest. 
>   Do I need to include some form of redundant lining to the htmlized 
> code files?  Can I otherwise express such files (with javascript: links) 
> in XML?  Does anyone know how I can get JavaSRc that Nicola mentioned.
> 
> I would like to clean up the documentation as much as possible.



Jeremias Maerki


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



Re: Help with Forrest

2003-03-01 Thread Peter B. West
Jeremias,

Thanks for the Sourceforge reference.  It seems that the software is in 
the process of being donated to Apache, and is in the process of finding 
its way in to Alexandria.  It is currently unavailable there because of 
licencing issues.

I will ask on forrest-dev.

Peter

Jeremias Maerki wrote:
Not a specialist on Forrest or Cocoon, yet, but I think it probably
needs among other things an additional map:match element with a custom
stylesheet, such as the one for the compliance document. So if you
converted the HTML to XHTML you could probably write an XSLT stylesheet
to add the JavaScript stuff. Just what's going though my head. I hope it
helps anyway. Probably best if you asked on Forrest mailing list, too.
Is this what you're looking for? http://sourceforge.net/projects/javasrc/
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Help! About font problem.

2002-11-21 Thread Yueshu Jesse
In order to resolve the display "..." problem, I embed a truetype font 
by setting up userconfig.xml and call new Option in program. So, the PDF 
file created by FOP can show the foreign words correctly. But at this time, 
there are some unbreak text block displaying out of the body region. 
Somebody help me please.

Regards
Jesse.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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



FOP performance - frustrating.. help!!

2002-12-27 Thread Lee, Insoo


>   Hello, I'm getting a little frustrated with FOP performance.
>   We are generating an XML on the fly that contains a few tables with
> about 1,000 rows in total.
>   We passdown this XML along with XSL to the transformer to generate PDF
> from our servlet.
>   (transformer.transform( inXML, new SAXResult(
> driver.getContentHandler()));  )
>   It works well, but it works slow.
>   It takes about 5 minutes for 1,000 rows and this is only for transformer
> translation (excluing any data query time or jdom XML building time)
>   I read through past emails/FAQs and I think I tried them all and it
> still does not improve the performance...
> 
>   Please help!!
>   
>   Here is what I have done.
> 
>   1) run with more memory - yes I tried with 512MB (I don't get
> OutOfMemory error)
>   2) run in separate VM - only helps other requests coming to the site
>   3) try with the latest FOP - I did - mine is fop-0.20.4
>   4) try with the latest xalan.jar and xerces.jar - tried them, but no
> improvement
>   5) cache XSL style sheet - didn't really help...
>   6) use multiple page-sequence - got it to work and I don't get
> OutOfMemeory exception, but still performance didn't get better.
>  (even if I break them into multiple page-sequences, I will still
> have to read through one row at a time, right? - that's why performance is
> not really improving..)
> 
>   7) no forward-reference - I don't have any page numbers
>   8) try with new JDK - trying with JDK 1.3
>   9) seralize servlet request - haven't done this, but I doubt this will
> have any performance impact (I'm testing with one request for now)
>   10) no images - I don't have any...
>   11) Don't make the XML tree too deep - mine is very flat with 2 levels
> deep.
> 
>   I have 1,000 rows and each row looks something like following in XML
> 
>   
> 539
> Some Fund
> 0.376
> NA
> NA
> NA
> NA
> 1.4
> 1.58000
> 1.
> 09 Dec 2002
> USD
> I
>   
>   
> 
>   Here is the question:
> Is this normal to take this long - 5 minutes - to produce a few tables
> with combined total 1,000 rows (about 30 pages)?
> 
> Any other better way?
> 
>   Thank you for your suggestions.
> 
>   Regards,
>   IL

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




FOP hangs.. Need help

2004-09-15 Thread Jeyaprakash Natham








Version: 0.20.5

 

Issue: To convert a XSL-FO to PDF format, I am using the code
taken from ExampleFO2PDF.java available on http://xml.apache.org/fop/embedding.html#ExampleFO2PDF.

While running this code, it hangs.

 

Can someone help what could be the issue.

 

Note: The size of XSL-FO file is around 225MB.

 

Thanks

JP








Please help with block breaks

2001-06-20 Thread Heidi Gerken

I implore any member of this list to give me an answer to my question. Does
keep-with-next, keep-with-previous, keep-together or keep-together.within-page
work with blocks or list-blocks? If so, how should it be implemented? I have a
series of 4 list blocks, like the one below, inside a parent block. I would like
all four list blocks within the block to be on the same page; if they cannot
fit, I want the entire block to move to the next page. Is this possible? Would
someone, please, tell me how I can do this. (I hope you sense the desperation in
my email, because I am truly losing my mind over this one.)


  
  
  
  Abstract:
  

  
  
  
  
  
  
.
.
.



Thank you,
Heidi Gerken
KM Objects
2200 Clarendon Blvd., Suite 1401
Arlington, VA 22201
703.841.4284
[EMAIL PROTECTED]


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




Re: New user expect help

2001-07-02 Thread Arved Sandstrom

You should be able to get started using the instructions at 
http://xml.apache.org/fop/running.html.

In terms of using FOP as a servlet, we have some instructions at the end of 
http://xml.apache.org/fop/embedding.html. I have never used iWS as anything 
but a static-HTML front-end for iAS (that is, iAS and not iWS handles 
servlets), so I don't know if things will be quite as simple for iWS, but it 
probably is.

If you have any problems please let us know what FOP distribution you are 
working with. I'd personally be happy to help with getting the servlet up 
and runing with iWS if you run into any problems.

Regards,
Arved Sandstrom

At 03:24 PM 7/2/01 +0800, Abdul Wahab wrote:
I am very new user to FOP.  I couldn't find how to use FOP and what to set, 
if needed, like COCOON Project.  So could you please explain me indetail.  I 
am using iPlanet WebServer4.1.

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




Re: New user expect help

2001-07-03 Thread Cho



This email will help you get you started.
 
Subject:
 Re: New user expect
help
 Date:
 Mon, 02 Jul 2001 12:37:40
-0300
    From:
 Arved Sandstrom <[EMAIL PROTECTED]>
 Reply-To:
 [EMAIL PROTECTED]
  To:
 [EMAIL PROTECTED]
 
You should be able to get started using the instructions at
http://xml.apache.org/fop/running.html.
In terms of using FOP as a servlet, we have some instructions at the
end of
http://xml.apache.org/fop/embedding.html. I have never used iWS as
anything
but a static-HTML front-end for iAS (that is, iAS and not iWS handles
servlets), so I don't know if things will be quite as simple for iWS,
but it
probably is.
If you have any problems please let us know what FOP distribution you
are
working with. I'd personally be happy to help with getting the servlet
up
and runing with iWS if you run into any problems.
 
"S.A.Abdul Wahab" wrote:

Hi! I
am very new user to FOP.  I couldn't find how to use FOP and what
to set, if needed, like COCOON Project.  So could you please explain
me indetail.  I am using iPlanet WebServer4.1. Thanks,Abdul
Wahab.





Re: Newbie attempting to help

2001-08-07 Thread Keiron Liddle


Your help is very welcome.

Unfortunately the the solution to the problem is not that easy. This is one
area that fop does not handle very well and we are in search of a solution.

The problem of keeps (and space resolution etc.) is one that spans across
the fo heirarchy in a number of directions. This makes it difficult to
handle without a rehash of how the layout is organised.

An effort is underway in this direction but there seems to be a fair amount
of resistance to change (from fop).

Hope this doesn't put you off.

On Tue, 07 Aug 2001 03:21:14 Don Wellington wrote:
> Hi-
> 
> Well, I am trying to make my first contribution to
> FOP. By working on bug 2988 which I submitted.  I
> willingly accept any and all help.
> 
> I tried forcing the status return from
> ListItemLabel.layout to keep-with-next in an attempt
> to force other code to handle keeping the
> list-item-label and list-item-body together. That
> didn't work, but keep-with-next is broken anyways, so
> that is probably not  unexpected.  My thought right
> now is to change 
> the end of ListItemLabel.layout to:
> 
> if(status == Status.OK) {
>status = new Status(Status.KEEP_WITH_NEXT);
> }
> return status;
> 
> At least temporally, until I figure how to get FOP to
> obey the keep_with_next when there is an
> external-graphics as the first element in the
> list-item-body. 
> 
> Anything wrong with that?  Any pointers in the right
> direction?
> 
> Don Wellington


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




Re: Newbie attempting to help

2001-08-07 Thread Arved Sandstrom

Total agreement to everything Keiron just said.

However, that's not to say that we can't work up something that meets your 
needs for 'keep-together' on fo:list-item. It's usually possible to take 
care of a specific; as Keiron says it's the general case (making keeps work 
everywhere that they are supposed to) that is rather more of an obstacle. I 
have some ideas in regard to how you might want to tackle the problem you 
describe and will elaborate this evening.

Regards,
Arved Sandstrom

At 09:38 AM 8/7/01 +0200, Keiron Liddle wrote:
>
>Your help is very welcome.
>
>Unfortunately the the solution to the problem is not that easy. This is one
>area that fop does not handle very well and we are in search of a solution.
>
>The problem of keeps (and space resolution etc.) is one that spans across
>the fo heirarchy in a number of directions. This makes it difficult to
>handle without a rehash of how the layout is organised.
>
>An effort is underway in this direction but there seems to be a fair amount
>of resistance to change (from fop).
>
>Hope this doesn't put you off.
>
>On Tue, 07 Aug 2001 03:21:14 Don Wellington wrote:
>> Hi-
>> 
>> Well, I am trying to make my first contribution to
>> FOP. By working on bug 2988 which I submitted.  I
>> willingly accept any and all help.
>> 
>> I tried forcing the status return from
>> ListItemLabel.layout to keep-with-next in an attempt
>> to force other code to handle keeping the
>> list-item-label and list-item-body together. That
>> didn't work, but keep-with-next is broken anyways, so
>> that is probably not  unexpected.  My thought right
>> now is to change 
>> the end of ListItemLabel.layout to:
>> 
>> if(status == Status.OK) {
>>status = new Status(Status.KEEP_WITH_NEXT);
>> }
>> return status;
>> 
>> At least temporally, until I figure how to get FOP to
>> obey the keep_with_next when there is an
>> external-graphics as the first element in the
>> list-item-body. 
>> 
>> Anything wrong with that?  Any pointers in the right
>> direction?
>> 
>> Don Wellington
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
>
Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




Re: Newbie attempting to help

2001-08-07 Thread Don Wellington

No, it doesn't put me off.

I think the direction I will take is to focus on the
list-item-label and list-item-body.  Since, both are
required in a list-item, it seems like a limited
enough case that it might not be as hard as the
general case.

Don

--- Keiron Liddle <[EMAIL PROTECTED]> wrote:
> 
> Your help is very welcome.
> 
> Unfortunately the the solution to the problem is not
> that easy. This is one
> area that fop does not handle very well and we are
> in search of a solution.
> 
> The problem of keeps (and space resolution etc.) is
> one that spans across
> the fo heirarchy in a number of directions. This
> makes it difficult to
> handle without a rehash of how the layout is
> organised.
> 
> An effort is underway in this direction but there
> seems to be a fair amount
> of resistance to change (from fop).
> 
> Hope this doesn't put you off.
> 
> On Tue, 07 Aug 2001 03:21:14 Don Wellington wrote:
> > Hi-
> > 
> > Well, I am trying to make my first contribution to
> > FOP. By working on bug 2988 which I submitted.  I
> > willingly accept any and all help.
> > 
> > I tried forcing the status return from
> > ListItemLabel.layout to keep-with-next in an
> attempt
> > to force other code to handle keeping the
> > list-item-label and list-item-body together. That
> > didn't work, but keep-with-next is broken anyways,
> so
> > that is probably not  unexpected.  My thought
> right
> > now is to change 
> > the end of ListItemLabel.layout to:
> > 
> > if(status == Status.OK) {
> >status = new Status(Status.KEEP_WITH_NEXT);
> > }
> > return status;
> > 
> > At least temporally, until I figure how to get FOP
> to
> > obey the keep_with_next when there is an
> > external-graphics as the first element in the
> > list-item-body. 
> > 
> > Anything wrong with that?  Any pointers in the
> right
> > direction?
> > 
> > Don Wellington
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Converting XMP to PDF...HELP!!!!!!

2001-08-08 Thread Patel, Mike

Hi,

I am able to convert .XML files to .PDF using command line on Unix.  This
the command I use to convert.

./fop.sh firstdoc.xml -pdf firstdoc.pdf

Is their any easy way to do this or I have to do this every time (using Unix
script) before user can opens this documents in IE.

Thanks in ADVANCE

Mike

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




FOP PCL Rendering - Please help!

2001-09-05 Thread avespa

Hello,

I am trying to render a document using FOP -> PCL.  I am seeing a few issues
though:

1) I have a little image in GIF format that I am rendering in the page - it
comes all distroted and blurry - do I have to change it to another format?

2)  I get errors in the log file from my app, such as

WARNING: Number of cell columns under table-row not equal to number of
table-columns

repeated six or so times.  The formatting of the printout looks a bit off
(it seems to be missing a few spaces at the top ) but this looks fine when
rendered as a PDF.  Are there any good guidelines folks have for a
stylesheet that would be used to render PCL vs PDF?

3) Finally, does anyone know what level of PCL is actually being generated?
I want to make sure this will work and be interpretted on as many HP
printers as possible - the two that I have tried it on have the above issues
of blurry images and header spacing.

I'd really appreciate anyone willing to help!

Thanks very much,

Tony



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




NullPointerException. Can someone help me?

2001-09-06 Thread Jean-François Selber

I try to use fop (0.20.1) API
(not by command line)

Library in path:

xsltc.jar;runtime.jar;JLex.jar;java_cup.jar;BCEL.jar;xerces.jar;xalan.jar;fo
p.jar;w3c.jar;rt.jar;batik.jar;jimi-1.0.jar

code:

Driver driver = new Driver(new InputSource(foReader), pdfOutputStream);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();

resultat:

FATAL ERROR : null
java.lang.NullPointerException
 at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
Compiled Code)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
 at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java, Compiled
Code)
 at org.apache.fop.apps.Driver.(Driver.java:189)
 at org.apache.fop.apps.Driver.(Driver.java:193)

Can someone help me?
thanks


- Message d'origine -
De : "COFFMAN Steven" <[EMAIL PROTECTED]>
À : <[EMAIL PROTECTED]>
Envoyé : jeudi 30 août 2001 17:35
Objet : RE: NullPointerException


> So you're using FOP 0.20.1, you've got fop.jar, batik.jar, xerces.jar,
> xalan.jar, and jimi.jar in your classpath, right?
>
> One way to do it, is to embed FOP according to website:
> http://xml.apache.org/fop/embedding.html
>
> Which describes this:
>
> Driver driver = new Driver(new InputSource (args[0]),
>new FileOutputStream(args[1]));
> driver.setRenderer(RENDER_PDF);
> driver.run();
>
> However, if you can't do it this way, you need to provide more information
> than what you did for anyone to be able to help.
> -Steve
> -Original Message-
> From: Jean-François Selber [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 30, 2001 9:45 AM
> To: [EMAIL PROTECTED]
> Subject: NullPointerException
>
>
> can someone help me?
>
> thanks
>
> >
> >
> > > Driver driver = new Driver();
> > >
> > > java.lang.NullPointerException
> > >  at
> > >
> org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
> > > Compiled Code)
> > >  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
> > >  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
> > >  at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java,
> Compiled
> > > Code)
> > >  at org.apache.fop.apps.Driver.(Driver.java:189)
> > >
> > > what can I do?
> > >
> > > thanks
> > > jf
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: FOP WARNING - Please Help!

2001-09-25 Thread Savino, Matt C
d output stream
>  org.apache.fop.apps.Driver driver = new org.apache.fop.apps.Driver();
>  driver.setRenderer(driver.RENDER_PDF);
>  driver.setOutputStream(  );
> 
>  // 4. Create SAXResult based on FOP Driver content handler which 
>  // will accept SAX events and build FOP tree
>  javax.xml.transform.sax.SAXResult saxResult =
>new javax.xml.transform.sax.SAXResult( 
> driver.getContentHandler() );
> 
>  // 5. Use the Transformer to transform an XML Source and 
> send the output 
>  // to a Result object.
>  //Implicitely it will create the FOP tree by firing SAX events
>  transformer.transform( , saxResult );
> 
> 
> YS
> -Original Message-
> From: Semprini Davide [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 9:42 AM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP WARNING
> 
> 
> Okay,
> 
> The example that I give is only to explain
> that you can perform the PDF in two distinc phase
> 1) perform a trasformation 
> 2) use driver
> 
> You can use the "tranform method" 
> with input like Dynamic xml (Dom Document) or urlXML  
> and getting out a fo (Dom Document) or Writer object
> YOU HAVE A LOT OF TRANSFORM TO USE!!
> YOU HAVE TO SEE THE APIDOC FOR THE
> COMPLETE DOCUMENTATION
> 
> For example in my project I use
> xalan transform and with some
> conversion I use the Fop driver
> and my XML is dynamic.
> WITH Transformer XALAN: 
> StringWriter SstringWriter = new StringWriter();
> /* this is the fo file */
>  StreamResult SstreamResult = new StreamResult(SstringWriter);
> 
> transformer.transform(SstreamSourceXML, SstreamResult)
> 
> /* convert the fo file in a right format for driver
>  ByteArrayOutputStream outPDF = new ByteArrayOutputStream();
>  SResult = SstringWriter.toString();   
>  ByteArrayInputStream str = new 
> ByteArrayInputStream(SResult.getBytes());
> 
>  Driver driver = new Driver(new InputSource(str), outPDF);
> 
> 
> Is this performance? I think yes!!
> 
> Bye
>   
> 
> Amit wrote:
> 
> Looking at your code I am guessing that you wrote the fo file 
> out to the
> filesystem and then used the driver to convert it to PDF...how is
> performance on that? 
> Instead of writing the file out to the file system did you 
> try converting
> into some sorta stream and use the driver?? 
> thanks for your help 
> Amit 
> Semprini Davide wrote: 
> Hi, 
> I have had the same problem 
> Nobody give me a response! 
> This code in FOP Home page don't work (for me!) ! 
> Driver driver = new Driver();  driver.setRenderer(Driver.RENDER_PDF);
> InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
> XMLReader parser = inputHandler.getParser();  
> driver.setOutputStream(new
> FileOutputStream(outFile));  driver.render(parser,
> inputHandler.getInputSource());
> 
> I have solved the problem using 2 phase: 
> 1) generate the transformation using XSLTrasform, 
> Xalan1Transform etc...
> (you can choose) 
> code: 
> XSLTransform traXSLT = new XSLTransform(); 
> traXSLT.transform(urlXML, urlXSL, urlFoFile); 
> You can choose 4 transform type (see the api documentation) 
> 2) Apply the result at the driver 
> FileInputStream file = new FileInputStream(urlFoFile); 
> response.setContentType("application/pdf"); 
> Driver driver = new Driver(new InputSource(file), out); 
> driver.setRenderer(Driver.RENDER_PDF); 
> driver.run(); 
> byte[] content = out.toByteArray(); 
> response.setContentLength(content.length); 
> response.getOutputStream().write(content); 
> response.getOutputStream().flush(); 
> THIS CODE WORK FINE!!! 
> Bye 
>   
>   
> Amit wrote: 
> I am trying to generate PDFs using FOP-0.20.1. The input 
> files are xmland
> xsl filesI am using JRun3.0 with java1.2.2Here is the error I 
> getWARNING:
> Unknown formatting object ^rootAnybody any
> ideas?
> -T
> o unsubscribe, e-mail: [EMAIL PROTECTED] 
> additional
> commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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




RE: FOP WARNING - Please Help!

2001-09-25 Thread Savino, Matt C
parse that
> XML
> again (FOP will do it for you, but it takes time).  A better 
> solution, as I
> already
> said before, is to register FOP as a receiver of SAX events 
> fired by XALAN
> on the first transformation - this was you eliminate both 
> problems and do
> all
> your work in one pass.  Just create a Transformer from the 
> stylesheet and do
> 
>  // 3. Create FOP driver and set rendering mode and output stream
>  org.apache.fop.apps.Driver driver = new org.apache.fop.apps.Driver();
>  driver.setRenderer(driver.RENDER_PDF);
>  driver.setOutputStream(  );
> 
>  // 4. Create SAXResult based on FOP Driver content handler which 
>  // will accept SAX events and build FOP tree
>  javax.xml.transform.sax.SAXResult saxResult =
>new javax.xml.transform.sax.SAXResult( 
> driver.getContentHandler() );
> 
>  // 5. Use the Transformer to transform an XML Source and 
> send the output 
>  // to a Result object.
>  //Implicitely it will create the FOP tree by firing SAX events
>  transformer.transform( , saxResult );
> 
> 
> YS
> -Original Message-
> From: Semprini Davide [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 9:42 AM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP WARNING
> 
> 
> Okay,
> 
> The example that I give is only to explain
> that you can perform the PDF in two distinc phase
> 1) perform a trasformation 
> 2) use driver
> 
> You can use the "tranform method" 
> with input like Dynamic xml (Dom Document) or urlXML  
> and getting out a fo (Dom Document) or Writer object
> YOU HAVE A LOT OF TRANSFORM TO USE!!
> YOU HAVE TO SEE THE APIDOC FOR THE
> COMPLETE DOCUMENTATION
> 
> For example in my project I use
> xalan transform and with some
> conversion I use the Fop driver
> and my XML is dynamic.
> WITH Transformer XALAN: 
> StringWriter SstringWriter = new StringWriter();
> /* this is the fo file */
>  StreamResult SstreamResult = new StreamResult(SstringWriter);
> 
> transformer.transform(SstreamSourceXML, SstreamResult)
> 
> /* convert the fo file in a right format for driver
>  ByteArrayOutputStream outPDF = new ByteArrayOutputStream();
>  SResult = SstringWriter.toString();   
>  ByteArrayInputStream str = new 
> ByteArrayInputStream(SResult.getBytes());
> 
>  Driver driver = new Driver(new InputSource(str), outPDF);
> 
> 
> Is this performance? I think yes!!
> 
> Bye
>   
> 
> Amit wrote:
> 
> Looking at your code I am guessing that you wrote the fo file 
> out to the
> filesystem and then used the driver to convert it to PDF...how is
> performance on that? 
> Instead of writing the file out to the file system did you 
> try converting
> into some sorta stream and use the driver?? 
> thanks for your help 
> Amit 
> Semprini Davide wrote: 
> Hi, 
> I have had the same problem 
> Nobody give me a response! 
> This code in FOP Home page don't work (for me!) ! 
> Driver driver = new Driver();  driver.setRenderer(Driver.RENDER_PDF);
> InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
> XMLReader parser = inputHandler.getParser();  
> driver.setOutputStream(new
> FileOutputStream(outFile));  driver.render(parser,
> inputHandler.getInputSource());
> 
> I have solved the problem using 2 phase: 
> 1) generate the transformation using XSLTrasform, 
> Xalan1Transform etc...
> (you can choose) 
> code: 
> XSLTransform traXSLT = new XSLTransform(); 
> traXSLT.transform(urlXML, urlXSL, urlFoFile); 
> You can choose 4 transform type (see the api documentation) 
> 2) Apply the result at the driver 
> FileInputStream file = new FileInputStream(urlFoFile); 
> response.setContentType("application/pdf"); 
> Driver driver = new Driver(new InputSource(file), out); 
> driver.setRenderer(Driver.RENDER_PDF); 
> driver.run(); 
> byte[] content = out.toByteArray(); 
> response.setContentLength(content.length); 
> response.getOutputStream().write(content); 
> response.getOutputStream().flush(); 
> THIS CODE WORK FINE!!! 
> Bye 
>   
>   
> Amit wrote: 
> I am trying to generate PDFs using FOP-0.20.1. The input 
> files are xmland
> xsl filesI am using JRun3.0 with java1.2.2Here is the error I 
> getWARNING:
> Unknown formatting object ^rootAnybody any
> ideas?
> -T
> o unsubscribe, e-mail: [EMAIL PROTECTED] 
> additional
> commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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




AW: FOP WARNING - Please Help!

2001-09-25 Thread Beer, Christian

I had the same problem with the 0.20.1 release. Try using the actual
cvs version. There it works!

Christian

-Ursprüngliche Nachricht-
Von: Savino, Matt C [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 26. September 2001 01:37
An: '[EMAIL PROTECTED]'
Betreff: RE: FOP WARNING - Please Help!


(I just realize this message might be pretty hard to read, so I added <<<>>>
at the beginning and end of code and error blocks.)

Shkuro, I have tried to replicate your solution and I still get strange
errors. Here is the error I get:

<<<>>>
D:\Precision\RV40_Working\pvh>java FOtoPDF
building formatting object tree
building formatting object tree
javax.xml.transform.TransformerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1212)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:143)
at FOtoPDF.main(FOtoPDF.java:41)
-
java.lang.NullPointerException
at
org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:167)
at
org.apache.xalan.transformer.QueuedStartDocument.flush(QueuedStartDocument.j
ava:108)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
r.java:758)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHandle
r.java:245)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHandle
r.java:209)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
704)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:143)
at FOtoPDF.main(FOtoPDF.java:41)
<<<>>>

It looks like maybe it's trying to build the formatting tree twice? 

Here is my code:
<<<>>>
DocumentBuilderFactory dFactory =
DocumentBuilderFactory.newInstance();
dFactory.setNamespaceAware(true);
DocumentBuilder dBuilder = dFactory.newDocumentBuilder();

org.w3c.dom.Document xmlDoc = dBuilder.parse(xmlFilename);
DOMSource xmlDomSource = new DOMSource(xmlDoc);

org.w3c.dom.Document xslDoc = dBuilder.parse(xslFilename);
DOMSource xslDomSource = new DOMSource(xslDoc);

TransformerFactory tFactory = TransformerFactory.newInstance();
javax.xml.transform.Templates templates =
tFactory.newTemplates(xslDomSource);
Transformer transformer = templates.newTransformer();

org.apache.fop.apps.Driver driver = new
org.apache.fop.apps.Driver();
driver.setErrorDump(true);
driver.setRenderer(driver.RENDER_PDF);
driver.setOutputStream(new FileOutputStream(pdfFilename));

javax.xml.transform.sax.SAXResult saxResult = new
javax.xml.transform.sax.SAXResult( driver.getContentHandler() );
transformer.transform(xmlDomSource, saxResult);
<<<>>>

Someone also said this may be fixed in the latest CVS. I downloaded
Fop-0.20.1-src.tar.gz on 9/17/01. Is there something more recent? I only ask
because my ridiculous company still hasn't restored our internet access
since Nimda.

I would also be happy if I could get render(dom) working when applied to a
dynamically-generated DOM object. I can get it to work on a DOM generated
from a file, but not on the same DOM generated from an XSLT transform. I'd
rather not have to save my XSLT output to a temp file every time I want to
generate a PDF document. I described this case thoroughly at the end of the
'Does render(dom) actually work?' thread.

I combine this code with what I have above and render(dom) works fine:

<<<>>>
   File foFile = new File(foFilename);
   StreamResult streamResult = new StreamResult(foFile);

   transformer.transform(xmlDomSource, streamResult);
   org.w3c.dom.Document foDoc = dBuilder.parse(foFilename);
   DOMSource foDomSource = new DOMSource(foDoc);
 ...
   driver.render(foDoc);
<<<>>>

But if I try it this way:

<<<>>>
DOMResult domResult = new DOMResult();

transformer.transform(xmlD

RE: FOP WARNING - Please Help!

2001-09-26 Thread Savino, Matt C

I downloaded and built the latest CVS. When I tried to use the
XSLTInputHandler, my error switched from the weird one I was getting to yet
another null pointer exception. That got me thinking maybe I should just try
doing the simplest transform of all time and see if it isn't something with
my stylesheet. Anyway the problem was I only had the xsl namespace defined
in my stylesheet root element and not the fo namespace.

http://www.w3.org/1999/XSL/Transform"; version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format";   (missing)
>

I probably should have known this. I think someone even mentioned it, but I
wasn't sure what they were talking about. Anyway, the good news is that
after three days of fiddling I feel like I know FOP pretty well. I also have
a much better grasp of SAX and DOM.

Again, thanks for all your help. You probably haven't heard the last of me.

-Matt Savino


-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 11:32 PM
To: '[EMAIL PROTECTED]'
Subject: AW: FOP WARNING - Please Help!


I had the same problem with the 0.20.1 release. Try using the actual
cvs version. There it works!

Christian

-Ursprüngliche Nachricht-
Von: Savino, Matt C [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 26. September 2001 01:37
An: '[EMAIL PROTECTED]'
Betreff: RE: FOP WARNING - Please Help!


(I just realize this message might be pretty hard to read, so I added <<<>>>
at the beginning and end of code and error blocks.)

Shkuro, I have tried to replicate your solution and I still get strange
errors. Here is the error I get:

<<<>>>
D:\Precision\RV40_Working\pvh>java FOtoPDF
building formatting object tree
building formatting object tree
javax.xml.transform.TransformerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1212)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:143)
at FOtoPDF.main(FOtoPDF.java:41)
-
java.lang.NullPointerException
at
org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:167)
at
org.apache.xalan.transformer.QueuedStartDocument.flush(QueuedStartDocument.j
ava:108)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
r.java:758)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHandle
r.java:245)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHandle
r.java:209)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
704)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:143)
at FOtoPDF.main(FOtoPDF.java:41)
<<<>>>

It looks like maybe it's trying to build the formatting tree twice? 

Here is my code:
<<<>>>
DocumentBuilderFactory dFactory =
DocumentBuilderFactory.newInstance();
dFactory.setNamespaceAware(true);
DocumentBuilder dBuilder = dFactory.newDocumentBuilder();

org.w3c.dom.Document xmlDoc = dBuilder.parse(xmlFilename);
DOMSource xmlDomSource = new DOMSource(xmlDoc);

org.w3c.dom.Document xslDoc = dBuilder.parse(xslFilename);
DOMSource xslDomSource = new DOMSource(xslDoc);

TransformerFactory tFactory = TransformerFactory.newInstance();
javax.xml.transform.Templates templates =
tFactory.newTemplates(xslDomSource);
Transformer transformer = templates.newTransformer();

org.apache.fop.apps.Driver driver = new
org.apache.fop.apps.Driver();
driver.setErrorDump(true);
driver.setRenderer(driver.RENDER_PDF);
driver.setOutputStream(new FileOutputStream(pdfFilename));

javax.xml.transform.sax.SAXResult saxResult = new
javax.xml.transform.sax.SAXResult( driver.getContentHandler() );
transformer.transform(xmlDomSource, saxResult);
<<<>>>

Someone also said this may be fixed in the latest CVS. I downloaded
Fop-0.20.1-src.tar.gz on 9/17/01. Is there something more recent? I only a

Re: HELP: PDF generation hangs

2001-11-27 Thread Joerg Pietschmann

Vladimir Sneblic <[EMAIL PROTECTED]> wrote:
> I have a problem when I try to generate a PDF file from a FOP file that
> contains an SVG image. It doesn't matter if the image is inline or if it's
> stored as a separate file. My problem is that the PDF file gets generated
> but for some reason the java thread "hangs", i.e. even though the work is
> finished it doesn't stop executing. Has anyone else encountered this
> problem?

This is a well known problem with the Java runtime, which should
be fixed in JDK 1.4 (along with a few other major annoynaces).
What probably happens is that Batik uses AWT functionality for
SVG rendering, which often (but not always) causes the graphics
subsystem to create an additional thread, which will still run
after the main thread expires. This may also depend on the platform
and the underlying graphics system.
A temporary fix is to add System.exit(0) to the main functions
of applications which use FOP (or Batik). JDK 1.4 was still beta
last time i checked, you may want to try it anyway.

HTH
J.Pietschmann

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




RE: HELP: PDF generation hangs

2001-11-28 Thread Vladimir Sneblic

Thanks a lot for this, I thought that this was a FOP problem so I didn't
even stop to think that it might be something like this. 

Thanks again,

Vlad

 -Original Message-
From:   Joerg Pietschmann [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, 28 November 2001 8:47 p.m.
To: FOP List
Subject:    Re: HELP: PDF generation hangs

Vladimir Sneblic <[EMAIL PROTECTED]> wrote:
> I have a problem when I try to generate a PDF file from a FOP file that
> contains an SVG image. It doesn't matter if the image is inline or if it's
> stored as a separate file. My problem is that the PDF file gets generated
> but for some reason the java thread "hangs", i.e. even though the work is
> finished it doesn't stop executing. Has anyone else encountered this
> problem?

This is a well known problem with the Java runtime, which should
be fixed in JDK 1.4 (along with a few other major annoynaces).
What probably happens is that Batik uses AWT functionality for
SVG rendering, which often (but not always) causes the graphics
subsystem to create an additional thread, which will still run
after the main thread expires. This may also depend on the platform
and the underlying graphics system.
A temporary fix is to add System.exit(0) to the main functions
of applications which use FOP (or Batik). JDK 1.4 was still beta
last time i checked, you may want to try it anyway.

HTH
J.Pietschmann

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

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




Embedding fop in IE..Help!!!

2001-10-15 Thread Rajagopal. V

Hi All
I have an XML file which i combine with a XSL to
generate the FO file and render it. It works fine with
Netscape but im having a tough time with IE. It is
displaying garbage on teh screen. All i get is binary
characters for the PDF File. I have IE 5.5 Sp1. and i
tried all the workarounds. These are the ones I tried
1) Changed the name of the file to be .pdf so that IE
will look at the extension and treat it as PDF

2) Bloated the file size to be more than 8k so that
there is no buffer problem with IE

3) Downloaded the Fo file generated and ran the fo
command line and it generates the PDF properly(as an
application). So there is nothing wrong with the FO.

IS there any other way to get a PDF on IE? Im not sure
why im getting binary content all over the screen?

Please HElpp...

TIA
Raj

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Re: HELP WITH FONTS PLEASE!

2001-12-21 Thread cn
Hey Gorka. Try this before you declare the Driver. It should workuserConfigFile = new File(userConfig);options = new Options(userConfigFile); Claus Nielsen  Gorka Echevarría <[EMAIL PROTECTED]>02-11-2001 12:24Please respond to fop-dev To: "Lista-FOP" <[EMAIL PROTECTED]> cc:  bcc:  Subject: HELP WITH FONTS PLEASE! Hi all,I have a problem to generate a pdf document from a servlet appling fonts that are not included by default in the Fop especification.If I execute Fop from the command line, I have no problem at all, and it works perfectly.I know how to especify the file "userconfig.xml" in the command line -> "Fop -c conf/userconfig.xml", but I don´t know how to do it in the servlet to allow the use of diferent kinds of font in the xsl-fo file.My source code in the servlet looks like this:            ByteArrayOutputStream out = new ByteArrayOutputStream();    response.setContentType("application/pdf");    Driver driver = new Driver();    driver.setRenderer(Driver.RENDER_PDF);    driver.setOutputStream(out);    driver.render(input.getParser(), input.getInputSource());    byte[] content = out.toByteArray();    response.setContentLength(content.length);    response.getOutputStream().write(content);    response.getOutputStream().flush();I've read the document fonts.pdf already (thank you very much Sergei) and I have read  the page http://xml.apache.org/fop/fonts.html but i have found no solution.Can anyboy help me please?Gorka Echevarría VélezBILBOMÁTICA, S.A.[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



RE: HELP WITH FONTS PLEASE!

2001-12-25 Thread Gorka Echevarría



Thank you very much Claus,
 
IT WORKS!!

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Friday, December 21, 2001 12:45 
  PM
  Subject: Re: HELP WITH FONTS 
PLEASE!
  
  Hey Gorka.
   
  Try this before you declare the Driver. It should work
  userConfigFile = new File(userConfig);options = new 
  Options(userConfigFile);
   
  Claus Nielsen
   
  Gorka Echevarría <[EMAIL PROTECTED]>02-11-2001 12:24Please respond to 
  fop-devTo: "Lista-FOP" <[EMAIL PROTECTED]>cc: bcc: Subject: HELP WITH FONTS 
  PLEASE!
  Hi all,I have a problem to generate a pdf document from a servlet 
  appling fonts that are not included by default in the Fop 
  especification.If I execute Fop from the command line, I have no problem 
  at all, and it works perfectly.I know how to especify the file 
  "userconfig.xml" in the command line -> "Fop -c conf/userconfig.xml", but I 
  don´t know how to do it in the servlet to allow the use of diferent kinds 
  of font in the xsl-fo file.My source code in the servlet looks like 
  this:            
  ByteArrayOutputStream out = new 
  ByteArrayOutputStream();    
  response.setContentType("application/pdf");    
  Driver driver = new 
  Driver();    
  driver.setRenderer(Driver.RENDER_PDF);    
  driver.setOutputStream(out);    
  driver.render(input.getParser(), 
  input.getInputSource());    
  byte[] content = 
  out.toByteArray();    
  response.setContentLength(content.length);    
  response.getOutputStream().write(content);    
  response.getOutputStream().flush();I've read the document fonts.pdf 
  already (thank you very much Sergei) and I have read  the page http://xml.apache.org/fop/fonts.html but i have found no solution.Can anyboy help me 
  please?Gorka 
  Echevarría VélezBILBOMÁTICA, S.A.[EMAIL PROTECTED]- 
  To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
  commands, email: [EMAIL PROTECTED]


need help about adding fonts

2002-01-24 Thread tony

hi,
I followed the  procedure to add fonts through the userconfig.xml.
But i am facing a problem, the pdf output file's size increases a lot.
I have a .fo file which outputs a pdf file of 6kb.
If i add support for 'Times New Roman' the file size increases to 35kb.

Can u tell me the reason ?
Thanks,
Tony




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Build problems... please help/advise...

2003-03-13 Thread Robert Kylberg
Hi,

I'm new to FOP, just joined the mailing list and I'm not sure what  
exactly is going on so I'd *really* appreciate it if someone could  
explain how to build FOP from the latest src (if it is even possible).  
I've been unable to build FOP from the src archive as of 3/11. A couple  
of the error messages I get are:

[javac]  
/Users/bkylberg/Projects/xml-fop/src/java/org/apache/fop/image/ 
analyser/SVGReader.java:204: Method createSVGDocument(java.lang.String,  
java.io.InputStream) not found in class  
org.apache.batik.dom.svg.SAXSVGDocumentFactory [javac]  
SVGDocument doc = (SVGDocument) factory.createSVGDocument(uri, fis);

[javac]  
/Users/bkylberg/Projects/xml-fop/src/java/org/apache/fop/render/ps/ 
PSTextPainter.java:93: class org.apache.fop.render.ps.PSTextPainter  
must be declared abstract. It does not define java.awt.geom.Rectangle2D  
getBounds(org.apache.batik.gvt.TextNode) from interface  
org.apache.batik.gvt.TextPainter.

and so on until the build fails...

The first error can be corrected by calling createDocument instead of  
createSVGDocument. createSVGDocument is an undefined API on  
SAXSVGDocumentFactory so I'm not sure how anyone has been able to  
compile this (ref:  
http://xml.apache.org/batik/javadoc/org/apache/batik/dom/svg/ 
SAXSVGDocumentFactory.html ).

The second error is due to the fact that PSTextPainter claims to  
implement TextPainter (ref:  
http://xml.apache.org/batik/javadoc/org/apache/batik/gvt/ 
TextPainter.html ) but is in fact missing API implementations, among  
which getBounds is one. In fact I believe the implementation of  
PSTextPainter.getOutline(TextNode node) is altogether wrong insofar as  
PROXY_PAINTER isa StrokingTextPainter whose getOutline method takes a  
TextNode *and* a boolean (ref:  
http://xml.apache.org/batik/javadoc/org/apache/batik/gvt/renderer/ 
StrokingTextPainter.html ).

According to the mailing list archives PSTextPainter was recently  
submitted and added to the repository (ref:  
http://marc.theaimsgroup.com/?l=fop-dev&m=104737262930539&w=2 and  
http://marc.theaimsgroup.com/?l=fop-dev&m=104735385419249&w=2 ).

Perhaps everyone is using a different version of Java than I am ;-) but  
if not, then I'm wondering how anyone is able to build FOP given these  
defects? Am I the only one whose tried to build FOP from scratch in the  
past 2 days?

Any advice would be greatly appreciated.

-- Bob

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


PAGE NUMBER HELP IN PDF

2003-03-20 Thread Shyam Sundar
Title: PAGE NUMBER HELP IN PDF





hi,


i need some help regarding page numbers in pdf output.


i have a pdf which spans for 10 pages. i am able to print page numbers for every page.


but the requirement is the ouptut should be like 1of 10 for the first page,2 of 10 for the second page etc.


can anyone help me.ASAP


CHEERS
shyam






need help xalan-J images

2002-04-10 Thread Torsten Erler

I'm using XALAN Java 2 to translate "xsl" stylesheets to "fo" and the result
to "pdf"
I have to insert a graphic using URL from xml file









This works fine, but all images are scaled to the specified height and
width.
If I remove this attributes, all images greater than page size
()
produce an infinite loop on translation.
I tried to use "max-height" and "max-width", but xalan ignores this and
tells me:
Warning: property - "max-height" is not implemented yet.
Warning: property - "max-width" is not implemented yet.

Can anyone tell me another solution to find out whether the image must be
scaled to fit the page size or not?

ThanX Torsten


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




Duplex printing problem. Please help.

2002-08-12 Thread IvanLatysh

Hi.

I have problem with printing on duplex printer HP LaserJet IIISi.
Report have 2 pages.
If I am printing simplex - Ok.
But if I am trying to print duplex only one side is printing, but printer flipping the 
page and
indicate that it is duplex printing.
The second page is going to another page, like simplex printing.

I did check, there are only 2 pages, nothing between.
This is page declaration:





Using FOP 0.20.3. Printing from AWT preview window.

Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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




Re: Help! About font problem.

2002-11-21 Thread Oleg Tkachenko
Yueshu Jesse wrote:

In order to resolve the display "..." problem, I embed a truetype 
font by setting up userconfig.xml and call new Option in program. So, 
the PDF file created by FOP can show the foreign words correctly. But at 
this time, there are some unbreak text block displaying out of the body 
region. Somebody help me please.
Without seeing an example I understand nothing from your explanation. Provide 
a small fo snippet, which illustrates your problem. And post it to fop-user 
list, please.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


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



need help regarding properties implementions

2002-11-27 Thread sri vela
Hi all,
I would like to know what are the properties that
people are working on. can i get the list of
properties that people are working on right now. any
body is maintaining the list. If so where can i see
that list of properties. The reason why i am asking is
because i am also planning to implement some
properties.

Thank you very much
Sri

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: FOP performance - frustrating.. help!!

2002-12-27 Thread Rhett Aultman
Title: FOP performance - frustrating.. help!!



Really, what rows look like in XML is not helpful to us.  What is 
helpful is seeing the FO, since FOP tranforms from the FO and not really from 
the XML.  You may be using FO markup that's making the transformation and 
rendering costly, but we wouldn't be able to tell you for sure without seeing 
the FO.

  -Original Message-From: Lee, Insoo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 27, 2002 3:34 
  PMTo: '[EMAIL PROTECTED]'Subject: FOP performance - 
  frustrating.. help!!
  >   Hello, I'm getting a little frustrated with 
  FOP performance.>   We are generating an XML on the fly that 
  contains a few tables with> about 1,000 rows in 
  total.>   We passdown this XML along with XSL to the 
  transformer to generate PDF> from our servlet.>   
  (transformer.transform( inXML, new SAXResult(> 
  driver.getContentHandler()));  )>   It works well, but 
  it works slow.>   It takes about 5 minutes for 1,000 rows and 
  this is only for transformer> translation (excluing any data query time 
  or jdom XML building time)>   I read through past emails/FAQs 
  and I think I tried them all and it> still does not improve the 
  performance...>>   Please 
  help!!>  >   Here is what I have 
  done.>>   1) run with more memory - yes I tried with 
  512MB (I don't get> OutOfMemory error)>   2) run in 
  separate VM - only helps other requests coming to the site>   
  3) try with the latest FOP - I did - mine is fop-0.20.4>   4) 
  try with the latest xalan.jar and xerces.jar - tried them, but no> 
  improvement>   5) cache XSL style sheet - didn't really 
  help...>   6) use multiple page-sequence - got it to work and 
  I don't get> OutOfMemeory exception, but still performance didn't get 
  better.>  (even if 
  I break them into multiple page-sequences, I will still> have to read 
  through one row at a time, right? - that's why performance is> not 
  really improving..)>>   7) no forward-reference - I 
  don't have any page numbers>   8) try with new JDK - trying 
  with JDK 1.3>   9) seralize servlet request - haven't done 
  this, but I doubt this will> have any performance impact (I'm testing 
  with one request for now)>   10) no images - I don't have 
  any...>   11) Don't make the XML tree too deep - mine is very 
  flat with 2 levels> deep.>>   I have 1,000 rows 
  and each row looks something like following in XML>>   
  >     
  539> 
      Some 
  Fund>     
  0.376> 
      
  NA> 
      
  NA> 
      
  NA>   
    NA> 
      
  1.4> 
      
  1.58000> 
      
  1.>   
    09 Dec 2002> 
      
  USD>   
    I>   
  >  >>   Here is the 
  question:> Is this normal to take this long - 5 
  minutes - to produce a few tables> with combined total 1,000 rows 
  (about 30 pages)?>> Any other better 
  way?>>   Thank you for your 
  suggestions.>>   Regards,>   
  IL-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For additional 
  commands, email: 
[EMAIL PROTECTED]


RE: FOP performance - frustrating.. help!!

2002-12-27 Thread Lee, Insoo
Title: FOP performance - frustrating.. help!!



Thanks for your reply... given XML and XSL, how would I generate FO so I 
can post it 
Thanks

  -Original Message-From: Rhett Aultman 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 27, 2002 
  3:35 PMTo: [EMAIL PROTECTED]Subject: RE: FOP 
  performance - frustrating.. help!!
  Really, what rows look like in XML is not helpful to us.  What is 
  helpful is seeing the FO, since FOP tranforms from the FO and not really from 
  the XML.  You may be using FO markup that's making the transformation and 
  rendering costly, but we wouldn't be able to tell you for sure without seeing 
  the FO.
  
-Original Message-From: Lee, Insoo 
[mailto:[EMAIL PROTECTED]]Sent: Friday, December 27, 2002 3:34 
PMTo: '[EMAIL PROTECTED]'Subject: FOP performance 
- frustrating.. help!!
>   Hello, I'm getting a little frustrated with 
FOP performance.>   We are generating an XML on the fly 
that contains a few tables with> about 1,000 rows in 
total.>   We passdown this XML along with XSL to the 
transformer to generate PDF> from our servlet.>   
(transformer.transform( inXML, new SAXResult(> 
driver.getContentHandler()));  )>   It works well, but 
it works slow.>   It takes about 5 minutes for 1,000 rows 
and this is only for transformer> translation (excluing any data 
query time or jdom XML building time)>   I read through 
past emails/FAQs and I think I tried them all and it> still does not 
improve the performance...>>   Please 
help!!>  >   Here is what I have 
done.>>   1) run with more memory - yes I tried with 
512MB (I don't get> OutOfMemory error)>   2) run in 
separate VM - only helps other requests coming to the 
site>   3) try with the latest FOP - I did - mine is 
fop-0.20.4>   4) try with the latest xalan.jar and 
    xerces.jar - tried them, but no> improvement>   5) 
cache XSL style sheet - didn't really help...>   6) use 
multiple page-sequence - got it to work and I don't get> OutOfMemeory 
exception, but still performance didn't get 
better.>  (even 
if I break them into multiple page-sequences, I will still> have to 
read through one row at a time, right? - that's why performance is> 
not really improving..)>>   7) no forward-reference 
- I don't have any page numbers>   8) try with new JDK - 
trying with JDK 1.3>   9) seralize servlet request - 
haven't done this, but I doubt this will> have any performance impact 
(I'm testing with one request for now)>   10) no images - I 
don't have any...>   11) Don't make the XML tree too deep - 
mine is very flat with 2 levels> deep.>>   I 
have 1,000 rows and each row looks something like following in 
XML>>   > 
    
539> 
    Some 
Fund>     
0.376> 
    
NA> 
    
NA> 
    
NA>   
  NA> 
    
1.4> 
    
1.58000> 
    
1.>   
  09 Dec 2002> 
    
USD>   
  I>   
>  >>   Here is the 
question:> Is this normal to take this long - 
5 minutes - to produce a few tables> with combined total 1,000 rows 
(about 30 pages)?>> Any other better 
way?>>   Thank you for your 
suggestions.>>   Regards,>   
IL-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For additional 
commands, email: 
[EMAIL PROTECTED]


RE: FOP performance - frustrating.. help!!

2002-12-27 Thread Arnd Beißner
> Thanks for your reply... given XML and XSL, how would I generate FO so I 
can post it 

java -cp xalan-2.4.1.jar org.apache.xalan.xslt.Process -IN yourxml.xml 
-XSL yourxslt.xsl -OUT yoroutput.fo

The classpath is just an example - use the name of your xalan.jar

Arnd Beissner
--
Cappelino Informationstechnologie GmbH
Arnd Beißner


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




Antwort: FOP performance - frustrating.. help!!

2002-12-27 Thread Arnd Beißner
> It works well, but it works slow.
> It takes about 5 minutes for 1,000 rows and this is only for transformer
> translation (excluing any data query time or jdom XML building time)

When you prepare an actual FO file for us to see, please check how long
xalan takes for the xml->fo translation step. Just to make sure..

As for your XML file: you may want to try rewriting the elements below
the  node as attributes of the row node. Since you are generating the
files on the fly, this should improve performance a little. With 1000 row
elements, thats about 1 less nodes to process. If and how much this 
saves
depends on the DOM and xslt processor you use, of course.

In general, I find the 5 minutes you state a little long. FOP does have 
severe
performance problemes with large tables, but not that bad. We generate a 
30
page document of this kind in about 40 seconds on a 1Ghz Athlon.

One thing that you could try is to increase the java heap to 1024MB. 512MB 
is
not excessive for the kind of document you state. Maybe you don't get out 
of
memory messages so far, but if memory is tight, the JVM will garbage 
collect
a lot - and this is costly for FOP. Try to find a heap size where no 
garbage
collection is necessary during processing of a single document.

One other thing: If you generate PDFs that are costly in terms of CPU 
and/or memory,
think about generating the PDFs in the background, then email them to your
web site's visitors. If your use case could live with that, I'd go that 
route.
Even with a FOP that's 20 times faster, you'll have a hard time 
guaranteeing
a certain quality of service for your web site. At the very least, you'd 
have
to use a rendering queue with a pool of renderers since you don't have 
infinite
memory (I suppose).

Hope this helps,

Arnd Beissner
--
Cappelino Informationstechnologie GmbH
Arnd Beißner

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




RE: FOP performance - frustrating.. help!!

2002-12-27 Thread Lee, Insoo

nyamdweb03:/home/leeins/weblogic/myserver/public_html/fd/xml$java -cp
/home/leeins/weblogic/3rd_party_jars_SUN/xalan.jar:$CLASSPATH
org.apache.xalan.xslt.Process -IN rates.xml -XSL rates_pdf.xsl -OUT rates.fo

this step took about 1 minute...
 
Here is the lengthy my FO file... (only 1/3  of it.. since it's over 1MB)
Could somebody shed some lights? What am I doing wrong? 
Apologies for the large/messy posting...  (choose no-wrap to see it
better...)
Thanks much!
 
 

http://www.w3.org/1999/XSL/Format";>Rates16 Oct 2002 to
 16 Oct 2002
 Created by RYDERS
   on 05/10/2002
   at 20:55:2
   (CT)
 
 Active EUR Funds
 

   Fund
 
   Date
 
   Daily Factor
 
 1-Day Yield (365 Day Rate)
 
Short 
  
Long
 
   360 Day
 
Rates

   7-Day

Current

Yield

   7-Day
 
Effective

Yield

   30-Day
 
   Yield
 
   NAV1
 (EUR)
 

TBA
ILA Federal Admin - 
  4139 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.10 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.11 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.12 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.13 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.14 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.15 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.
TBA
ILA Federal Inst - 
  4129 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.10 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.11 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.12 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.13 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.14 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.15 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.
TBA
ILA Federal Service - 
  4149 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.10 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.11 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.12 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.13 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.14 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.15 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.
TBA
ILA Money Market Admin - 
  4109 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.10 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.11 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.12 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.13 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.14 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.15 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.
TBA
ILA Money Market Service - 
  4119 Dec
20020.22085000.800.80610250.79506NA0.83.955501.10 Dec
20020.22085000.800.80610250.79506NA0.83.955501.11 Dec
20020.22085000.800.80610250.79506NA0.83.955501.12 Dec
20020.22085000.800.80610250.79506NA0.83.955501.13 Dec
20020.22085000.800.80610250.79506NA0.83.955501.14 Dec
20020.22085000.800.80610250.79506NA0.83.955501.15 Dec
20020.22085000.800.80610250.79506NA0.83.955501.
TBA
ILA Tax-Exempt California Admin - 


-Original Message-
From: Arnd Beißner [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 27, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: RE: FOP performance - frustrating.. help!!


> Thanks for your reply... given XML and XSL, how would I generate FO so I 
can post it 

java -cp xalan-2.4.1.jar org.apache.xalan.xslt.Process -IN yourxml.xml 
-XSL yourxslt.xsl -OUT yoroutput.fo

The classpath is just an example - use the name of your xalan.jar

Arnd Beissner
--
Cappelino Informa

RE: FOP performance - frustrating.. help!!

2002-12-27 Thread jthaemlitz

I also have speed issues, but not this bad.  One thing I do is put a block
around the whole table that sets up my default font.  Not sure if this will
help you any, but it'll clean up the code a little.  Also can you specify
the font you want, like "Helvetica" instead of "Helvetica, Arial, sans".
Just some little things that may help a little.

...


...


...


Hope this helps,

JPT



|-+-->
| |   fop-dev-return-18504-jthaemlitz=oreillyauto.com@XML|
| |   .APACHE.ORG|
| |  |
| |   12/27/02 03:57 PM  |
| |   Please respond to fop-dev  |
| |  |
|-+-->
  >--|
  |  |
  |   To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>  |
  |   cc:    |
  |   Subject:  RE: FOP performance - frustrating.. help!!   |
  >--|





nyamdweb03:/home/leeins/weblogic/myserver/public_html/fd/xml$java -cp
/home/leeins/weblogic/3rd_party_jars_SUN/xalan.jar:$CLASSPATH
org.apache.xalan.xslt.Process -IN rates.xml -XSL rates_pdf.xsl -OUT
rates.fo

this step took about 1 minute...

Here is the lengthy my FO file... (only 1/3  of it.. since it's over 1MB)
Could somebody shed some lights? What am I doing wrong?
Apologies for the large/messy posting...  (choose no-wrap to see it
better...)
Thanks much!



http://www.w3.org/1999/XSL/Format
">Rates16 Oct 2002 to
 16 Oct 2002
 Created by RYDERS
   on 05/10/2002
   at 20:55:2
   (CT)
 
 Active EUR Funds


   Fund
 
   Date
 
   Daily Factor
 
 1-Day Yield (365 Day Rate)
 
Short

Long
 
   360 Day
 
Rates

   7-Day

Current

Yield

   7-Day
 
Effective

Yield

   30-Day
 
   Yield
 
   NAV1
 (EUR)


TBA
ILA Federal Admin -
  4139 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.10 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.11 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.12 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.13 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.14 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.15 Dec
20020.30112001.091.09908801.084032000NA1.090001.188401.
TBA
ILA Federal Inst -
  4129 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.10 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.11 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.12 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.13 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.14 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.15 Dec
20020.34222001.241.24910301.231992000NA1.240001.338401.
TBA
ILA Federal Service -
  4149 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.10 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.11 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.12 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.13 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.14 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.15 Dec
20020.23263000.840.84909950.837468000NA0.84.938401.
TBA
ILA Money Market Admin -
  4109 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.10 Dec
20020.28934001.051.05609101.041624000NA1.080001.205501.11 Dec
2

Re: FOP performance - frustrating.. help!!

2002-12-28 Thread Joerg Pietschmann
On Friday 27 December 2002 22:57, "Lee, Insoo" wrote:
> [run] org.apache.xalan.xslt.Process -IN rates.xml -XSL rates_pdf.xsl -OUT
> rates.fo
>
> this step took about 1 minute...

You seem to use a seriously underpowered machine, or you've complicated
the transformation too much. I routinely transform 1MB files on moderatly
modern hardware in less than 10s.

> Here is the lengthy my FO file... (only 1/3  of it.. since it's over 1MB)

You should not send XML as mail content, it's mangled:
> extent="0.5cm"/>u ence master-reference="anypage">


urgent help needed using FOP

2004-04-01 Thread Jerry
Hi,

I am currently working on a
project which convert binary data in tiff format  into
PDF format. I refer to  the example(FopServlet.java)
and always got  error "Error 500: Content is
not allowed in prolog. ". I could not figure out what
the problem is.  I was stuch by this. Please help me.

Here is the peice of codes. Would you please take a
look and give me a suggestion. I will greatly
appreciate it.  

BTW, the binary data format from database which will
be displayed on the web is in tiff format, not a
formatting object. If it can be displayed directly on
the web in pdf format, it is not necessary to convert
it into pdf first.

thanks,

Jerry

***
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.util.zip.*;
import java.sql.*;
import java.text.*;


import java.net.*;
import java.util.Properties;
import java.awt.image.*;
import com.sun.media.jai.codec.*;
import com.sun.media.jai.*;
import javax.media.jai.JAI;
import javax.media.jai.*;
import javax.media.jai.RenderedOp;
import javax.media.jai.PlanarImage;
import javax.media.jai.OpImage;
import javax.media.jai.util.*;
import
javax.media.jai.remote.SerializableRenderedImage;
import java.awt.image.renderable.ParameterBlock;
import java.lang.Object;
import java.awt.Image;
import javax.swing.ImageIcon;
import java.io.ByteArrayOutputStream.*;


import com.csi.utils.StringUtils;
import com.csi.daserver.global.*;
import com.csi.dcserver.objects.DCSession;
import com.csi.dcserver.exceptions.*;
import com.csi.daserver.utils.MsgPool;
import com.csi.dcserver.crypto.Crypto;


import org.xml.sax.InputSource;

import org.apache.fop.apps.Driver;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.fop.messaging.MessageHandler;

import
org.apache.avalon.framework.logger.ConsoleLogger;
import org.apache.avalon.framework.logger.Logger;


public class ImageDownload extends HttpServlet {

Logger log = null;

public void doGet(HttpServletRequest req,
HttpServletResponse resp) throws ServletException,
IOException {

...

//got the binary data in tiff format from database
and put the binary data in byte array bt
Byte[] bt = (byte[]) v.elementAt(0);

sendPDFBinaryResponse(resp, req, bt,
"application/pdf");
return;
  }
}

//
private void
sendPDFBinaryResponse(HttpServletResponse
res,HttpServletRequest req, byte[]
bt,StringsContTypeHeader) throws IOException,
ServletException{



if(sContTypeHeader=="application/pdf"){

if (log == null) {
log = new
ConsoleLogger(ConsoleLogger.LEVEL_WARN);
MessageHandler.setScreenLogger(log);
 }


renderFO(new InputSource(new
ByteArrayInputStream(bt)), res);


}

 }
  

  
  
  
public void renderFO(InputSource foFile,
HttpServletResponse response) throws ServletException
{
try {
ByteArrayOutputStream out = new
ByteArrayOutputStream();

   
response.setContentType("application/pdf");

Driver driver = new Driver(foFile, out);
driver.setLogger(log);
driver.setRenderer(Driver.RENDER_PDF);
 
driver.run();

byte[] content = out.toByteArray();


response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();



} catch (Exception ex) {
throw new ServletException(ex);
}
}

...

}



This is the exact error I got:

org.xml.sax.SAXParseException: Content is not allowed
in prolog.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1172)
at org.apache.fop.apps.Driver.render(Driver.java:498)
at org.apache.fop.apps.Driver.run(Driver.java:565)



__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/


xml to pdf conversion please help

2001-06-08 Thread M.Eng(Info. Tech. YR-2)

Hello,
I have a problem in converting from xml to pdf.I am 
attaching the code i have written.i have taken readme.xml 
and readme.fo.xsl which is in fop-18 version. I am 
implementing it as a servlet.servlet will execute and it 
will open acrobat reader but it won't display anything on 
the browser.In the server it will give
input XSL; lin1;column 1
XSL Error:could not parse Input XML document
XSL Error: SAX Exception
servlet Exception

My code is as follows.Please help me in this regard.I am 
not able to get the solution.I request everybody in this 
mail list please help me.

public void doGet(HttpServletRequest request, 
  HttpServletResponse res) 
throws ServletException
 { 
 res.setContentType("application/pdf");
 try 
 {
 String version = org.apache.fop.apps.Version.getVersion() ;
 String xslSource ="readme.fo.xsl";
 String xmlSource ="readme.xml";
XSLTResultTarget xsltResult = null;  //
 XSLTProcessor xsltProcessor = 
XSLTProcessorFactory.getProcessor(new
org.apache.xalan.xpath.xdom.XercesLiaison
());  //
PrintWriter out = new PrintWriter(res.getOutputStream());
out1=out;
 org.w3c.dom.Document outDoc = new 
org.apache.xerces.dom.DocumentImpl(); //

XSLTInputSource xmlInput = new XSLTInputSource(new 
StringReader(xmlSource)); //

 XSLTInputSource xslInput = new XSLTInputSource
(xslSource);  //

 xsltResult = new XSLTResultTarget(outDoc);

 xsltProcessor.process (xmlInput, xslInput, xsltResult);

 org.apache.fop.apps.Driver driver = new 
org.apache.fop.apps.Driver();

driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer", 
version);

driver.addElementMapping
("org.apache.fop.fo.StandardElementMapping");

 driver.addElementMapping
("org.apache.fop.svg.SVGElementMapping");

driver.setOutputStream(res.getOutputStream());

 PrintWriter out2 = new PrintWriter(res.getOutputStream());

 driver.buildFOTree(outDoc);

driver.format();

driver.render();

}

with regards
S.M.Guru


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




Help in XML Rendering to PostScript

2001-06-18 Thread avespa

Hello,

I am fairly new to FOP and to Java as well.  I am wondering if anyone has
written a rendering to convert an XML stream to Postscript with FOP (similar
to the PCL or PDF renderer) - I am in desperate need of a mechanism to do
this.  We have a current Java app that converts an XML stream into PDF, but
printing through Adobe Acrobat is too resource intensive on the lower end
machines.  I have tried converting to PCL and then streaming to a port,
which works pretty well, but is not a 100% compatibile (PCL beng only HP)

If anyone knows of a way to convert an XML to PS format using a custom FOP
piece they've written, or knows of a better mechanism, I'd be forever
grateful!

Thanks very much,

Tony

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




Can u help me out please

2001-06-19 Thread sravan kumar

Hi,

I am facing the following program its like this

Initially i generated a pdf file with fo through
commandline by saying
fop file1.fo file1.pdf

It generates a pdf file but now i want to use servlets
and generate the pdf file when i pass xml and xsl
files as parameters but i am not getting an idea
exactly like how to do it please can any one help me
out to solve this problem

Regards
shravan


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




Re: Please help with block breaks

2001-06-20 Thread Eric Dalquist

Unfortunately I do not think any of the keep-* attributes work. At least not
as of FOP 0.18.1 if you read the page:
http://xml.apache.org/fop/implemented.html
the only keep-* attribute listed is keep-with-next and it has (broken) next
to it. I have also tried these using the keep-* tags with no success. I hope
someone can back me up or prove me wrong on this.

-Eric Dalquist

- Original Message -
From: "Heidi Gerken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 2:58 PM
Subject: Please help with block breaks


> I implore any member of this list to give me an answer to my question.
Does
> keep-with-next, keep-with-previous, keep-together or
keep-together.within-page
> work with blocks or list-blocks? If so, how should it be implemented? I
have a
> series of 4 list blocks, like the one below, inside a parent block. I
would like
> all four list blocks within the block to be on the same page; if they
cannot
> fit, I want the entire block to move to the next page. Is this possible?
Would
> someone, please, tell me how I can do this. (I hope you sense the
desperation in
> my email, because I am truly losing my mind over this one.)
>
>  keep-together.within-page="always">
>provisional-distance-between-starts="80pt"
provisional-label-separation="0pt"
> keep-together.within-page="always">
>   
>   
>keep-with-next="always">Abstract:
>   
>
>   
>keep-with-previous="always">
>   
>   
>   
>   
> .
> .
> .
> 
>
>
> Thank you,
> Heidi Gerken
> KM Objects
> 2200 Clarendon Blvd., Suite 1401
> Arlington, VA 22201
> 703.841.4284
> [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Re: Converting XMP to PDF...HELP!!!!!!

2001-08-08 Thread Don Wellington

Hi Mike-

Yes, that is the way to convert xml to pdf.  And, you
need to do it to every file before the user can read
it in a PDF viewer.

An alternative, if you are serving the PDF via a
webserver is to use Cocoon.  With Cocoon2 you can set
it up such that when the web server gets a request for
say file.pdf it will convert file.xml to pdf and
return that to the user.  It has a caching system so
it will only perform the conversion once unless the
xml file has changed.

I hoep that helps.

Don


--- "Patel, Mike" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am able to convert .XML files to .PDF using
> command line on Unix.  This
> the command I use to convert.
> 
> ./fop.sh firstdoc.xml -pdf firstdoc.pdf
> 
> Is their any easy way to do this or I have to do
> this every time (using Unix
> script) before user can opens this documents in IE.
> 
> Thanks in ADVANCE
> 
> Mike
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




RE: Converting XML to PDF...HELP!!!!!!

2001-08-09 Thread Patel, Mike

Hi,

Thanks for quick reply.  Yes, we are planning to serve PDF files via a web
server.  I will defiantly take your tip and test it out with Cocoon.

Thanks a bunch.

Mike

-Original Message-
From: Don Wellington [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: Converting XMP to PDF...HELP!!


Hi Mike-

Yes, that is the way to convert xml to pdf.  And, you
need to do it to every file before the user can read
it in a PDF viewer.

An alternative, if you are serving the PDF via a
webserver is to use Cocoon.  With Cocoon2 you can set
it up such that when the web server gets a request for
say file.pdf it will convert file.xml to pdf and
return that to the user.  It has a caching system so
it will only perform the conversion once unless the
xml file has changed.

I hoep that helps.

Don


--- "Patel, Mike" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am able to convert .XML files to .PDF using
> command line on Unix.  This
> the command I use to convert.
> 
> ./fop.sh firstdoc.xml -pdf firstdoc.pdf
> 
> Is their any easy way to do this or I have to do
> this every time (using Unix
> script) before user can opens this documents in IE.
> 
> Thanks in ADVANCE
> 
> Mike
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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




RE: FOP PCL Rendering - Please help!

2001-09-05 Thread Art Welch

1) The PCLRenderer only does very basic image printing. Basically for each
pixel in the input image if the color (or gray) intensity is above a certain
level then it will be white, otherwise it will be black. You would probably
obtain better results if you used an image processing application to dither
the image to black and white.

2) I would not expect the table column errors to depend on the renderer. I
suspect that the number of columns defined for the table and the number of
columns in a row do not actually agree. You may want to re-check the tables
to verify that they are correct.

2a) The PCLRenderer should produce output that is as close as possible to
the PDFRenderer with the same FO input. Sometimes the AcrobatReader will
appear to introduce differences when printed because I think that the
default is to Fit To Page on print. If you turn this off and print the PCL
and PDF they should be identical (within the limitations). Some important
limitations of the PCLRenderer are no color, only the original built in font
support, and no SVG support.

3) The PCLRenderer requires PCL5 support. A major objective for the
PCLRenderer was to support as many PCL printers as possible, so only basic
PCL functionality was used (where possible). One deviation from vanilla PCL5
was that I think PCL5 (at least according to my manual) only supports bitmap
resolutions to 300 dpi. For image scaling the PCLRenderer may set the
resolution to 600 dpi if needed. Another area of potential concern is that
the PCLRenderer uses Arial for Helvetica and Times New for Times, so these
fonts must be in the printer and accessed with the standard HP codes. Note
that the FO file references Helvetica or Times NOT Arial or Times New.

I hope that this helps.

Art

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 2:05 PM
To: [EMAIL PROTECTED]
Subject: FOP PCL Rendering - Please help!
Importance: High


Hello,

I am trying to render a document using FOP -> PCL.  I am seeing a few issues
though:

1) I have a little image in GIF format that I am rendering in the page - it
comes all distroted and blurry - do I have to change it to another format?

2)  I get errors in the log file from my app, such as

WARNING: Number of cell columns under table-row not equal to number of
table-columns

repeated six or so times.  The formatting of the printout looks a bit off
(it seems to be missing a few spaces at the top ) but this looks fine when
rendered as a PDF.  Are there any good guidelines folks have for a
stylesheet that would be used to render PCL vs PDF?

3) Finally, does anyone know what level of PCL is actually being generated?
I want to make sure this will work and be interpretted on as many HP
printers as possible - the two that I have tried it on have the above issues
of blurry images and header spacing.

I'd really appreciate anyone willing to help!

Thanks very much,

Tony



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

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




Re: NullPointerException. Can someone help me?

2001-09-06 Thread Jean-François Selber

I have found the solution
thanks to all

- Message d'origine -
De : "Jean-François Selber" <[EMAIL PROTECTED]>
À : <[EMAIL PROTECTED]>
Envoyé : jeudi 6 septembre 2001 15:10
Objet : NullPointerException. Can someone help me?


> I try to use fop (0.20.1) API
> (not by command line)
>
> Library in path:
>
>
xsltc.jar;runtime.jar;JLex.jar;java_cup.jar;BCEL.jar;xerces.jar;xalan.jar;fo
> p.jar;w3c.jar;rt.jar;batik.jar;jimi-1.0.jar
>
> code:
>
> Driver driver = new Driver(new InputSource(foReader), pdfOutputStream);
> driver.setRenderer(Driver.RENDER_PDF);
> driver.run();
>
> resultat:
>
> FATAL ERROR : null
> java.lang.NullPointerException
>  at
> org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
> Compiled Code)
>  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
>  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
>  at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java, Compiled
> Code)
>  at org.apache.fop.apps.Driver.(Driver.java:189)
>  at org.apache.fop.apps.Driver.(Driver.java:193)
>
> Can someone help me?
> thanks
>
>
> - Message d'origine -
> De : "COFFMAN Steven" <[EMAIL PROTECTED]>
> À : <[EMAIL PROTECTED]>
> Envoyé : jeudi 30 août 2001 17:35
> Objet : RE: NullPointerException
>
>
> > So you're using FOP 0.20.1, you've got fop.jar, batik.jar, xerces.jar,
> > xalan.jar, and jimi.jar in your classpath, right?
> >
> > One way to do it, is to embed FOP according to website:
> > http://xml.apache.org/fop/embedding.html
> >
> > Which describes this:
> >
> > Driver driver = new Driver(new InputSource (args[0]),
> >new FileOutputStream(args[1]));
> > driver.setRenderer(RENDER_PDF);
> > driver.run();
> >
> > However, if you can't do it this way, you need to provide more
information
> > than what you did for anyone to be able to help.
> > -Steve
> > -Original Message-
> > From: Jean-François Selber [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 30, 2001 9:45 AM
> > To: [EMAIL PROTECTED]
> > Subject: NullPointerException
> >
> >
> > can someone help me?
> >
> > thanks
> >
> > >
> > >
> > > > Driver driver = new Driver();
> > > >
> > > > java.lang.NullPointerException
> > > >  at
> > > >
> >
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
> > > > Compiled Code)
> > > >  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
> > > >  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
> > > >  at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java,
> > Compiled
> > > > Code)
> > > >  at org.apache.fop.apps.Driver.(Driver.java:189)
> > > >
> > > > what can I do?
> > > >
> > > > thanks
> > > > jf
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




help please Problem with generation PDF

2001-09-14 Thread Semprini Davide

Hi,

I have witten a Servlet that take two file in input (file.xml and file.xsl)
my code is:

 Driver driver = new Driver();
 driver.setRenderer(Driver.RENDER_PDF);
 File xmlFile = new File("c:\\xml_to_pdf.xml");
 File xslFile = new File("c:\\TransformPDF.xsl");   
 InputHandler inputHandler = new 
XSLTInputHandler(xmlFile,xslFile);   
 XMLReader parser=createParser();
 driver.setOutputStream(new FileOutputStream("outFile.pdf"));
 driver.render(parser, inputHandler.getInputSource());
  
and my servlet have a block inside Method render( )
The parser is instantiated correctly I think that there is a problem
in the way that i pass the Files!!  TOMCAT REPLY ME:

building formatting object tree
setting up fonts
WARNING: Unknown formatting object ^val

 and then an error inside driven.render()

my xml is very simple like this:


Prova di PDF
Sorgente
13-09-01

Questa e' una prova di creazione di PDF utilizzando i tag 
XSL-FO



WHY the transform don't know my root element!!!!!

Please can somebody help me??

Tanks a lot

D.Semprini



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




Re: Embedding fop in IE..Help!!!

2001-10-15 Thread Carmelo Montanez

I take it you are using an application.  Are you sending both text
and binary data at the same time?, are you using the
printWriter? or the getOutputStream method class?, for binary data
you will need the getOutputStream.  I had the same problem
some time ago and sending JUST the binary data solved the problem.

The problem I ran into was the PDF taking the whole screen
and not a portion of it as I wanted to.  Is anyone aware of
how to restrict a a PDF file to a portion of the screen?

Greetings,

Carmelo Montanez

- Original Message - 
From: "Rajagopal. V" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 15, 2001 10:45 AM
Subject: Embedding fop in IE..Help!!!


> Hi All
> I have an XML file which i combine with a XSL to
> generate the FO file and render it. It works fine with
> Netscape but im having a tough time with IE. It is
> displaying garbage on teh screen. All i get is binary
> characters for the PDF File. I have IE 5.5 Sp1. and i
> tried all the workarounds. These are the ones I tried
> 1) Changed the name of the file to be .pdf so that IE
> will look at the extension and treat it as PDF
> 
> 2) Bloated the file size to be more than 8k so that
> there is no buffer problem with IE
> 
> 3) Downloaded the Fo file generated and ran the fo
> command line and it generates the PDF properly(as an
> application). So there is nothing wrong with the FO.
> 
> IS there any other way to get a PDF on IE? Im not sure
> why im getting binary content all over the screen?
> 
> Please HElpp...
> 
> TIA
> Raj
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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




  1   2   3   >