Re: AW: storing metadata

2002-10-28 Thread Paul . Hussein


The standard answer is to improve the functionality of FOP pdf generation
to rival the adobe products.

My motivation is to embed the FO that generated the PDF so I can edit
and/or regenerate the PDF.

Cheers

Paul.




J.U. Anderegg [EMAIL PROTECTED] on 24/10/2002 10:35:51

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  AW: storing metadata

Hi Paul,

Do you want to embed the XSL:FO input in the PDF document?

If this is so:
o embedding files in PDF is the thing to do, but quite a challenge to
build into the PDF renderer.
o out of pure curiosity: why?

Hansuli Anderegg



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







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




storing metadata

2002-10-22 Thread Paul . Hussein
I believe the adobe pdf standard includes the ability to store metadata
with the pdf.

XMP i think they call it. I would like to extend FOP to allow storing of
this metadata within the produced PDF.

I could then store the FO inside the PDF for later reference.

Any ideas if this feasible and how I could go about it ??


Regards


Paul.




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




Setting the user configuration in embedded code

2002-10-08 Thread Paul . Hussein

Hi, wonder if anyone can help.

I am trying to set the user configuratuion file with FOP embedded in my
app.


 java.io.BufferedOutputStream bufferedOutputStream = null;
 org.apache.fop.apps.Driver   driver   = null;
 java.io.ByteArrayInputStream byteArrayInputStream = null;

 // file to write output to
 bufferedOutputStream = new java.io.BufferedOutputStream (
outputStream );

 // create FOP object with arguments, and run it
 byteArrayInputStream = new java.io.ByteArrayInputStream
( this.writeXML ( document, true ).getBytes ( ) );
 driver = new org.apache.fop.apps.Driver ( new
org.xml.sax.InputSource ( byteArrayInputStream ), bufferedOutputStream );

 // render pdf to file
 driver.setRenderer ( driver.RENDER_PDF );
 driver.run ( );

 // close file
 bufferedOutputStream.close ( );


I would like to specify some options for loading custom fonts.


Has anyone done this or know how to load a user config file in code. ANy
help would be appreciated.


Regards


Paul.



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




RE: BARCODE

2002-10-08 Thread Paul . Hussein


Two ways I know of.

Using barcode fonts.

Using SVG to draw barcode.

We have used a stylesheet to draw the SVG

works really well.






Rhett Aultman [EMAIL PROTECTED] on 08/10/2002 15:34:55

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  RE: BARCODE

If you made the barcode a graphic, you could embed it.
 -Original Message-
 From: Surov Maxim [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 10:34 AM
 To: [EMAIL PROTECTED]
 Subject: BARCODE



 Hi!


 Is it possible to embed barcodes into PDF using FOP?


 Thanks in advance,
 Maxim Surov







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




RE: Antwort: fo wysiwig editor

2002-10-01 Thread Paul . Hussein


Well, I have submitted a request to start a project with SF.net.

It will take a few days, and then we can hopefully use those resources as
to open a discussion.

Hopefully we can garner enough interest to kick the project off. or at
least thrash out a terms of reference.


Regards


Paul.




Vaidya, Raghavendra (CORP, GEITC) [EMAIL PROTECTED] on
01/10/2002 05:43:16

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  RE: Antwort: fo wysiwig editor

Guys,
I am one of the users of FOP for a very long time.
I would like to get involved in this project as developer, if you guys
start
it
regards
Vaidya

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 8:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Antwort: fo wysiwig editor


Hi everybody,

  this discussion is getting too esoteric. I am willing to put effort
into a new project as I have stated before. It basically depends on if
we are able to gather a strong enough team. However, I think we should
soon move the discussion somewhere else rather than polluting fop-dev.
Any suggestions? Interested?

Marc

- Original Message -
From: Mark Bitz [EMAIL PROTECTED]
Date: Monday, September 30, 2002 4:39 pm
Subject: Re: Antwort: fo wysiwig editor

 Hi,
 I agree with Marc. It's not robust enough and combersome to figure
 out.
 Mark

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, September 30, 2002 8:05 AM
 Subject: Re: Antwort: fo wysiwig editor


  Hi,
 
I checked out XSLfast. It's a nice start. But not advanced
 enough for
  professional print in my opinion.
 
  Marc
 
  - Original Message -
  From: Oleg Tkachenko [EMAIL PROTECTED]
  Date: Monday, September 30, 2002 12:50 pm
  Subject: Re: Antwort: fo wysiwig editor
 
   [EMAIL PROTECTED] wrote:
Exactly, i wasnt intending to suggest that you guys pick
 this
   work up. But
this forum seems the best to maybe chat about it and even
 spin
   another group off. Plus there is lots of expertise out there
 and
   I may have missed
a piece of software.
   btw, guys from jCatalog, which actually developed fop's awt
 viewer
   ended up
   with xslfast, see
   http://www.jcatalog.com/products/xslfast/index.htm. I
   cherish a hope *someday* our clumsy awt viewer will grow into
 a
   full-fledged
   xsl editor :)
  
   --
   Oleg Tkachenko
   Multiconn International, Israel
  
  
   ---
 
   --
   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]


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.


