RE: Running FOP on ColdFusion MX

2003-10-09 Thread Glen Mazza
Mark,

Let's do a little bit more detective work on your
side.  Let's see if the issue is the Batik/SVG
libraries (which, along with several other libraries, 
are very closely intertwined with FOP, regardless of
whether or not you use them) or with the ColdFusion.

Try to run FOP from the command line--FOP.bat or
FOP.sh--using any of the .fo samples in the "examples"
directory.

fop helloworld.fo helloworld.pdf

Do you get the same error--or does it work fine?  If
the latter, I don't think the SVG is the
issue--something may be wrong with the ColdFusion
setup.  If the former, you may wish to download a new
copy of 0.20.5--something might be wrong with the FOP
libraries you're using.

If command-line works fine, then the next
step--unfortunately--may need to be for you to
download the 0.20.5 source build, modify the
apps.Driver class to (1) get the actual error message
coming from the ClassCastException and/or (2) comment
out the loading of the SVGElementMapping.  (Run "ant
package" to do the build.)  I would try (1) before
(2)--it may be an obvious error.

Glen


--- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
wrote:
> As far as I know, we are not trying to use any SVG
> elements.  
> We are just taking an XML:FO file and attempting to
> convert it into a
> PDF file.
> 
> Even if we are not using SVG, it will still try to
> use the
> SVGElementMapping?
> 
> Thanks
> Mark
> 
> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 09, 2003 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Running FOP on ColdFusion MX
> 
> 
> I'm not sure.  This code is always run whenever FOP
> is activated, at
> Driver initialization, and I can't find others
> having this issue in the
> user archives.
> 
> The code in question is here:
> 
>
http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/apps/Attic/
> Driver.java?annotate=1.36.2.10
> 
> You're throwing a ClassCastException at line 464,
> which is producing this error.  FOP's boilerplate
> for
> this message (" is not an ElementMapping") might
> 
> be masking the real problem.  Also of note is that
> another mapper at line 313 presumably did load
> successfully (the one at 314 failed).  So there
> might
> be something wrong with your your Batik library
> (which
> FOP uses for SVG).  That or your ColdFusion setup
> somehow is not making the SVGElementMapping visible.
>  
> 
> Glen
> 
> 
> --- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
> wrote:
> > FOP version 0.20.5
> > 
> > Mark
> > 
> > -Original Message-
> > From: Glen Mazza [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 09, 2003 3:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Running FOP on ColdFusion MX
> > 
> > 
> > What version of FOP are you running?
> > 
> > --- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
> > wrote:
> > > Hi,
> > > 
> > > I am running into an interesting problem when
> > trying
> > > to run FOP on Cold
> > > Fusion MX for J2EE server. The current
> > configuration
> > > is WebSphere 5.0,
> > > running CFMX for J2EE.
> > > When we try to execute the servlet from the
> > > coldfusion page (using the
> > > java object commands)
> > > the process starts running but then throws an
> > > exception.  The stack
> > > trace is as follows: 
> > > 
> > > Error = java.lang.IllegalArgumentException:
> > > org.apache.fop.svg.SVGElementMapping is not an
> ElementMapping
> > > at
> > >
> >
>
org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
> > > at
> > >
> >
>
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
> > > at
> > 
> > 
> > __
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product
> > search
> > http://shopping.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: Running FOP on ColdFusion MX

2003-10-09 Thread J.Pietschmann
Clay Leeds wrote:
Forgive my naivete, but since Batik *requires* AWT (and hence can't run 
headless unless w/ Java SDK 1.4+), wouldn't it be better not to load 
Batik unless SVG is being processed?
Nobody bothered to arrange it this way in the maintenance code. It
wouldn't be too hard, just delay initializing the element-maker
mapping table until the namespace is actually used.
I think HEAD work this way.
For FOP 0.20.5, users who know they won't use SVG could remove the
SVG element mapping from the setupDefaultMappings() method in
Driver.java. It can be added dynamically either by calling
addElementMapping() explicitely or by using the service mechanism
without recompiling FOP. Doh, I remember where the service
mechanism was used for setting up the default mappings too.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Running FOP on ColdFusion MX

2003-10-09 Thread Clay Leeds
Mark,
I hope I didn't confuse you. My question probably should've gone to the 
 instead of <[EMAIL PROTECTED]>, as it's 
more of a dev question. My apologies.

To answer your immediate question, a short, over-simplified answer is:
  A "headless" environment is one which does not
  run graphical environment (e.g., a server with
  a text console or remote login only).
This link provides more information about "headless environments" and Batik:
  http://xml.apache.org/fop/graphics.html#batik
I hope this clears up your question.
Web Maestro Clay
Gonzalez, Mark A wrote:
Can you please explain further what you mean by headless environment?
Thanks
Mark
-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2003 5:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Running FOP on ColdFusion MX

Forgive my naivete, but since Batik *requires* AWT (and hence can't run 
headless unless w/ Java SDK 1.4+), wouldn't it be better not to load 
Batik unless SVG is being processed? Is SVG so heavily used by FOP (even

if there are no SVG dependencies) that FOP cannot run without it?
Web Maestro Clay
Glen Mazza wrote:
SVG is heavily used, and the processing cost to
pre-load SVG mapping elements is relatively small.
Glen
--- "Andreas L. Delmelle" <[EMAIL PROTECTED]>
wrote:
-Original Message-
From: Gonzalez, Mark A
[mailto:[EMAIL PROTECTED]
Even if we are not using SVG, it will still try to
use the
SVGElementMapping?
Yup! SVGElementMapping is amongst the defaults being
set up.
Don't really know why... Anyone?
Greetz,
Andreas

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


Re: Running FOP on ColdFusion MX

2003-10-09 Thread J.Pietschmann
Gonzalez, Mark A wrote:
Can you please explain further what you mean by headless environment?
A machine which doesn't run a graphical environment. Usually a
server with a text console or network login only.
J.Pietschmann

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


RE: Running FOP on ColdFusion MX

2003-10-09 Thread Gonzalez, Mark A
Can you please explain further what you mean by headless environment?

Thanks

Mark

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2003 5:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Running FOP on ColdFusion MX


Forgive my naivete, but since Batik *requires* AWT (and hence can't run 
headless unless w/ Java SDK 1.4+), wouldn't it be better not to load 
Batik unless SVG is being processed? Is SVG so heavily used by FOP (even

if there are no SVG dependencies) that FOP cannot run without it?

Web Maestro Clay

Glen Mazza wrote:
> SVG is heavily used, and the processing cost to
> pre-load SVG mapping elements is relatively small.
> 
> Glen
> 
> --- "Andreas L. Delmelle" <[EMAIL PROTECTED]>
> wrote:
>>>-Original Message-
>>>From: Gonzalez, Mark A
>>[mailto:[EMAIL PROTECTED]
>>>Even if we are not using SVG, it will still try to
>>>use the
>>>SVGElementMapping?
>>
>>Yup! SVGElementMapping is amongst the defaults being
>>set up.
>>
>>Don't really know why... Anyone?
>>
>>Greetz,
>>
>>Andreas



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


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



Re: Running FOP on ColdFusion MX

2003-10-09 Thread Clay Leeds
Forgive my naivete, but since Batik *requires* AWT (and hence can't run 
headless unless w/ Java SDK 1.4+), wouldn't it be better not to load 
Batik unless SVG is being processed? Is SVG so heavily used by FOP (even 
if there are no SVG dependencies) that FOP cannot run without it?

Web Maestro Clay
Glen Mazza wrote:
SVG is heavily used, and the processing cost to
pre-load SVG mapping elements is relatively small.
Glen
--- "Andreas L. Delmelle" <[EMAIL PROTECTED]>
wrote:
-Original Message-
From: Gonzalez, Mark A
[mailto:[EMAIL PROTECTED]
Even if we are not using SVG, it will still try to
use the
SVGElementMapping?
Yup! SVGElementMapping is amongst the defaults being
set up.
Don't really know why... Anyone?
Greetz,
Andreas

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


RE: Running FOP on ColdFusion MX

2003-10-09 Thread Glen Mazza
SVG is heavily used, and the processing cost to
pre-load SVG mapping elements is relatively small.

Glen

--- "Andreas L. Delmelle" <[EMAIL PROTECTED]>
wrote:
> > -Original Message-
> > From: Gonzalez, Mark A
> [mailto:[EMAIL PROTECTED]
> > 
> > Even if we are not using SVG, it will still try to
> use the
> > SVGElementMapping?
> > 
> 
> Yup! SVGElementMapping is amongst the defaults being
> set up.
> 
> Don't really know why... Anyone?
> 
> 
> Greetz,
> 
> Andreas
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: Running FOP on ColdFusion MX

2003-10-09 Thread Andreas L. Delmelle
> -Original Message-
> From: Gonzalez, Mark A [mailto:[EMAIL PROTECTED]
> 
> Even if we are not using SVG, it will still try to use the
> SVGElementMapping?
> 

Yup! SVGElementMapping is amongst the defaults being set up.

Don't really know why... Anyone?


Greetz,

Andreas

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



Re: Can't connect to X11

2003-10-09 Thread ARDOIN JEAN-LUC
So few solution for this bug ? 
Nobody solve it on this list ? 

Hi Eric,
Did U previously find this URL ?
it seems to be an Unix and java only bug !!!
  
http://www.idautomation.com/kb/xwindow-error.html
http://forum.java.sun.com/thread.jsp?forum=31&thread=51029

True with appletviewer : ex
Xlib: Client is not authorized to connect to Server
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.
at sun.awt.motif.MToolkit.(MToolkit.java:48)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:244)
at sun.applet.AppletCopyright.(AppletCopyright.java:36)
at sun.applet.AppletViewer.mainInit(AppletViewer.java:984)
at sun.applet.AppletViewer.main(AppletViewer.java:993)
The Answer: This often happens when you try to display on a machine A from 
another machine B and machine A did not give permission to B to display on A. 
Say you are using machine A but you rlogin to B to run your programs. Then, you 
need to go to a window of machine A and type "xhost +B", where B is the name of 
machine B. 

Regards
JL

[--  En réponse à  "MORIN  Eric - NTR ( [EMAIL PROTECTED] )" <[EMAIL 
PROTECTED]>:  --]
 
>>Hello,
>>
>>I'am using FOP 0.20.4 to create PDF with svg graphics in
>>a servlet context
>>on Unix or Linux. 
>>Generally it works fine, but sometimes I get the
>>following exception :
>>
>>java.lang.InternalError: Can't connect to X11 window
>>server using ':0.0' as
>>the value of the DISPLAY variable.
>>  at sun.awt.X11GraphicsEnvironment.initDisplay(Native
>>Method)
>>  at
>>sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:54)
>>  at java.lang.Class.forName0(Native Method)
>>  at java.lang.Class.forName(Class.java:115)
>>  at
>>java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
>>.java:53)
>>  at
>>java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)
>>  at org.apache.fop.svg.PDFGraphics2D.(Unknown
>>Source)
>>  at
>>org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
>>Source)
>>  at
>>org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
>>Source)
>>  at org.apache.fop.svg.SVGArea.render(Unknown Source)
>>  at
>>org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
>>Source)
>>  ...
>>
>>Any idea ?
>>
>>Thanks in advance
>>
>>Eric
>>
>>-
>>To unsubscribe, e-mail:
>>[EMAIL PROTECTED]
>>For additional commands, e-mail:
>>[EMAIL PROTECTED]
>>
>>




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



