Re: [ERROR] Don't know what to do with

2002-07-10 Thread Arnd Beißner

> e are having a problem using FOP on a suse shell system.
> first of all we wrote a batchfile containinng the following:
>
> java -cp
>./build/fop.jar:./lib/batik.jar:./lib/xalan-2.0.0.jar:./lib/xerces-1.2.3.jar:./lib/avalon-framework-4.0.jar:./lib/logkit-1.0.jar:./lib>
> 
/jimi-1.0.jar org.apache.fop.apps.Fop $1 $2 $3 $4 $5 $6 $7 $8

1. Improvement, not a problem here: use $* instead of $1 $2 $3 etc.
2. Check that you don't have a linebreak after "java -cp". If you're 
working
   with Suse Linux, chances are you're editing the shellscript with the 
pico editor.
   This one has the annoying behaviour of breaking long lines as soon as 
you edit them...

Arnd Beissner
--
Cappelino Informationstechnologie GmbH
Arnd Beißner
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Fax: +49-7031-463460
Mobile: +49-173-3016917


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




Re: Unable to generate PDF file from EJB using FOP

2002-07-10 Thread J.Pietschmann

Amit Rangari wrote:
> Simply the rendering not done 

It is hard to guess your problem from such a sparse description.
Some possibilities:
- Are you using IEx as a client? Do you use a URL ending
   in .pdf to access the PDF?
- Have you used a command line client like wget to retrieve
   the PDF? Do you get an error? Do you get an empty
   or corrupted PDF?
- is there anything interesting in the logs of the EJB container?
- Have you tried the servlet example distributed with FOP?
   Do you have prolems there alos?

J.Pietschmann


> -Original Message-
You are supposed to trim unnecessary old quotes, in particular
if there are completely unrelated old messages therein.
Look at the archives:
   http://marc.theaimsgroup.com/?l=fop-dev&m=102629436519701&w=2
Assume someone searches the archive for "white-space-collapse"
and gets a hit on your post.

J.Pietschmann


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




Re: [ERROR] Don't know what to do with

2002-07-10 Thread J.Pietschmann

FOP project-Vienna wrote:
> we get an error message saying:
> [ERROR] don't know what to do with
> 
> can anyone help? are the spacers not correct in linux? whate else can we
> use? please ...

The error messages indicates there is an empty parameter
or a parameter consisting of whitespace only passed to
the FOP main().
There could be any number of reasonst for it, including JVM
bugs. The most probably reason is that you prepared the
shell script on a Windows system, and it is still in DOS
format. This causes a CR passed as a parameter. Load
the file in a hex editor and check whether it contains
0x0D bytes, and run dos2unix or a similar program in this
case.

J.Pietschmann





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




Re: [ERROR] Don't know what to do with

2002-07-10 Thread Oleg Tkachenko

FOP project-Vienna wrote:

> we are having a problem using FOP on a suse shell system.
> first of all we wrote a batchfile containinng the following:
> 
> java -cp
> 
>./build/fop.jar:./lib/batik.jar:./lib/xalan-2.0.0.jar:./lib/xerces-1.2.3.jar:./lib/avalon-framework-4.0.jar:./lib/logkit-1.0.jar:./lib/jimi-1.0.jar
> org.apache.fop.apps.Fop $1 $2 $3 $4 $5 $6 $7 $8
> 
> when calling this batchfile e.g. with files in the same directory like:
> 
> fop.sh border.fo -pdf myfirst.pdf
> 
> we get an error message saying:
> [ERROR] don't know what to do with
> 
> can anyone help? are the spacers not correct in linux? whate else can we
> use? please ...

Just curious: why don't you use fop.sh script which come with fop?

-- 
Oleg Tkachenko
Multiconn International, Israel


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




[ERROR] Don't know what to do with

2002-07-10 Thread FOP project-Vienna

hi there,

we are having a problem using FOP on a suse shell system.
first of all we wrote a batchfile containinng the following:

java -cp
./build/fop.jar:./lib/batik.jar:./lib/xalan-2.0.0.jar:./lib/xerces-1.2.3.jar:./lib/avalon-framework-4.0.jar:./lib/logkit-1.0.jar:./lib/jimi-1.0.jar
 org.apache.fop.apps.Fop $1 $2 $3 $4 $5 $6 $7 $8

when calling this batchfile e.g. with files in the same directory like:

fop.sh border.fo -pdf myfirst.pdf

we get an error message saying:
[ERROR] don't know what to do with

can anyone help? are the spacers not correct in linux? whate else can we
use? please ...

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




baseDir entry in userconfig.xml

2002-07-10 Thread Oleg Tkachenko

Hello!