-
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: Antwort: fo wysiwig editor

2002-09-30 Thread Paul . Hussein


Exactly, i wasnt intending to suggest that you guys pick this work up. But
this forum seems the best to maybe chat about it and even spin another
group off. Plus there is lots of expertise out there and I may have missed
a piece of software.

So it seems I have to either instigate another tool, or go the word style
route.

Thanks

Paul.






Victor Mote [EMAIL PROTECTED] on 27/09/2002 18:51:42

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  RE: Antwort: fo wysiwig editor

Paul Hussein wrote:

 Al I want is an editor that that works with FO only.

I don't know of anything out there right now that does what you are looking
for. FO is not intended to be an editable format, but rather an
intermediate
format. The advantage to using FO is that it can be created pretty easily
(using XSLT) from semantic XML. If you don't need that advantage, but need
a
WYSIWIG editor and PDF output, and don't mind paying for it, I would
recommend either Microsoft Word or Adobe FrameMaker. Word's limitations are
well-known, and FrameMaker has two that were major for us -- lack of
Unicode
support, and some footnote problems. There are other page layout engines
that can create PDF as well, some with XML integration -- Arbortext comes
to
mind, but I am much less familiar with their products.

In the long run, I am hopeful that some method will be devised that will
allow the FO document to be tied back to its original semantic XML document
so that the semantic XML document could be reconstructed from the
WYSIWIG-editable FO document (or area tree document). A user could open a
document pointing to 1) the semantic XML document, and 2) the appropriate
stylesheet, edit it in a WYSIWIG session, then save the underlying semantic
XML and stylesheet documents. This would be the best of all worlds, but I
do
not even yet have a clear idea that it is feasible. I agree strongly with
Rhett that there is quite a bit of work left to just get FOP's existing
mission completed, but the great thing about open source is that no one can
(or would want to) stop you from working on such a project if you wished.

Victor Mote (mailto:[EMAIL PROTECTED])
Enterprise Outfitters (www.outfitr.com)
2025 Eddington Way
Colorado Springs, Colorado 80916
Voice 719-622-0650, Fax 720-293-0044


-
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: Antwort: fo wysiwig editor

2002-09-30 Thread Paul . Hussein


That was my hope too.

Maybe for us to pickup the rendering part of AWT Renderer, create new
project with it, Then export as jar that fop could use maybe.






Oleg Tkachenko [EMAIL PROTECTED] on 30/09/2002 11:50:29

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Antwort: fo wysiwig editor

[EMAIL PROTECTED] wrote:
 Exactly, i wasnt intending to suggest that you guys pick this work up.
But
 this forum seems the best to maybe chat about it and even spin another
 group off. Plus there is lots of expertise out there and I may have
missed
 a piece of software.
btw, guys from jCatalog, which actually developed fop's awt viewer ended up

with xslfast, see  http://www.jcatalog.com/products/xslfast/index.htm. I
cherish a hope *someday* our clumsy awt viewer will grow into a
full-fledged
xsl editor :)

--
Oleg Tkachenko
Multiconn International, Israel


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







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




fo wysiwig editor

2002-09-27 Thread Paul . Hussein

Hi all. I wonder if I can get some help.


I am currently using fo and fop to generate pdf documents for a large bank,
and it works beautifully.

We get the XML and apply a stylesheet to produce the document.

However, we have a requirements that means our using should have the
ability to edit the document. That means presenting an editor for the
generated fo.

Is there such a wysiwig editor availabe that ayone knows of ? I have done a
lot of searching, but they all seem to be very poor.

There is foa, but that is very complex.  I just want to edit fo, not play
with other custom layout documents.