Re: Printing Current Date and Time

2003-10-09 Thread Clay Leeds
Thanks! This is the type of information (URL, namespace, etc.) I was 
looking for. J.Pietschmann just posted the link:

  http://www.exslt.org/
...in a reply to my previous message, and I've been checking it out a 
bit. I'd been there before "way back in 2002" (it seems like ages ago!), 
but they've progressed a bunch since then. Wow! They've been busy there. 
I'm impressed! It certainly warrants another look-see! Thanks for 
bringing it back onto my radar!

If anyone has a need for some type of xsl-fo function they wish were in 
the xsl-fo spec (mathematical, regexp, string functions, etc.), it 
merits a look to see if it's been implemented by these folks!

Web Maestro Clay
Abhijit Junnare wrote:
Oops. Sorry I misunderstood what you were saying. But
I am not sure if what I have can answer your
questions.
I am using XSLT and XSL FO combined together to
generate PDF for the XML documents. SO essentially I
am using the XSL extension fucntions. I am sure that
you know bunch of those kinda functions. I am using
something like this
xmlns:date="http://exslt.org/dates-and-times";

I have this code some place in my stylesheet to
convert the XML into PDF using FOP. 
I hope that this is what you had asked for.
Thanks,
Abhi

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


RE: Running FOP on ColdFusion MX