btw, baseDir entry in userconfig.xml is still marked as "NOT IMPLEMENTED", but 
I believe it does implemented and works already.

-- 
Oleg Tkachenko
Multiconn International, Israel


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




Re: Big problem with printing from adobe Reader 4

2002-07-10 Thread Keiron Liddle

On Tue, 2002-07-09 at 17:52, [EMAIL PROTECTED] wrote:
> I think i might have found it...
good.

[snip]
> one more question, what font is used by the adobe when you don't specify
> nor embed another font

In pdf it must specify a font otherwise it is an error. I presume you
mean in FOP. If there is no font specified in the fo then it will
default to "sans-serif" which is aka "Helvetica".



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




DO NOT REPLY [Bug 10632] - Is it possible to set the base directory?

2002-07-10 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10632

Is it possible to set the base directory?

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-07-10 13:52 ---
You easily do it in fop0.20.4. Or uncomment and define baseDir entry in
userconfig.xml file or set baseDir dynamically from java code by something like
Configuration.put("baseDir", "file:///" + imageDir);

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




Re: Stupid Question

2002-07-10 Thread Holger Prause


- Original Message -
From: "RamanaJV" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 12:29 PM
Subject: RE: Stupid Question


> Refer to the JavaDocs folder in your FOP home directory.
>
> Ramana.JV.

I got it, its diretly in theFOP home directory like u told me, but its only
there if u download the src version and if u build the project

Thank You,

Holger



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




RE: Stupid Question

2002-07-10 Thread RamanaJV

Refer to the JavaDocs folder in your FOP home directory.

Ramana.JV.