If this does not exists, maybe to fop community, and I include myself in
that should being a project to write an editor.

The other alternative is to go fo-rtf rtf- fo. But conversions are
never satisfactory.

Any suggestions would be greatfully received.


Regards


Paul.


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




Re: AW: AW: AW: AW: Embedding FOP in Java

2002-09-20 Thread Paul . Hussein


http://xml.apache.org/forrest/xml-site/cvs.html#N1008F

module is xml-fop, not sure what the branch is sorry, think it might be
20.2

Hope this helps.

Regards

Paul.





Amin Schoeib [EMAIL PROTECTED] on 20/09/2002 13:14:26

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  AW: AW: AW: AW: Embedding FOP in Java

Hi J.Pietschmann,
Thanks for your help.
Can you tell me, where I can download 0.20.5cvs version of FOP ???

Thanxx

Schoeib


-Ursprüngliche Nachricht-
Von: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 19. September 2002 21:46
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: Embedding FOP in Java


Amin Schoeib wrote:
 I tried the code of JohnPT.
...
 java.lang.NullPointerException
  at org.apache.fop.fo.flow.Flow.setFlowName(Unknown Source)  at
 org.apache.fop.fo.flow.Flow.init(Unknown Source)

This is the real problem. Ensure your fo:flow has a flow
name specified:
  fo:flow flow-name=xsl-region-body

Actually, FOP attempts to tell you exactly this but falls
over due to, well, some sort of mess...
(This is fixed in 0.20.5cvs)

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]







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




Re: [ANNOUNCEMENT] FOP 0.20.4 Release Candidate available

2002-06-18 Thread Paul . Hussein


Is it me, or do the examples in fop-0.20.4rc/docs/examples/svg not work.

../../../fop.sh external.fo external.pdf
[INFO] FOP 0.20.4rc
[INFO] building formatting object tree
[Fatal Error] external.fo:79:81: The prefix xlink for attribute xlink:href is not 
bound.
[ERROR] The prefix xlink for attribute xlink:href is not bound.


../../../fop.sh multi.svg multi.pdf
[INFO] FOP 0.20.4rc
[INFO] building formatting object tree
[ERROR] www.w3.org


%java -version
java version 1.2.2
Solaris VM (build Solaris_JDK_1.2.2_09, native threads, sunwjit)
%uname -a
SunOS bmcls055 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-1


Regards

Paul.




Martin Peina [EMAIL PROTECTED] on 14/06/2002 12:10:31

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: [ANNOUNCEMENT] FOP 0.20.4 Release Candidate available


On t, 2002-06-13 at 18:10, Christian Geisert wrote:
 Hi all,

 the Release Candidate for 0.20.4 is available at
 http://xml.apache.org/dist/fop for downloading and testing.

 It is planed to make the actual release in about a week (or two?)
 if no serious bugs show up.

 Changes since 0.20.3 include:

 - Support for background-image
 - FOP should now work with any JAXP1.1 compliant parser/transformer
 - The following JARs have been updated: Xerces to version 2.0.1, Xalan
to version 2.3.1 and Batik to version 1.5beta2.
 - Fop has been compiled with Jimi support
 - Logging has been changed from LogKit to Avalon's Logger Interface
 - New hyphenation patterns: turkish, portuguese and czech
 - FOP should now work on a EBCDIC maschine
 - Support for comma-separated values for the font-family property
 - Russian and Czech messages for AWTViewer

 For details see CHANGES file:
 http://cvs.apache.org/viewcvs.cgi/xml-fop/CHANGES?rev=1.10.2.19


 Feedback/bugreports are welcome especially (but of course not limited)
 for the following issues:

 - compiling FOP with Jdk1.4 under Windows

On Linux with Sun J2SDK 1.4.0_01 it compiles fine.

 - running FOP on a EBCDIC maschine
 - running FOP from Win98/ME command line
 - processing FOP generated PDFs with RIP engines/preflight (?) tools
 - custom font loading with BaseDir property