2003-10-09 Thread Gonzalez, Mark A
As far as I know, we are not trying to use any SVG elements.  
We are just taking an XML:FO file and attempting to convert it into a
PDF file.

Even if we are not using SVG, it will still try to use the
SVGElementMapping?

Thanks
Mark

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: RE: Running FOP on ColdFusion MX


I'm not sure.  This code is always run whenever FOP is activated, at
Driver initialization, and I can't find others having this issue in the
user archives.

The code in question is here:

http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/apps/Attic/
Driver.java?annotate=1.36.2.10

You're throwing a ClassCastException at line 464,
which is producing this error.  FOP's boilerplate for
this message (" is not an ElementMapping") might 
be masking the real problem.  Also of note is that
another mapper at line 313 presumably did load
successfully (the one at 314 failed).  So there might
be something wrong with your your Batik library (which
FOP uses for SVG).  That or your ColdFusion setup
somehow is not making the SVGElementMapping visible.  

Glen


--- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
wrote:
> FOP version 0.20.5
> 
> Mark
> 
> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 09, 2003 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Running FOP on ColdFusion MX
> 
> 
> What version of FOP are you running?
> 
> --- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> > 
> > I am running into an interesting problem when
> trying
> > to run FOP on Cold
> > Fusion MX for J2EE server. The current
> configuration
> > is WebSphere 5.0,
> > running CFMX for J2EE.
> > When we try to execute the servlet from the
> > coldfusion page (using the
> > java object commands)
> > the process starts running but then throws an
> > exception.  The stack
> > trace is as follows: 
> > 
> > Error = java.lang.IllegalArgumentException:
> > org.apache.fop.svg.SVGElementMapping is not an ElementMapping
> > at
> >
>
org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
> > at
> >
>
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
> > at
> 
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 



__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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


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



Re: Printing Current Date and Time

2003-10-09 Thread Abhijit Junnare
Oops. Sorry I misunderstood what you were saying. But
I am not sure if what I have can answer your
questions.
I am using XSLT and XSL FO combined together to
generate PDF for the XML documents. SO essentially I
am using the XSL extension fucntions. I am sure that
you know bunch of those kinda functions. I am using
something like this

xmlns:date="http://exslt.org/dates-and-times";



I have this code some place in my stylesheet to
convert the XML into PDF using FOP. 
I hope that this is what you had asked for.
Thanks,
Abhi



--- Clay Leeds <[EMAIL PROTECTED]> wrote:
> Abhi, I think you misunderstood my last message.
> 
> You indicated that you have found an extension
> function which gets the 
> current date and time for use in xsl-fo.
> 
> I have some questions for you:
> 
> - What is the name of the extension function?
> - Where can this extension function for getting the
> current date and 
> time for use in XSL-FO be found?
> - What is the namespace/uri?
> - Can this extension function for getting the
> current date and time for 
> use in XSL-FO be used from the command line?
> 
> Thanks!
> 
> Abhijit Junnare wrote:
> > Thanks:)
> > --- Clay Leeds <[EMAIL PROTECTED]> wrote:
> > 
> >>Which one? What's it called? What do I have to do
> to
> >>use it? Can it be 
> >>used from the COMMAND LINE?
> >>
> >>Careful, your answer might end up in a FAQ! ;-p
> >>
> >>Abhijit Junnare wrote:
> >>
> >>>No Problem. I think I got the solution. I am
> using
> >>>extension function.
> >>>Thanks,
> >>>Abhi
> >>>--- Abhijit Junnare <[EMAIL PROTECTED]> wrote:
> >>>
> Dear List,
> I am wondering if there is any built-in function
> >>
> >>to
> >>
> ger the current date and time using XSL to print
> >>
> >>it
> >>
> in
> the PDF generated using FOP. I have used java
> >>
> >>script
> >>
> earlier while converting to HTML when displaying
> >>
> >>in
> >>
> a
> browser but not done in regards to PDF. 
> Thanks in advance for the help.
> Abhi
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: inline fixed width spacing

2003-10-09 Thread J.Pietschmann
Sells, Fred wrote:
I would like to use fixed horizontal spacing without using a table to put
some id stuff in tiny print across the bottom of the page such as
form #123456  West Coast Division ref # xyz
these are going into the region-after which has static content.
I've been trying all the variations on fo:inline and fo:inline-container
with no effect.
What's "fixed horizontal spacing":
- a fixed space between '#123456' and 'West'
- 'West' starting at a fixed horizontal position?
For the latter, the only possibilities working in FOP are tables and
absolutely placed block containers.
For the former, a leader with leader-length.optimum="10cm" or so should
work. Spacer graphics should work to the same way as in HTML.
J.Pietschmann

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


RE: Running FOP on ColdFusion MX

2003-10-09 Thread Glen Mazza
I'm not sure.  This code is always run whenever FOP is
activated, at Driver initialization, and I can't find
others having this issue in the user archives.

The code in question is here:

http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/apps/Attic/Driver.java?annotate=1.36.2.10

You're throwing a ClassCastException at line 464,
which is producing this error.  FOP's boilerplate for
this message (" is not an ElementMapping") might 
be masking the real problem.  Also of note is that
another mapper at line 313 presumably did load
successfully (the one at 314 failed).  So there might
be something wrong with your your Batik library (which
FOP uses for SVG).  That or your ColdFusion setup
somehow is not making the SVGElementMapping visible.  