-Original Message-
From: Holger Prause [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 3:56 PM
To: [EMAIL PROTECTED]
Subject: Stupid Question


Where do i can get the api docs for fop ?
I already read the FAQ.

As far as i can see it is not include in the distribution.

Thx,

Holger





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

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




Stupid Question

2002-07-10 Thread Holger Prause

Where do i can get the api docs for fop ?
I already read the FAQ.

As far as i can see it is not include in the distribution.

Thx,

Holger





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




DO NOT REPLY [Bug 10632] New: - Is it possible to set the base directory?

2002-07-10 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10632

Is it possible to set the base directory?

   Summary: Is it possible to set the base directory?
   Product: Fop
   Version: all
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: images
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Is it possible to set FOP's base directory? I would like to use relative paths 
to reference external files, for example in . But when I do so, I get the message "[ERROR]: Error 
while creating area : Error with image URL: ..\image.gif (System can't find 
specified URL) and no base directory is specified."

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




RE: Unable to generate PDF file from EJB using FOP

2002-07-10 Thread Amit Rangari

Simply the rendering not done 

-Original Message-
From: RamanaJV [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 2:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Unable to generate PDF file from EJB using FOP


Is it throwing any exceptions or simply the rendering not done?

Ramana.JV.

-Original Message-
From: Amit Rangari [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:39 PM
To: [EMAIL PROTECTED]
Subject: Unable to generate PDF file from EJB using FOP



I have written a simple class which takes XML and XSL and translate it
into PDF using FOP (this works fine when run it as a standalone
application) but when I embed this program/logic in a stateless EJB it
doesn't render the content to the output stream. 

I have checked out the class path also, I am using the same setEnv.bat
file to set the environment for running both standalone program as well
as weblogic application server.

Please help me 

Thanks
Amit

-Original Message-
From: RamanaJV [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: Page details support?

I understand that messing around with FOP is not a good idea. But what
to
do, I doesn't get any solution till. I'll put the problem in greater
detail
again.

   I will be having FO templates, that specify the style of the report. 
Let's say the template is like:


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

   
  
   
  
 
 
  

   
   

   



   ##" +


  



There will be templates like above where the hashpart(###)
is
the hole area where the programs fill the data. The data will be got
from
the database and the client program supplies the server with the data
and
the sever program takes the data and for every write call the client
program
says, the server creates a new "fo:block" element and places the data
supplied in the hash portion. The client proceeds in this fashion. 
   The client program may supply large amount of records, can be
around 15,000 records also. So, it is not advisable to make the user
wait
till all the data is supplied and the entire FO constructed. There is an
assumption made now, say we can show 40 records per page. The client
supplies 40 records to the sever, which renders the page using FOP API.
But,
the problem comes if the data supplied will not fit in the single line.
If
the data spans more than 1 line, then the assumption becomes incorrect
and
the remnant portion of the data ( a small chunk, could be one or two
lines)
comes in the second page. This is not good. 
There actually will be number of templates and client filling
out
the templates. So, I'm trying to find a solution where in which at any
point
of time client should be able to know that
 "Still how many lines of display remain?". With that
the
client can hold until the server gives it a ready signal again.

I hope I'm clear now... I'm not finding how to solve the above
problem... I think this type of viewing is common in business
applications...
For now, it is assumed that the page size is 8.5in * 11in
and
portrait mode. Is it possible?

I'll be waiting to hear for a solution...

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Page details support?


The font classes could help you here, too. But I wonder if that helps
you a lot. Questions like that often indicate that someone is trying to
work around a problem that is actually supposed to be worked out in a
different way. If you experience a deficiency with FOP, first try to
find out, if it's XSL:FO that doesn't provide what you need or if it's
FOP. If it's FOP, tell us what you want to accomplish. We may (!) be
able to help you find another solution that doesn't involve messing
around with FOP. And if you really decide to hack into FOP, be aware
that your solution will lose portability because you're restricting
yourself to a particular software and that may be as bad as buying
proprietary software. :-) I hope this helps.

>   Is it possible to through FOP API to find the number of lines (
for
> a defined font and page) that can be rendered?

Cheers,
Jeremias Märki


--

RE: Unable to generate PDF file from EJB using FOP

2002-07-10 Thread RamanaJV


Is it throwing any exceptions or simply the rendering not done?

Ramana.JV.

-Original Message-
From: Amit Rangari [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:39 PM
To: [EMAIL PROTECTED]
Subject: Unable to generate PDF file from EJB using FOP



I have written a simple class which takes XML and XSL and translate it
into PDF using FOP (this works fine when run it as a standalone
application) but when I embed this program/logic in a stateless EJB it
doesn't render the content to the output stream. 

I have checked out the class path also, I am using the same setEnv.bat
file to set the environment for running both standalone program as well
as weblogic application server.

Please help me 

Thanks
Amit

-Original Message-
From: RamanaJV [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: Page details support?

I understand that messing around with FOP is not a good idea. But what
to
do, I doesn't get any solution till. I'll put the problem in greater
detail
again.

   I will be having FO templates, that specify the style of the report. 
Let's say the template is like:


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

   
  
   
  
 
 
  

   
   

   



   ##" +


  



There will be templates like above where the hashpart(###)
is
the hole area where the programs fill the data. The data will be got
from
the database and the client program supplies the server with the data
and
the sever program takes the data and for every write call the client
program
says, the server creates a new "fo:block" element and places the data
supplied in the hash portion. The client proceeds in this fashion. 
   The client program may supply large amount of records, can be
around 15,000 records also. So, it is not advisable to make the user
wait
till all the data is supplied and the entire FO constructed. There is an
assumption made now, say we can show 40 records per page. The client
supplies 40 records to the sever, which renders the page using FOP API.
But,
the problem comes if the data supplied will not fit in the single line.
If
the data spans more than 1 line, then the assumption becomes incorrect
and
the remnant portion of the data ( a small chunk, could be one or two
lines)
comes in the second page. This is not good. 
There actually will be number of templates and client filling
out
the templates. So, I'm trying to find a solution where in which at any
point
of time client should be able to know that
 "Still how many lines of display remain?". With that
the
client can hold until the server gives it a ready signal again.

I hope I'm clear now... I'm not finding how to solve the above
problem... I think this type of viewing is common in business
applications...
For now, it is assumed that the page size is 8.5in * 11in
and
portrait mode. Is it possible?

I'll be waiting to hear for a solution...

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Page details support?


The font classes could help you here, too. But I wonder if that helps
you a lot. Questions like that often indicate that someone is trying to
work around a problem that is actually supposed to be worked out in a
different way. If you experience a deficiency with FOP, first try to
find out, if it's XSL:FO that doesn't provide what you need or if it's
FOP. If it's FOP, tell us what you want to accomplish. We may (!) be
able to help you find another solution that doesn't involve messing
around with FOP. And if you really decide to hack into FOP, be aware
that your solution will lose portability because you're restricting
yourself to a particular software and that may be as bad as buying
proprietary software. :-) I hope this helps.

>   Is it possible to through FOP API to find the number of lines (
for
> a defined font and page) that can be rendered?

Cheers,
Jeremias Märki


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

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

cvs commit: xml-fop/conf fop.xconf

2002-07-10 Thread keiron

keiron  2002/07/10 01:59:16

  Added:   conf fop.xconf
  Log:
  start of example configuration file
  contains default values so that if used will have no effect
  by default no configuration is needed, only if values need to be changed
  
  Revision  ChangesPath
  1.1  xml-fop/conf/fop.xconf
  
  Index: fop.xconf
  ===
  
  
  
  
  
  



  
  
  
  
  
  


flate
  


  



  
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

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




cvs commit: xml-fop/test/resources/fop/svg paints.svg

2002-07-10 Thread keiron

keiron  2002/07/10 01:22:25

  Modified:src/org/apache/fop/svg PDFGraphics2D.java
   test/resources/fop/svg paints.svg
  Log:
  improved patterns, the contents should be visible now
  
  Revision  ChangesPath
  1.37  +16 -12xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java
  
  Index: PDFGraphics2D.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- PDFGraphics2D.java9 Jul 2002 14:59:03 -   1.36
  +++ PDFGraphics2D.java10 Jul 2002 08:22:24 -  1.37
  @@ -768,7 +768,7 @@
   // this makes the pattern the right way up, since
   // it is outside the original transform around the
   // whole svg document
  -pattStream.write("1 0 0 -1 0 " + rect.getHeight() + " cm\n");
  +pattStream.write("1 0 0 -1 0 " + (rect.getHeight() + rect.getY()) + " 
cm\n");
   
   pattStream.write(pattGraphic.getString());
   pattStream.write("Q");
  @@ -776,16 +776,20 @@
   ArrayList bbox = new ArrayList();
   bbox.add(new Double(0));
   bbox.add(new Double(0));
  -bbox.add(new Double(rect.getWidth()));
  -bbox.add(new Double(rect.getHeight()));
  +bbox.add(new Double(rect.getWidth() + rect.getX()));
  +bbox.add(new Double(rect.getHeight() + rect.getY()));
  +
   ArrayList translate = new ArrayList();
  -// TODO combine with pattern transform
  -translate.add(new Double(1));
  -translate.add(new Double(0));
  -translate.add(new Double(0));
  -translate.add(new Double(1));
  -translate.add(new Double(0/*rect.getX()*/));
  -translate.add(new Double(0/*rect.getY()*/));
  +AffineTransform pattt = pp.getPatternTransform();
  +pattt.translate(rect.getWidth() + rect.getX(), rect.getHeight() + 
rect.getY());
  +double[] flatmatrix = new double[6];
  +pattt.getMatrix(flatmatrix);
  +translate.add(new Double(flatmatrix[0]));
  +translate.add(new Double(flatmatrix[1]));
  +translate.add(new Double(flatmatrix[2]));
  +translate.add(new Double(flatmatrix[3]));
  +translate.add(new Double(flatmatrix[4]));
  +translate.add(new Double(flatmatrix[5]));
   
   FontSetup.addToResources(pdfDoc, res, fi);
   
  
  
  
  1.3   +3 -2  xml-fop/test/resources/fop/svg/paints.svg
  
  Index: paints.svg
  ===
  RCS file: /home/cvs/xml-fop/test/resources/fop/svg/paints.svg,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- paints.svg28 Jun 2002 06:21:29 -  1.2
  +++ paints.svg10 Jul 2002 08:22:24 -  1.3
  @@ -16,14 +16,16 @@
   
   
   
  +
   
   
   
   
  +
   
   
   
  +fx="20%" fy="30%" rx="10%" ry="30%" r="40%">
   
   
   
  @@ -32,7 +34,6 @@
   
   
   
  -
   
   Pattern
   
  
  
  

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




Re: Character Encoding

2002-07-10 Thread Holger Prause


- Original Message -
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 9:58 PM
Subject: Re: Character Encoding


> Holger Prause wrote:
> > I  use the character squence − in a html page it will be dispalyed
as
> > an - minus sign.
> >
> > So far so good.Now i want to use that chracter sequence in FO but in the
> ^ ^ ^ ^ ^ ^ ^
> It is a "character reference"
Yes your are right.
>
> > generated pdf it will displayed as an # sign(which stands for undefined
?)
>
> This means the selected font does not have a glyph for it.

Ok i undestand that, its also written in the FOP Faq.

>
> > What can i do to display this character squence, changeing the encoding
in
> > the stylesheet(or using )?
>
> The only way is to get a font with a glyph for it and let
> FOP use it. The "mathematical minus" is pretty esoteric,
> you'll probably need a special math font, rummage through
> implementations for MathML or TeX distributions.
> Why can't you usse a dash or hyphen?
What i wanted was a dash, but for some reasons i choosed the character
reference −  which is , like u already said,  a mathematical minus.
Now i use a the character reference  for dash , and i works fine with my
font.

Thx for the quick response,

Bye,

Holger

>
> 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]




Re: Big problem with printing from adobe Reader 4

2002-07-10 Thread claes . bergsten
Please do that.Strange thing is I get embedded fonts to work very well.I can print files with multiple embedded fonts both standard ones and custom made ones. Can you please send me a pdf with images you have created with FOP that worksin your printers too. regards,Claes