It works fine, just two things:

  1) If baseDir is set for example to /opt/fop, FOP doesn't
 add / at the end of baseDir as other systems commonly does,
 so you can start use path for fonts like this:

   font metrics-file=../fop-fonts/arial-regular.xml
 kerning=yes
 embed-file=../fop-fonts/arial-regular.ttf
 font-triplet name=Arial style=normal weight=normal/
   /font


  2) It would be nice, if baseDir can be set like Java property
 on the command line, for example:

   java -cp $FOP_CP -DbaseDir=/opt/fop org.apache.fop.apps.Fop a.fo

 Then there won't be any absolute paths in userconfig.xml.




 Needs to be done for the release:
 - check documentation (new jar versions, classpath etc.)
 - anything missing in Release Notes/CHANGES ?
   (apart from fixing my english ;-)

I have one more question. Will there be any improvements with
implementation of last-line-end-indent property in 0.20.4?
DocBook stylesheets use it for generating TOC and without this
property it doesn't look nice.


Martin Perina



-
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: Image clipping with svg

2002-04-24 Thread Paul . Hussein



/dvl/sw/fop-0.20.3/docs/examples/svg/external.fo
SunOS  5.6 Generic_105181-11 sun4u sparc SUNW,Ultra-30
java version 1.2.2
Solaris VM (build Solaris_JDK_1.2.2_09, native threads, sunwjit)

Cheers

Paul.





Rhett Aultman [EMAIL PROTECTED] on 23/04/2002 18:05:17

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  RE: Image clipping with svg


What version of fop are you trying this with?  Additionally, I don't see an
external.fo in the docs\examples\fo\ directory.  There is one called
extensive.fo.  Is that maybe the one you're referring to?

I have JDK1.2.2 on my Solaris 8 box, and if you can confirm the specifics
of your FOP version and the file you were trying this with, I can confirm
this tonight.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:09 AM
To: [EMAIL PROTECTED]
Subject: Image clipping with svg


Using the example external.fo in the docs directory under solaris
2.6/jdk1.2.2, my svg image and the example svg images get clipped on the
RHS in the rendered pdf. Has anyone come across this before, and if so, is
there a solution.


Regards


Paul.


-
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: SVG rendering with FOP on Solaris

2002-04-23 Thread Paul . Hussein



I use pja with slowlaris and FOP
(See attached file: rmiProcess_RMIFOPServer)
Here is an example script that seems to work, don't forget to do the thing
to create rtgraphics.jar if using jdk1.2.2




J.Pietschmann [EMAIL PROTECTED] on 22/04/2002 23:31:07

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: SVG rendering with FOP on Solaris


Cory McNeely wrote:
 We're trying to use FOP in a 'headless' environment on Solaris.
..
Does anyone have a good reference or
 example of the steps involved to make this work in a headless environment
 with Solaris? Either the PJA or the Xvfb solution would be satisfactory,
 although the PJA solution seems preferable. Has anyone gotten this to
work
 on Solaris?

I got PJA running with WebSphere 3.something on AIX, the
instructions on the PJA website are as foolproof as i've ever
seen. Solaris shouldn't be any harder. I still have some
problems with SVG fonts, but i don't care, i use
svgStroke=false anyway.

J.Pietschmann



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






rmiProcess_RMIFOPServer
Description: Binary data

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


Image clipping with svg

2002-04-23 Thread Paul . Hussein

Using the example external.fo in the docs directory under solaris
2.6/jdk1.2.2, my svg image and the example svg images get clipped on the
RHS in the rendered pdf. Has anyone come across this before, and if so, is
there a solution.


Regards


Paul.


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




Re: Fop with Cocoa

2002-04-09 Thread Paul . Hussein


If you don't need to see in AWT mode, tru I think its pjj the plugin AWT
that does not need a display, maybe that will fix it for you.




Richard Van Deren [EMAIL PROTECTED] on 09/04/2002 07:19:44

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:   [EMAIL PROTECTED], David Ewing [EMAIL PROTECTED]
Subject:  Re: Fop with Cocoa


Talking with myself here.   Fop has Swing and AWT stuff in it.  This
might be creating a conflict with apple's Cocoa events.

Shouldn't Fop have the UI separate from the render process?   I appears
to be mixed to me.

On Monday, April 8, 2002, at 02:27 PM, Richard Van Deren wrote:

 I am having problems with using Fop embedded with Apple Macintosh
 Cocoa.   If anyone has this working please let me know.   My calls to
 Xalan work fine.

 My problem is that when I call the render process, Cocoa's window
 server looses connection to my app's windows.

 I have apple looking into this.   If anyone could give us a hint what
 render might be doing I would be happy.   Right now I am completely
 lost.


 -
 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: Multithreaded failure