Glen


--- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
wrote:
> FOP version 0.20.5
> 
> Mark
> 
> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 09, 2003 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Running FOP on ColdFusion MX
> 
> 
> What version of FOP are you running?
> 
> --- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> > 
> > I am running into an interesting problem when
> trying
> > to run FOP on Cold
> > Fusion MX for J2EE server. The current
> configuration
> > is WebSphere 5.0,
> > running CFMX for J2EE.
> > When we try to execute the servlet from the
> > coldfusion page (using the
> > java object commands) 
> > the process starts running but then throws an
> > exception.  The stack
> > trace is as follows: 
> > 
> > Error = java.lang.IllegalArgumentException:
> > org.apache.fop.svg.SVGElementMapping is not an
> > ElementMapping
> > at
> >
>
org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
> > at
> >
>
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
> > at
> 
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 



__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



inline fixed width spacing

2003-10-09 Thread Sells, Fred

I would like to use fixed horizontal spacing without using a table to put
some id stuff in tiny print across the bottom of the page such as

form #123456  West Coast Division ref # xyz

these are going into the region-after which has static content.

I've been trying all the variations on fo:inline and fo:inline-container
with no effect.  I had been doing this with a table, but I'm trying to
streamline things abit plus now I'm getting stubborn about it and just want
to see what I'm missing.

Any clues?

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



RE: Running FOP on ColdFusion MX

2003-10-09 Thread Gonzalez, Mark A
FOP version 0.20.5

Mark

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Running FOP on ColdFusion MX


What version of FOP are you running?

--- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I am running into an interesting problem when trying
> to run FOP on Cold
> Fusion MX for J2EE server. The current configuration
> is WebSphere 5.0,
> running CFMX for J2EE.
> When we try to execute the servlet from the
> coldfusion page (using the
> java object commands) 
> the process starts running but then throws an
> exception.  The stack
> trace is as follows: 
> 
> Error = java.lang.IllegalArgumentException:
> org.apache.fop.svg.SVGElementMapping is not an
> ElementMapping
> at
>
org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
> at
>
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
> at


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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


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



Re: Running FOP on ColdFusion MX

2003-10-09 Thread Glen Mazza
What version of FOP are you running?

--- "Gonzalez, Mark A" <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I am running into an interesting problem when trying
> to run FOP on Cold
> Fusion MX for J2EE server. The current configuration
> is WebSphere 5.0,
> running CFMX for J2EE.  
> When we try to execute the servlet from the
> coldfusion page (using the
> java object commands) 
> the process starts running but then throws an
> exception.  The stack
> trace is as follows: 
> 
> Error = java.lang.IllegalArgumentException:
> org.apache.fop.svg.SVGElementMapping is not an
> ElementMapping
> at
>
org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
> at
>
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
> at


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Running FOP on ColdFusion MX

2003-10-09 Thread Gonzalez, Mark A
Hi,

I am running into an interesting problem when trying to run FOP on Cold
Fusion MX for J2EE server. The current configuration is WebSphere 5.0,
running CFMX for J2EE.  
When we try to execute the servlet from the coldfusion page (using the
java object commands) 
the process starts running but then throws an exception.  The stack
trace is as follows: 

Error = java.lang.IllegalArgumentException:
org.apache.fop.svg.SVGElementMapping is not an ElementMapping
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
at
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
at org.apache.fop.apps.Driver.(Driver.java:222)
at ReportUtil.renderXMLWithFOP(ReportUtil.java:124)
at ReportUtil.buildReport(ReportUtil.java:77)
at ReportUtil.jspTest(ReportUtil.java:108)
at java.lang.reflect.Method.invoke(Native Method)
at coldfusion.runtime.java.JavaProxy.invoke(Unknown Source)
at coldfusion.runtime.CfJspPage._invoke(Unknown Source)
at
cfdsp_osha300_log2ecfm1640372303.runPage(/export/home1/projects/lmsii/op
t/WebSphere/AppServer/installedApps/sstst2/Macromedia ColdFusion
MX.ear/cfusion.war/DEV/Report/log.cfm:118)
at coldfusion.runtime.CfJspPage.invoke(Unknown Source)
at coldfusion.tagext.lang.IncludeTag.doStartTag(Unknown Source)
at coldfusion.filter.CfincludeFilter.invoke(Unknown Source)
at coldfusion.filter.ApplicationFilter.invoke(Unknown Source)
at coldfusion.filter.PathFilter.invoke(Unknown Source)
at coldfusion.filter.ExceptionFilter.invoke(Unknown Source)
at coldfusion.filter.BrowserDebugFilter.invoke(Unknown Source)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(Unknown
Source)
at coldfusion.filter.BrowserFilter.invoke(Unknown Source)
at coldfusion.filter.GlobalsFilter.invoke(Unknown Source)
at coldfusion.filter.DatasourceFilter.invoke(Unknown Source)
at coldfusion.CfmServlet.service(Unknown Source)
at coldfusion.bootstrap.BootstrapServlet.service(Unknown Source)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:258)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:872)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:491)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:173)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:7
9)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:199)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:331)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

The interesting thing is, if we move the servlet out of the coldfusion
environment and into its own war file and deploy it as its own
mini-application, everything works fine (BTW, commanline works fine
too).  Given that, I suspected that there might be some library
conflicts between the needed FOP jars and those that are included with
Cold Fusion MX, however, after adding the needed JARS into WebSphere's
Classpath and using the Environment Check method to return the parser
versions, I am not so sure that is the issue.  Here is the output from
the environment check:

EnvironmentCheck = {version.DOM.draftlevel=2.0fd
:
java.class.path=/export/home1/projects/lmsii/opt/WebSphere/AppServer/pro
perties :/export/home1/projects/lmsii/opt/WebSphere/AppServer/properties
:/export/home1/projects/lmsii/opt/WebSphere/AppServer/lib/bootstrap.jar
:/export/home1/projects/lmsii/opt/WebSphere/AppServer/lib/j2ee.jar
:/export/home1/projects/lmsii/opt/WebSphere/AppServer/lib/lmp

Re: Condtional content

2003-10-09 Thread J.Pietschmann
Kuba Królikowski wrote:
I know now how do print something different on pages no. k where k 
modulo 2 = 0 and k modulo 2 = 1. Don't you think that this is very 
unflexible? What should I do when I want to print something in static 
content ONLY on page no 1, or only on second page, or only on pages 
5,10,15,20,...(k modulo 5 = 0), or only on last page etc.?
Be a bit more imaginative. For example, use a page master sequence with
a bunch of single page master references:
 
   

...
   
   

...
   
   

...
   
   
 
 
 
 
 
 
 
 ... use a generator to repeat ad nauseam ...
   
 
For even more flexibility, look up fo:marker and fo:retrieve-marker.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Printing Current Date and Time

2003-10-09 Thread Jeremias Maerki
Clay,

have a look at http://www.exslt.org/. Some, if not all of it, is also
implemented in Xalan-J and in many other XSLT-processors as well.

On 09.10.2003 18:54:05 Clay Leeds wrote:
> Abhi, I think you misunderstood my last message.
> 
> You indicated that you have found an extension function which gets the 
> current date and time for use in xsl-fo.
> 
> I have some questions for you:
> 
> - What is the name of the extension function?
> - Where can this extension function for getting the current date and 
> time for use in XSL-FO be found?
> - What is the namespace/uri?
> - Can this extension function for getting the current date and time for 
> use in XSL-FO be used from the command line?


Jeremias Maerki


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



Re: Printing Current Date and Time

2003-10-09 Thread Clay Leeds
Abhi, I think you misunderstood my last message.
You indicated that you have found an extension function which gets the 
current date and time for use in xsl-fo.

I have some questions for you:
- What is the name of the extension function?
- Where can this extension function for getting the current date and 
time for use in XSL-FO be found?
- What is the namespace/uri?
- Can this extension function for getting the current date and time for 
use in XSL-FO be used from the command line?

Thanks!
Abhijit Junnare wrote:
Thanks:)
--- Clay Leeds <[EMAIL PROTECTED]> wrote:
Which one? What's it called? What do I have to do to
use it? Can it be 
used from the COMMAND LINE?

Careful, your answer might end up in a FAQ! ;-p
Abhijit Junnare wrote:
No Problem. I think I got the solution. I am using
extension function.
Thanks,
Abhi
--- Abhijit Junnare <[EMAIL PROTECTED]> wrote:
Dear List,
I am wondering if there is any built-in function
to
ger the current date and time using XSL to print
it
in
the PDF generated using FOP. I have used java
script
earlier while converting to HTML when displaying
in
a
browser but not done in regards to PDF. 
Thanks in advance for the help.
Abhi

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


RE: Condtional content

2003-10-09 Thread Andreas L. Delmelle
> -Original Message-
> From: Kuba Królikowski [mailto:[EMAIL PROTECTED]
>
> Ok, I understand. But it isn't a complete solution on my problem still.
> I know now how do print something different on pages no. k where k
> modulo 2 = 0 and k modulo 2 = 1. Don't you think that this is very
> unflexible?

A *bit* unflexible perhaps, but I'm not sure whether the FO spec does not
provide solutions for this...

Can you give us a view on the bigger picture? Maybe the XSL could be
structured in another way that would allow you to achieve your desired
result... (? Have to be careful with making suggestions like this -- some
people somehow assume that I think their xsl is worthless or something when
I add a 'maybe' like this... :) NHI, just interested in solving puzzles )

> What should I do when I want to print something in static
> content ONLY on page no 1, [...] or only on last page

This *is* actually possible using multiple simple-page-masters... one for
the first (and second) / last, one for the rest
For an example (special first page) see
http://xml.apache.org/fop/fo.html#fo-first-page

> , [...] or only on pages 5,10,15,20,...(k modulo 5 = 0), [...] etc.?
>

I think it is even possible to define
 containing sequences of 5 pages
where only the last page in the sequence would have a different
simple-page-master. (Haven't tried, I must admit)
For sth to appear only on the second page... two sequences? one for the
first and second page, one for the rest?
Use the  with page-position traits for
that, and keep in mind that you can only use [first'|'last'|'rest'] as
value. Construct the  dynamically in
the XSL -- opens up a few *very* interesting possibilities, not to mention
that there are virtually no limits to the number of possibilities...

Unflexible?

Greetz,

Andreas


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



Re: Printing Current Date and Time

2003-10-09 Thread Abhijit Junnare
Thanks:)
--- Clay Leeds <[EMAIL PROTECTED]> wrote:
> Which one? What's it called? What do I have to do to
> use it? Can it be 
> used from the COMMAND LINE?
> 
> Careful, your answer might end up in a FAQ! ;-p
> 
> Abhijit Junnare wrote:
> > No Problem. I think I got the solution. I am using
> > extension function.
> > Thanks,
> > Abhi
> > --- Abhijit Junnare <[EMAIL PROTECTED]> wrote:
> >>Dear List,
> >>I am wondering if there is any built-in function
> to
> >>ger the current date and time using XSL to print
> it
> >>in
> >>the PDF generated using FOP. I have used java
> script
> >>earlier while converting to HTML when displaying
> in
> >>a
> >>browser but not done in regards to PDF. 
> >>Thanks in advance for the help.
> >>Abhi
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: Printing Current Date and Time

2003-10-09 Thread Clay Leeds
Which one? What's it called? What do I have to do to use it? Can it be 
used from the COMMAND LINE?

Careful, your answer might end up in a FAQ! ;-p
Abhijit Junnare wrote:
No Problem. I think I got the solution. I am using
extension function.
Thanks,
Abhi
--- Abhijit Junnare <[EMAIL PROTECTED]> wrote:
Dear List,
I am wondering if there is any built-in function to
ger the current date and time using XSL to print it
in
the PDF generated using FOP. I have used java script
earlier while converting to HTML when displaying in
a
browser but not done in regards to PDF. 
Thanks in advance for the help.
Abhi

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


Re: Printing Current Date and Time

2003-10-09 Thread Abhijit Junnare
No Problem. I think I got the solution. I am using
extension function.
Thanks,
Abhi
--- Abhijit Junnare <[EMAIL PROTECTED]> wrote:
> Dear List,
> I am wondering if there is any built-in function to
> ger the current date and time using XSL to print it
> in
> the PDF generated using FOP. I have used java script
> earlier while converting to HTML when displaying in
> a
> browser but not done in regards to PDF. 
> Thanks in advance for the help.
> Abhi
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Printing Current Date and Time

2003-10-09 Thread Abhijit Junnare
Dear List,
I am wondering if there is any built-in function to
ger the current date and time using XSL to print it in
the PDF generated using FOP. I have used java script
earlier while converting to HTML when displaying in a
browser but not done in regards to PDF. 
Thanks in advance for the help.
Abhi

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: CMKY

2003-10-09 Thread Beer, Christian
> I think CMYK support in tools used early in the publishing chain
> is somewhat overrated.

Right, but FOP _MUST_ not be early in the publishing chain! It could
in fact be the only and therefore even the last step in a publishing
chain...


> I can only think of the following use cases for XSLFO:
> - Avoid round-off errors and other numerical problems in the
>   conversion CMYK->sRGB->CMYK, perhaps in order to match exactly
>   colors of embedded CMYK bitmap images in text, borders and
>   background.

Conversion CMYK -> RGB is nearly always lossy. And for print sRGB 
is also not that perfect (because of it's small gammut (nearly the 
smalest gammut of all RGB colorspaces)).