2002-04-08 Thread Paul . Hussein


Thats not the only problem. I get problems when loading an image when
multithreaded. As previously posted.

If I could build the darn thing, I might look into fixing it.

[INFO]: Parsing of document complete, stopping renderer

-

08/Apr/2002 12:06:50 GMT+01:00 : Warning 
[null/com.chase.gmcc.base.xml.XMLUtility.renderFO(String, Document)]: Problem - 
reason: [null]
org.apache.fop.apps.FOPException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.init(Throwable.java:94)
at java.lang.Exception.init(Exception.java:42)
at org.apache.fop.apps.FOPException.init(FOPException.java:32)
at org.apache.fop.apps.Driver.render(Driver.java:486)
at org.apache.fop.apps.Driver.run(Driver.java:554)
at com.chase.gmcc.base.xml.XMLUtility.renderFO(XMLUtility.java:323)
at com.chase.gmcc.base.xml.XMLUtility.renderFO(XMLUtility.java:293)
at Test$1$MultiThreadedObjectProcessor.process(Test.java:31)
at 
com.chase.gmcc.base.utility.AbstractMultiThreadedObjectProcessor$ProcessorThread.run(AbstractMultiThreadedObjectProcessor.java:81)

-

java.lang.NullPointerException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.init(Throwable.java:82)
at java.lang.Exception.init(Exception.java:33)
at org.xml.sax.SAXException.init(SAXException.java:61)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.Driver.run(Driver.java:554)
at com.chase.gmcc.base.xml.XMLUtility.renderFO(XMLUtility.java:323)
at com.chase.gmcc.base.xml.XMLUtility.renderFO(XMLUtility.java:293)
at Test$1$MultiThreadedObjectProcessor.process(Test.java:31)
at 
com.chase.gmcc.base.utility.AbstractMultiThreadedObjectProcessor$ProcessorThread.run(AbstractMultiThreadedObjectProcessor.java:81)
java.lang.NullPointerException
at org.apache.fop.image.GifImage.loadImage(GifImage.java:137)
at org.apache.fop.image.AbstractFopImage.getBitmaps(AbstractFopImage.java:231)
at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:163)
at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:1202)
at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:708)
at org.apache.fop.apps.StreamRenderer.processQueue(StreamRenderer.java:249)
at org.apache.fop.apps.StreamRenderer.addToRenderQueue(StreamRenderer.java:234)
at org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:219)
at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)
at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:307)
at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1398)
at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1019)
at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1256)
at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.Driver.run(Driver.java:554)
at com.chase.gmcc.base.xml.XMLUtility.renderFO(XMLUtility.java:323)
at com.chase.gmcc.base.xml.XMLUtility.renderFO(XMLUtility.java:293)
at Test$1$MultiThreadedObjectProcessor.process(Test.java:31)
at 
com.chase.gmcc.base.utility.AbstractMultiThreadedObjectProcessor$ProcessorThread.run(AbstractMultiThreadedObjectProcessor.java:81)



Regards

Paul.




David B. Bitton [EMAIL PROTECTED] on 05/04/2002 00:31:38

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Multithreaded failure


I moved the creation (and destruction) of the Driver object inside the
method.  Also I had forgotten that in Apache SOAP, you can control object
lifetime.  So I changed it from Application to Request, so now each request
gets a fresh instance of my class.

This works, but I'm not happy with it.  My question is this, if I have a
Driver object as a global inside my class, will it be trounced by another
instance running in a different thread?

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Code Made Fresh DailyT
- Original Message -
From: Scott Moore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 04, 2002 5:23 PM
Subject: RE: Multithreaded failure



 Upon init (once in the servlet)

 // Gotta configure FOP to know where the base directory is.
Otherwise
 // it will generate errors.  Add a trailing slash so we can use
relative
 // paths in our XSL.
 

Re: How to get 20.3 to build

2002-04-05 Thread Paul . Hussein


Using xalan from jaxp1.1 and manually transforming
./build/src/codegen/allprops.xml ./build/src/codegen/genconst.xsl  to
./build/src/org/apache/fop/fo/properties/Constants.java caused same error.

Using xalan from jaxp1.2ea2 generated it o.k 




From: Paul Hussein on 05/04/2002 08:17



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: How to get 20.3 to build  (Document link: Paul Hussein)

Ah!!

Looks like the autogenerated file is not generated in the first pass, and
second pass error as described occurs cos file does not exist.