> - Get color values into the document which can't be expressed
>   as RGB. I don't know whether this can even happen.

If you create PDFs for print, you nearly always want CMYK! Okay, 
RGB and colorspace would be great but nowaday not all print-
companys now how to handle colorspaces (for example PDF/X-3).


>
> As far as round-off goes, AFAIK the transformation from CMYK to
> RGB and vice versa is linear and numerically well behaved with
> the exception of some extreme saturated colors, in particular
> very dark colors. I've never heard of anyone noticing these
> kind of problem without deliberately using a somewhat braindamaged
> tool for colorspace conversion which rounded all values to two
> significant digits *and* both a quite expensive printing kit and
> a well trained eye.

100% c  83% c
  0% m   5% m
  0% y  --> sRGB-->  2% y
  0% k   0% k

So in fact, CMYK -> sRGB -> CMYK is not linear. If you convert the 
result to sRGB and again back the values will even be more bad.

> 
> J.Pietschmann
> 
> 

Christian Beer


> 

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



Re: Condtional content

2003-10-09 Thread Kuba Królikowski
Dnia 2003-10-09 15:30, Użytkownik Chris Bowditch napisał:
From: Kuba Królikowski <[EMAIL PROTECTED]>
As Chris advised, it's best to use a different page-master for this.
Thanx for advise but I'm afraid that it is not a solution to my 
problem. I want to print (render) a very long table, I don't know how 
many pages it will take up and I don't know where there will be page 
breaks. If my understanding is fine I can use only one page-master for 
this table. Am I right? How then I could print different informations 
on different pages (for example in static-content, region-before)?

No, you dont need to know where page-breaks will occur in your table, 
FOP will take care of it for you. You just create a simple-page-master 
for odd pages and one for even, Hopefully the following example will get 
you started;



















this defines a different page-master for odd and even pages, then to put 
different content on each, define two static-contents in the 
page-sequence, e.g.



This is an odd page


This is an even page

Then put the contents of the body into fo:flow as usual. Beware; that I 
have not tested this code on FOP. Specifically I cant recall if FOP 
allows references to named regions in the flow-name attribute. This 
works in XEP, and theres nothing on the FOP compliance page to suggest 
otherwise.

Chris
Ok, I understand. But it isn't a complete solution on my problem still. 
I know now how do print something different on pages no. k where k 
modulo 2 = 0 and k modulo 2 = 1. Don't you think that this is very 
unflexible? What should I do when I want to print something in static 
content ONLY on page no 1, or only on second page, or only on pages 
5,10,15,20,...(k modulo 5 = 0), or only on last page etc.?

Kuba Królikowski

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


Re: OutOfMemoryError while rendering huge SVG

2003-10-09 Thread mathieu . fretiere
I solved my OutOfMemoryError problem, at last.

I use external svg graphics, rather than one big svg embedded element. It 
works with a 64M JVM's memory allocation pool.
I still have a few questions (coming soon...)

If you would like more details :
my pdf contains 6 page-sequences ; each one contains about 200 
external-graphics tags ; there are 60 svg files (20 kb each - each one 
referenced many times) ; pdf size is approximately 10 Mb (...)

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



Re: Condtional content

2003-10-09 Thread Chris Bowditch
From: Kuba Królikowski <[EMAIL PROTECTED]>
As Chris advised, it's best to use a different page-master for this.
Thanx for advise but I'm afraid that it is not a solution to my problem. I 
want to print (render) a very long table, I don't know how many pages it 
will take up and I don't know where there will be page breaks. If my 
understanding is fine I can use only one page-master for this table. Am I 
right? How then I could print different informations on different pages 
(for example in static-content, region-before)?

No, you dont need to know where page-breaks will occur in your table, FOP 
will take care of it for you. You just create a simple-page-master for odd 
pages and one for even, Hopefully the following example will get you 
started;



















this defines a different page-master for odd and even pages, then to put 
different content on each, define two static-contents in the page-sequence, 
e.g.



This is an odd page


This is an even page

Then put the contents of the body into fo:flow as usual. Beware; that I have 
not tested this code on FOP. Specifically I cant recall if FOP allows 
references to named regions in the flow-name attribute. This works in XEP, 
and theres nothing on the FOP compliance page to suggest otherwise.

Chris
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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


Re: Condtional content

2003-10-09 Thread Kuba Królikowski
For example: I want to print some information only on page no 2, other
informations only on page no 3 e.t.c.
As Chris advised, it's best to use a different page-master for this.
Thanx for advise but I'm afraid that it is not a solution to my problem. 
I want to print (render) a very long table, I don't know how many pages 
it will take up and I don't know where there will be page breaks. If my 
understanding is fine I can use only one page-master for this table. Am 
I right? How then I could print different informations on different 
pages (for example in static-content, region-before)?