Here is the autogeneration of file error :

Building with classpath
/dvl/sw/jdk_1.2.2_09/lib/tools.jar:/dvl/sw/jdk_1.2.2_09/lib/classes.zip:lib/ant.jar:lib/ant-1.3-optional.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.2.3.jar:lib/xalan-2.0.0.jar:lib/xalanj1compat.jar:lib/bsf.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar:lib/avalon-framework-4.0.jar

Starting Ant...

Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
 [copy] Copying 1 file to /home/husseinp/java/fop/fop-0.20.3/build/src/codegen

init:
 [echo] --- Fop 0.20.3 [1999-2002] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/husseinp/java/fop/fop-0.20.3/build/classes/conf
[mkdir] Created dir: /home/husseinp/java/fop/fop-0.20.3/build/classes/hyph
 [copy] Copying 3 files to /home/husseinp/java/fop/fop-0.20.3/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 37 files to /home/husseinp/java/fop/fop-0.20.3/build/src/codegen
 [echo] Generating the java files from xml resources

xslt
in: ./build/src/codegen/allprops.xml
style: ./build/src/codegen/genconst.xsl
out: ./build/src/org/apache/fop/fo/properties/Constants.java

java.lang.StackOverflowError
at java.util.Vector.elementAt(Compiled Code)
at org.apache.xpath.VariableStack.getCurrentFrame(Compiled Code)
at org.apache.xpath.VariableStack.getVariable(Compiled Code)
at org.apache.xpath.XPathContext.getVariable(Compiled Code)
at org.apache.xpath.operations.Variable.execute(Compiled Code)
at org.apache.xpath.functions.FuncConcat.execute(Compiled Code)
at org.apache.xpath.functions.FuncSubstringAfter.execute(Compiled Code)
at org.apache.xpath.XPath.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.pushParams(Compiled Code)
at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemChoose.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemTemplate.execute(Compiled Code)
at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemChoose.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemTemplate.execute(Compiled Code)
at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Co





Christian Geisert [EMAIL PROTECTED] on 04/04/2002 16:25:40

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: How to get 20.3 to build


[EMAIL PROTECTED] wrote:
 I get this error when running build.sh

 compile:
  [echo] Compiling the sources
 [mkdir] Created dir:
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources

  [copy] Copying 11 files to
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources

 [mkdir] Created dir:
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images

  [copy] Copying 5 files to
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images

 [javac] Compiling 497 source

How to get 20.3 to build

2002-04-04 Thread Paul . Hussein


I get this error when running build.sh

compile:
 [echo] Compiling the sources
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources
 [copy] Copying 11 files to 
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images
 [copy] Copying 5 files to 
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images
[javac] Compiling 497 source files to 
/home/husseinp/java/fop/fop-0.20.3/build/classes
[javac] error: File 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/properties/Constants.java
 does not contain type
org.apache.fop.fo.properties.Constants as expected. Please adjust the class path so 
that the file does not appear in the package
org/apache/fop/fo/properties.
[javac] 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/PropertyManager.java:22:
 Class org.apache.fop.fo.properties.Constants not
found in import.
[javac] import org.apache.fop.fo.properties.Constants;
[javac]^


Have I missed something simple ??



Regards


Paul.


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




Re: How to get 20.3 to build

2002-04-04 Thread Paul . Hussein


Ah!!

Looks like the autogenerated file is not generated in the first pass, and
second pass error as described occurs cos file does not exist.


Here is the autogeneration of file error :

Building with classpath
/dvl/sw/jdk_1.2.2_09/lib/tools.jar:/dvl/sw/jdk_1.2.2_09/lib/classes.zip:lib/ant.jar:lib/ant-1.3-optional.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.2.3.jar:lib/xalan-2.0.0.jar:lib/xalanj1compat.jar:lib/bsf.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar:lib/avalon-framework-4.0.jar

Starting Ant...

Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
 [copy] Copying 1 file to /home/husseinp/java/fop/fop-0.20.3/build/src/codegen

init:
 [echo] --- Fop 0.20.3 [1999-2002] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/husseinp/java/fop/fop-0.20.3/build/classes/conf
[mkdir] Created dir: /home/husseinp/java/fop/fop-0.20.3/build/classes/hyph
 [copy] Copying 3 files to /home/husseinp/java/fop/fop-0.20.3/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 37 files to /home/husseinp/java/fop/fop-0.20.3/build/src/codegen
 [echo] Generating the java files from xml resources

xslt
in: ./build/src/codegen/allprops.xml
style: ./build/src/codegen/genconst.xsl
out: ./build/src/org/apache/fop/fo/properties/Constants.java

java.lang.StackOverflowError
at java.util.Vector.elementAt(Compiled Code)
at org.apache.xpath.VariableStack.getCurrentFrame(Compiled Code)
at org.apache.xpath.VariableStack.getVariable(Compiled Code)
at org.apache.xpath.XPathContext.getVariable(Compiled Code)
at org.apache.xpath.operations.Variable.execute(Compiled Code)
at org.apache.xpath.functions.FuncConcat.execute(Compiled Code)
at org.apache.xpath.functions.FuncSubstringAfter.execute(Compiled Code)
at org.apache.xpath.XPath.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.pushParams(Compiled Code)
at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemChoose.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemTemplate.execute(Compiled Code)
at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemChoose.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.templates.ElemTemplate.execute(Compiled Code)
at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Co






Christian Geisert [EMAIL PROTECTED] on 04/04/2002 16:25:40

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: How to get 20.3 to build


[EMAIL PROTECTED] wrote:
 I get this error when running build.sh

 compile:
  [echo] Compiling the sources
 [mkdir] Created dir:
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources

  [copy] Copying 11 files to
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources

 [mkdir] Created dir:
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images

  [copy] Copying 5 files to
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images

 [javac] Compiling 497 source files to
/home/husseinp/java/fop/fop-0.20.3/build/classes
 [javac] error: File
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/properties/Constants.java

does not contain type
 org.apache.fop.fo.properties.Constants as expected. Please adjust the
class path so that the file does not appear in the package
 org/apache/fop/fo/properties.
 [javac]

Re: Tool for generating bar graphs with Java

2002-02-25 Thread Paul . Hussein


Inside or outside browser  ?




Roland [EMAIL PROTECTED] on 25/02/2002 16:02:51

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Tool for generating bar graphs with Java


Hello,
does anyone here know of a good tool to generate bar graphs, line graphs,
pie charts, scatter graphs with Java?

Thanks, Roland


-
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: Exceptions while running embedde fop multithreaded

2002-02-13 Thread Paul . Hussein


Who are the developers of FOP.


How do I ask to get a multithreaded version of FOP, or get that on the
requirements list. I could probably do it, but it needs to be maintained.




[EMAIL PROTECTED] on 12/02/2002 10:15:50

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Exceptions while running embedde fop multithreaded



 Running several threads calling
 org.apache.fop.apps.Driver.run(Driver.java:508) causes nullpointer
 exceptions.

 Is FOP meant to support asynchronous calls and have I found a bug, or is
it
 not thread safe ?

When I last browsed in the source code (0.20.2 I think), I had the
impression
that FOP (at least when seen as a whole) was not explicitely designed to be
thread-safe.

The class Configuration keeps its data in static Hashtables, so you will at
least
share the FOP configuration between threads. This may (or may not) be the
only thing.

I stumpled upon this while figuring out how to run fop repeatedly without
restarting
a VM each time.

Hope this helps,

Arnd Beissner

Arnd Beißner IT-Engineering
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917






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




Re: Migration

2001-07-11 Thread Paul . Hussein


There aren't any fully integrated tools out there ( or I have missed them
).

I use XML Spy ( which is cool ), to do the XML bit, Antenna House XSL
Formatter to display the result of applying XSL to XML to produce FO, and
to edit and debug XSL int the IBM XSL Editor ( which is a really good tool
).

Anyone else have any better tools.






Chris Hamilton-Emery [EMAIL PROTECTED] on 11/07/2001 14:30:24

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Migration


Hi

I'm new here and apologies for any inanities. We're busy introducing an XML
workflow at Cambridge, and I want to begin considering the transfer of
traditional composition specifications to FO specs. But where do I start. I
have a DTD and the formatting of any XML will in part depend on a complex
relationship of elements and attributes and an FO spec dependent on these
variances. Nothing surprising here I guess, but is there an XSL stylesheet
tool I can use to design things? Does anybody out there offer consultancy
services of this kind? And lastly, all of this presupposes that I can use
FO
to achieve very high-quality setting of academic books and journals, but is
this the right direction?

That's my first set of queries!