Kuba Królikowski

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


Re: Can't connect to X11

2003-10-09 Thread Jeremias Maerki
A list of workarounds is at:
http://xml.apache.org/fop/graphics.html#batik

> I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet context
> on Unix or Linux. 
> Generally it works fine, but sometimes I get the following exception :
> 
> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
> the value of the DISPLAY variable.
>   at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)




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



Re: Can't connect to X11

2003-10-09 Thread tien hai nguyen
update to jdk 1.4
or
try : xhost + 
for put access control disabled
any client can connect to display


On Thursday 09 October 2003 12:03, MORIN Eric - NTR ( 
[EMAIL PROTECTED] ) wrote:
> 'headless' option can be used only since jdk 1.4 but i use jdk 1.3 !
>
>
> -Message d'origine-
> De : tien hai nguyen [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 9 octobre 2003 11:21
> À : [EMAIL PROTECTED]
> Objet : Re: Can't connect to X11
>
>
> try this
>
> $JAVACMD -Djava.awt.headless=true -classpath "$LOCALCLASSPATH" $FOP_OPTS
> org.apache.fop.apps.Fop "$@"
>
> instead of
> $JAVACMD -classpath "$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.apps.Fop
> "$@"
>
> in script fop.sh
>
>
> On Thursday 09 October 2003 11:10, MORIN Eric - NTR (
>
> [EMAIL PROTECTED] ) wrote:
> > Hello,
> >
> > I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet
> > context on Unix or Linux.
> > Generally it works fine, but sometimes I get the following exception :
> >
> > java.lang.InternalError: Can't connect to X11 window server using ':0.0'
>
> as
>
> > the value of the DISPLAY variable.
> > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> > at
> > sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:54)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:115)
> > at
>
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen
>
> >t .java:53)
> > at
> > java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)
> > at org.apache.fop.svg.PDFGraphics2D.(Unknown Source)
> > at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
> > Source)
> > at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
> > Source)
> > at org.apache.fop.svg.SVGArea.render(Unknown Source)
> > at
> > org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
> > Source)
> > ...
> >
> > Any idea ?
> >
> > Thanks in advance
> >
> > Eric
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Can't connect to X11

2003-10-09 Thread MORIN Eric - NTR ( [EMAIL PROTECTED] )

'headless' option can be used only since jdk 1.4 but i use jdk 1.3 !


-Message d'origine-
De : tien hai nguyen [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 9 octobre 2003 11:21
À : [EMAIL PROTECTED]
Objet : Re: Can't connect to X11


try this

$JAVACMD -Djava.awt.headless=true -classpath "$LOCALCLASSPATH" $FOP_OPTS 
org.apache.fop.apps.Fop "$@"

instead of
$JAVACMD -classpath "$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.apps.Fop "$@"

in script fop.sh


On Thursday 09 October 2003 11:10, MORIN Eric - NTR ( 
[EMAIL PROTECTED] ) wrote:
> Hello,
>
> I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet context
> on Unix or Linux.
> Generally it works fine, but sometimes I get the following exception :
>
> java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as
> the value of the DISPLAY variable.
>   at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>   at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:54)
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:115)
>   at
>
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen
>t .java:53)
>   at
> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)
>   at org.apache.fop.svg.PDFGraphics2D.(Unknown Source)
>   at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
> Source)
>   at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
> Source)
>   at org.apache.fop.svg.SVGArea.render(Unknown Source)
>   at
> org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
> Source)
>   ...
>
> Any idea ?
>
> Thanks in advance
>
> Eric
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

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



Re: Can't connect to X11

2003-10-09 Thread tien hai nguyen
try this

$JAVACMD -Djava.awt.headless=true -classpath "$LOCALCLASSPATH" $FOP_OPTS 
org.apache.fop.apps.Fop "$@"

instead of
$JAVACMD -classpath "$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.apps.Fop "$@"

in script fop.sh


On Thursday 09 October 2003 11:10, MORIN Eric - NTR ( 
[EMAIL PROTECTED] ) wrote:
> Hello,
>
> I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet context
> on Unix or Linux.
> Generally it works fine, but sometimes I get the following exception :
>
> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
> the value of the DISPLAY variable.
>   at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>   at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:54)
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:115)
>   at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen
>t .java:53)
>   at
> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)
>   at org.apache.fop.svg.PDFGraphics2D.(Unknown Source)
>   at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
> Source)
>   at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
> Source)
>   at org.apache.fop.svg.SVGArea.render(Unknown Source)
>   at
> org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
> Source)
>   ...
>
> Any idea ?
>
> Thanks in advance
>
> Eric
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: blank pages and duplicate pages while generating PDFs

2003-10-09 Thread Chris Bowditch
From: Jignesh-NX01880 Kapadia <[EMAIL PROTECTED]>
Hi,
 I have a question on FOP. Here we are generating a .PDF file 
ussing a
PDF servlet. The out out contains sometimes a blank page in between and 
also
some of the pages are duplicated. I went through the code but could not 
find out
what pattent causes it.

Also we get a blank page at the end of .PDF generation.
have anybody run accross the same problem? can anybody suggest any 
solution?

This sounds a bit like this FAQ
http://xml.apache.org/fop/faq.html#blank-page-between-page-sequences
Chris
_
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Can't connect to X11

2003-10-09 Thread MORIN Eric - NTR ( [EMAIL PROTECTED] )
Hello,

I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet context
on Unix or Linux. 
Generally it works fine, but sometimes I get the following exception :

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:54)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:53)
at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)
at org.apache.fop.svg.PDFGraphics2D.(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
Source)
at org.apache.fop.svg.SVGArea.render(Unknown Source)
at
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
Source)
...

Any idea ?

Thanks in advance

Eric

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



Re: OutOfMemoryError while rendering huge SVG

2003-10-09 Thread mathieu . fretiere
Thanks for your answers.