Best

Chris

__

Christopher Hamilton-Emery
Press Production Director
Cambridge University Press
The Edinburgh Building
Cambridge CB2 2RU, UK

tel: +44 (0)1223 325840 (direct and voicemail)
fax: +44 (0)1223 325700
web: http://www.cambridge.org
web: http://printing.cambridge.org (printing services)
web: http://uk.cambridge.org (outside North America)
web: http://us.cambridge.org (North America)
web: http://www.journals.cup.org (Journals)
__


- Original Message -
From: Michiel Verhoef [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 2:09 PM
Subject: RE: XHTML to PDF using FOP


 Hi,

 First, there is a weird d element in your last table. I'm no XHTML
expert
 but it is not HTML AFAIK.

 Second, some of the tr are missing td elements. A tr needs a td
(at
 least, in HTML it does)
 so my guess is that your XHTML is not valid HTML. Any xsl that converts
 valid HTML to say, fo will give
 errors or at least not the desired result..

 HTH,

 Michiel

 $ -Original Message-
 $ From: rajeev nair [mailto:[EMAIL PROTECTED]]
 $ Sent: woensdag 11 juli 2001 14:15
 $ To: [EMAIL PROTECTED]
 $ Subject: XHTML to PDF using FOP
 $
 $
 $ HELLO,
 $ can anybody help me to convert my XHTMLinto pdf.
 $ the XHTML I'M GIVING BELOW.if I avoid all the anchor
 $ tags(a)tags and table tags and make it pure xsl data
 $ file then i'm easily able to write xslfo file for this
 $ and it is making good pdf.
 $ But for the given Xhtml file how i write xslfo.My real
 $ confusion is where there is table,tr,td tags and also
 $ anchor tags.
 $ Can anyone help me.
 $
 $ ?xml version=1.0?
 $ html
 $ head
 $ link rel=stylesheet href=test2.css
 $ type=text/x-oeb1-css/
 $ /head
 $ body
 $ a name=toc
 $ toc
 $ table
 $ tr
 $ td align=left
 $ h2
 $
 $ bContent/b
 $ /h2
 $ /td
 $ /tr
 $ tr
 $ a
 $ href=#chapTitle Image/a
 $ /tr
 $ tr
 $ a
 $ href=#chap0Page1/a
 $ /tr
 $
 $ tr
 $ a
 $ href=#chap1Page2/a
 $ /tr
 $
 $ tr
 $ a
 $ href=#chap2Page3/a
 $ /tr
 $
 $ tr
 $ a
 $ href=#chap3Page4/a
 $ /tr
 $
 $ tr
 $ a
 $ href=#chap4Page5/a
 $ /tr
 $
 $ tr
 $ a
 $ href=#chap5Page6/a
 $ /tr
 $
 $ /table
 $ /toc
 $ /a
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ a name=chap
 $ chap
 $ table border=25
 $ img src=part1.gif/
 $ /table
 $ /chap
 $ /a
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ br/
 $ a name=chap0
 $ chap0
 $ book3.Click the
 $ sheet-tab Score to bring
 $ the worksheet Score to front. Now let us select the
 $ range B4:E7 (figure 10.26 shows the data to be
 $ copied). Click the cell B4, press the Shift key (and
 $ hold it down), click the cell E7, release the Shift
 $ key. Now the range B4:E7 is successfully
 $ selected./book
 $ book4. Choose Edit
 $ Copy (or click the Copy
 $ tool) and the data in the range gets copied to the
 $ clipboard. Also a running, dotted rectangle (also
 $ called marching ants, marquis, or moving boundary)
 $ appears around the selected range. These marching ants
 $ indicate that Paste tool (and command Paste in the
 $ Edit-menu) is enabled. Paste tool remains enabled as
 $ long as marching ants are present. In order to remove
 $ these marching ants simply strike the Esc key. /book
 $ book5. We want to
 $ paste this data in the Sheet2
 $ of Sales Data.xls therefore, choose Window  Sales Data
 $ (or click the Sales Data icon on the taskbar) in order
 $ to make the workbook Sales Data to be current one.
 $ Then click the sheet-tab Sheet2 to bring the worksheet
 $ Sheet2 to the front. /book
 $ book6. Click the cell
 $ B4 and choose Edit  Paste
 $ (or click the Paste tool). Alternatively, click the
 $ cell B4 and simply strike the Enter key. Also, strike