About my "huge" svg :
it is made up of many svg graphics ; each one is created by Adobe 
Illustrator. Illustrator doesn't optimize these svg graphics, it creates a 
lot of path elements. 
I'll try to use smaller svg graphics, instead of the big one, and see what 
happens.

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



Re: CMKY

2003-10-09 Thread Ben Galbraith
Interesting idea; I hadn't thought about performing the post-processing 
in FOP's code.  Let me know how it works.  PDF's have a data 
"dictionary" at the end of the file that references the offset of each 
PDF object; just be sure that when you modify the individual objects the 
offsets change accordingly.  If FOP creates the dictionary after your 
modifications, you should be fine.

Note that spot colors are a little trickier.  You need to create a 
transformation function and create a color space resource and add it to 
various locations throughout the PDF.  But, I don't think you're 
planning on doing spot colors.

Good luck.
Ben
lijun zou wrote:
Thanks for the so many replies.
Ben's idea is especially helpful. I've been following
up on that in last few days.
Looks like in the output method in PDFDocument.java,
we can intercept each PDFObject before it is "printed"
to pdf file, if it's a PDFStream object, we can decode
the data string and do the replacement Ben suggested,
and then put it back to PDFStream.
I hope I don't miss any piece.
LZ
--- Ben Galbraith <[EMAIL PROTECTED]> wrote:
iText can't do the manipulation in question, but
Multivalent 
(sourceforge) might do the trick.  Multivalent
didn't successfully 
uncompress the objects in my largish 80 MB PDF,
however.

I wound up home-growing my own utilities to
post-process the PDF as a 
learning exercise.  Took about a day.  PDF is a
well-documented format 
and uses well-documented widely-supported
compression algorithms.

We actually use iText to create composite PDFs (two
or more PDFs placed 
on top of each other) and our utility to add the
spot colors or convert 
to CMYK programmatically.

I wish I could share some of our code... working on
getting approval to 
open-source some of it.

Ben
George Yi wrote:

I heard Jeremias mentioned Chamelon(Spell) Colour
can do the post process
but I never tried.
George
-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 11:59 AM
To: [EMAIL PROTECTED]
Subject: Re: CMKY
Ben Galbraith wrote:

FOP does support CMYK JPEGs -- there's a previous
thread on this issue
that I participated in that should document it
fairly well.
XSL-FO may provide support for CMYK through its
color space features;
haven't studied it enough to grok it, not sure.
FOP doesn't not support CMYK for the elements it
renders.  However, I've
found that post-processing the PDF is actually
fairly straight-forward
and enables introduction of both spot colors and
CMYK colors.  This
process involves searching through each object in
the PDF and replacing
the RGB commands (PDF: rg/RG) with CMYK (PDF: k/K)
or color space (PDF:
cs/CS, scn/SCN) commands.  It seemed scary at
first, but actually not
that bad.  If anyone has interest in learning more
about this technique,
let me know.
Ben

I'm interested in this topic more because I'd like
to add this type of
information to the FOP web site than for any other
reason (my company
currently doesn't really care *that* much about
color--but I'm
interested!). I assume you use some sort of
post-processor like iText or
something? If you could create some sort of
tutorial or something on how
to do this, I think it would be *very* useful.
Sounds intriguing!
Web Maestro Clay


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


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


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

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: CMKY

2003-10-09 Thread lijun zou
Thanks for the so many replies.

Ben's idea is especially helpful. I've been following
up on that in last few days.
Looks like in the output method in PDFDocument.java,
we can intercept each PDFObject before it is "printed"
to pdf file, if it's a PDFStream object, we can decode
the data string and do the replacement Ben suggested,
and then put it back to PDFStream.

I hope I don't miss any piece.

LZ

--- Ben Galbraith <[EMAIL PROTECTED]> wrote:
> iText can't do the manipulation in question, but
> Multivalent 
> (sourceforge) might do the trick.  Multivalent
> didn't successfully 
> uncompress the objects in my largish 80 MB PDF,
> however.
> 
> I wound up home-growing my own utilities to
> post-process the PDF as a 
> learning exercise.  Took about a day.  PDF is a
> well-documented format 
> and uses well-documented widely-supported
> compression algorithms.
> 
> We actually use iText to create composite PDFs (two
> or more PDFs placed 
> on top of each other) and our utility to add the
> spot colors or convert 
> to CMYK programmatically.
> 
> I wish I could share some of our code... working on
> getting approval to 
> open-source some of it.
> 
> Ben
> 
> George Yi wrote:
> 
> > I heard Jeremias mentioned Chamelon(Spell) Colour
> can do the post process
> > but I never tried.
> > 
> > George
> > 
> > -Original Message-
> > From: Clay Leeds [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 07, 2003 11:59 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: CMKY
> > 
> > 
> > Ben Galbraith wrote:
> > 
> >>FOP does support CMYK JPEGs -- there's a previous
> thread on this issue
> >>that I participated in that should document it
> fairly well.
> >>
> >>XSL-FO may provide support for CMYK through its
> color space features;
> >>haven't studied it enough to grok it, not sure.
> >>
> >>FOP doesn't not support CMYK for the elements it
> renders.  However, I've
> >>found that post-processing the PDF is actually
> fairly straight-forward
> >>and enables introduction of both spot colors and
> CMYK colors.  This
> >>process involves searching through each object in
> the PDF and replacing
> >>the RGB commands (PDF: rg/RG) with CMYK (PDF: k/K)
> or color space (PDF:
> >>cs/CS, scn/SCN) commands.  It seemed scary at
> first, but actually not
> >>that bad.  If anyone has interest in learning more
> about this technique,
> >>let me know.
> >>
> >>Ben
> > 
> > 
> > I'm interested in this topic more because I'd like
> to add this type of
> > information to the FOP web site than for any other
> reason (my company
> > currently doesn't really care *that* much about
> color--but I'm
> > interested!). I assume you use some sort of
> post-processor like iText or
> > something? If you could create some sort of
> tutorial or something on how
> > to do this, I think it would be *very* useful.
> Sounds intriguing!
> > 
> > Web Maestro Clay
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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