AW: Trying to transform XML to XSL:FO so I can convert it?

2001-08-30 Thread Beer, Christian

Hi Erich!

To get a String into a org.w3c.Document you could do the following:

String src = ?xml version=\1.0\ . ;

DocumentBuilderFactory dbf  = DocumentBuilderFactory.newInstance();
DocumentBuilderdb   = dbf.newDocumentBuilder();

org.w3c.dom.Document doc = db.parse(new
java.io.ByteArrayInputStream(src.getBytes()));

Greetings
Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  


-Ursprüngliche Nachricht-
Von: Kilmer, Erich [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 21:51
An: [EMAIL PROTECTED]
Betreff: Trying to transform XML to XSL:FO so I can convert it?


OK, finally got the FopServlet to work, thanks for the help!!!

My next problem is that my XML is not in a file. I will be reading it in
from my database (where its stored as a blob) into a large String. Next I
need to do something like an XSLTransform.transform to apply my XSL to the
XML. What results should be my .FO file. Now I have tried this where the XML
and XSL are files and programatically build the .FO file and this works but
I need help with the following things:

1) Is XSLTransform.transform the best class method to use?

2) XSLTransform.transform accepts for the XML input either a xmlSource
String or a org.w3c.dom.Document  what I have is the entire XML in a
String. Whats the best way to turn it into a Document?
TIA
Erich Kilmer


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

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




How to do pre in PDF...

2001-09-14 Thread Beer, Christian

Hi there!

I have a question:
I am developing a XSL, that transforms a XML to PDF using FOP. This shall
include some
code-samples included like one can do using pre in HTML. 

How can I then convert the newlines into fo:blocks??

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




AW: help please Problem with generation PDF

2001-09-17 Thread Beer, Christian

Hi!

I think that 
  inputHandler.getInputSource() 
returns the source xml-file you mentioned in your mail. That is 
because fop tries to process your xml-file as a fo-file but failes.

I don't know how to use a XSLTInputHandler, but I think there must
be another way.

Christian

-Ursprüngliche Nachricht-
Von: Semprini Davide [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 14. September 2001 15:41
An: [EMAIL PROTECTED]
Betreff: help please Problem with generation PDF


Hi,

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

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

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

 and then an error inside driven.render()

my xml is very simple like this:
?xml version=1.0 encoding=UTF-8?
val
titleProva di PDF/title
sourceSorgente/source
date13-09-01/date
paragraph number=1
lineQuesta e' una prova di creazione di PDF utilizzando i tag 
XSL-FO/line
/paragraph
/val

WHY the transform don't know my root element!

Please can somebody help me??

Tanks a lot

D.Semprini



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

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




AW: AW: [Q] root directory for embedded font metric and ttf files ? and new: DumpConfiguration

2001-09-17 Thread Beer, Christian

Sorry, I haven't tried to import fonts or dump the configuration till now. 
Can't help you in that point.

Do you know the filename, where the configuration is dumped to? If yes, try
searching for that file.

That's what I would do. Sorry, I can't help...

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 17. September 2001 16:18
An: [EMAIL PROTECTED]
Betreff: Re: AW: [Q] root directory for embedded font metric and ttf
files ? and new: DumpConfiguration 



Christian,

unfortunately this hasen't allowed me to import fonts just yet. I have
tried both relative and absolute paths since - to no avail.

I have tried absolute with forward slashes (java path syntax) and
backslashes (windows path syntax - since this is a w2k platform)
and have tried relative and URL style file naming.

Which brings me to the next question: The config.xml has an entry
dumpConfiguration which defaults to false.
Can I override that to true in my userconfig.xml and where would that dump
to ? Console doesn`t show anything. Is there anything else I need to
specify ?
TIA
   Axel
   
   
   
   
   





 

Beer, Christian

[EMAIL PROTECTED]   To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]   
 cc:

17/09/2001 14:06 Subject: AW: [Q] root directory
for embedded font metric and ttf  
Please respond tofiles ?

fop-dev

 

 





If you use a relative path, the path where you start the programm from
is the base-path. So in the case of your servlet it is the path from where
you start the servlet-engine.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 17. September 2001 13:48
An: [EMAIL PROTECTED]
Betreff: [Q] root directory for embedded font metric and ttf files ?


I am embedding FOP 0.20.1 into a servlet using the procedure described on
the embedding page, including loading a user configuration file which I
require to use non-standard fonts in my generated documents.

The documentation for embedding extra fonts is missing information as to
where FOP is looking for these fonts - the sample has an absolute path for
the embed file and a relative path for the metrics file.
For my command line tests as part of the stylesheet development, just
having everything in the local directory worked out.

Relative to what would I need to specify the path for the servlet ? Can I
use some kind of java system resource setup to search the class path ?
TIA

Axel



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

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




AW: How to do pre in PDF...

2001-09-18 Thread Beer, Christian

Hi Wolfgang!

Thanks, that did the trick!

Christian

-Ursprüngliche Nachricht-
Von: Duttle Wolfgang ZFF IV [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 18. September 2001 16:19
An: '[EMAIL PROTECTED]'
Betreff: AW: How to do pre in PDF...


Hi Christian,

try to use the fo:block attribute white-space-collapse=false for the whole
code example in one block. Then you will get the same behavior as you use
pre in HTML.

Wolfgang

Wolfgang Duttle
ZF Friedrichshafen AG
Bereich I   Abt. IV
88038 Friedrichshafen
Tel.: 07541/77-7656  Fax: -907656
email: [EMAIL PROTECTED]


-Ursprüngliche Nachricht-
Von: Beer, Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 14. September 2001 14:41
An: Fop-liste (E-Mail)
Betreff: How to do pre in PDF...


Hi there!

I have a question:
I am developing a XSL, that transforms a XML to PDF using FOP. This shall
include some
code-samples included like one can do using pre in HTML. 

How can I then convert the newlines into fo:blocks??

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany 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]




AW: Does render(dom) actually work?

2001-09-20 Thread Beer, Christian

Hi Savino, hi Suhail, hi group!

In the moment I transform my source-xml to a ByteArrayOutputStream and then
use a ByteArrayInputStream as input for FOP. 

I tried to do it the same way as Suhails example, but I get the same error
Savino got.

How can I be sure there are no nulls in the source??

Christian

-Ursprüngliche Nachricht-
Von: Suhail Rashid [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. September 2001 06:29
An: [EMAIL PROTECTED]
Betreff: RE: Does render(dom) actually work?


Hi Savino,

Make sure there 
are NO nulls making their way
into the text nodes of your xml stream.
these would not give problems if u 
wrote the xml to a file first

suhail

-Original Message-
From: Savino, Matt C [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 3:59 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Does render(dom) actually work?


Yuri, thanks for your help. I tried your solution and I still get the
following error:

building formatting object tree
building formatting object tree
javax.xml.transform.TransformerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.j
ava:1212)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:127)
at FOtoPDF.main(FOtoPDF.java:40)
-
java.lang.NullPointerException
at
org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:167)
at
org.apache.xalan.transformer.QueuedStartDocument.flush(QueuedStartDocume
nt.j
ava:108)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHa
ndle
r.java:758)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHa
ndle
r.java:245)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHa
ndle
r.java:209)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:
704)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
form
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
form
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:127)
at FOtoPDF.main(FOtoPDF.java:40)

It looks very similar to the one before to me. Has anyone tried this
with
v.0.20.1 yet? Should it say building formatting object tree twice? I'm
wondering if this is some kind of issue with namespaces and the DOM2
implementation. Anyone have any ideas?

By the way, if I use a DOMResult instead of a SAXResult I get no error.
I
then serialized the DOMResult to a file and FO works fine with that file
as
an input. 

Thanks,
Matt


 -Original Message-
 From: Shkuro, Yuri [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 19, 2001 2:03 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Does render(dom) actually work?
 
 
 Matt,
 
   Why don't you do it all in one pass?  I have a servlet, that calls
 some bean to get XML document in a DOM format (actually JDOM), then
 registers fop driver as receiver of SAX events and runs XSLT on the
 JDOM tree.
 
 // 1. Generate XML tree
 Document xmlSummary = DataLoader.getSummary();
 
 // 2. Get stylesheet transformer
 Transformer transformer = 
 transformerFactory.getTransformer(
 xsl-file );
 
 // 3. Create FOP driver and set rendering mode 
 and output stream
 org.apache.fop.apps.Driver driver = new
 org.apache.fop.apps.Driver();
 driver.setRenderer(driver.RENDER_PDF);
 driver.setOutputStream( out );
 
 // 4. Create SAXResult based on FOP Driver 
 content handler which
 will accept 
 // SAX events and build FOP tree
 javax.xml.transform.sax.SAXResult saxResult =
 new javax.xml.transform.sax.SAXResult(
 driver.getContentHandler() );
 
 // 5. Use the Transformer to transform an XML 
 Source and send
 the output 
 // to a Result object.
 // Implicitely it will create the FOP tree by 
 firing SAX events
 transformer.transform( new 
 org.jdom.transform.JDOMSource( xml ),
 saxResult );
 
 YS
 
 -Original Message-
 From: Savino, Matt C [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 19, 2001 4:33 PM
 To: '[EMAIL PROTECTED]'
 Subject: Does render(dom) actually work?
 
 
 Hello everyone. By any chance can someone point me to some 
 example code
 which uses render(dom)?  No 

space-[before|after].optimum

2001-09-20 Thread Beer, Christian

Hi group!

I am using space-before.optimum or space-after.optimum, to add space
to paragraphs in a text. In version 0.20.1 that worked fine.

Since I am using the actual cvs-version, that doesn't work anymore.
Did I miss something??

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




[ERROR]: Logger not set message

2001-09-20 Thread Beer, Christian

Hi all!

Using version 0.20.1 I used 

code
MessageHandler.setOutputMethod(MessageHandler.EVENT);
MessageHandler.addListener(this);
/code

to recieve the messages of FOP. 

But now as I am trying to use the cvs-version (because 
of the improvement with JPGs) I get the following output
on the console:

output
[ERROR]: Logger not set
[INFO]: building formatting object tree
setting up fonts
[INFO]: [1]
[INFO]: [2]
[INFO]: Parsing of document complete, stopping renderer
/output

But no messages any more!

Did anything change that I didn't recognize??

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




AW: space-[before|after].optimum

2001-09-20 Thread Beer, Christian

That problem disapeared. Don't know why :-|


-Ursprüngliche Nachricht-
Von: Beer, Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. September 2001 09:30
An: Fop-liste (E-Mail)
Betreff: space-[before|after].optimum


Hi group!

I am using space-before.optimum or space-after.optimum, to add space
to paragraphs in a text. In version 0.20.1 that worked fine.

Since I am using the actual cvs-version, that doesn't work anymore.
Did I miss something??

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany 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]




Will there be a RTF renderer?

2001-09-24 Thread Beer, Christian

Hi there!

Out customers would like to have a Word-doc out of FOP. Will 
there be a RTF renderer in the near future? Is something like 
that planed?

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




AW: Will there be a RTF renderer?

2001-09-24 Thread Beer, Christian

Well, I tried that jfor earlier this day, but it doesn't realy
do layouting. I hoped the letter would look like the PDF but it doesn't.

So if somebody knows a fo2rtf-processor that does the layouting
I'd like to hear about that.

Thanks
Christian

-Ursprüngliche Nachricht-
Von: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 24. September 2001 13:40
An: [EMAIL PROTECTED]
Betreff: Re: Will there be a RTF renderer?


On Monday 24 September 2001 12:18, Beer, Christian wrote:
 Will there be a RTF renderer in the near future? 

We (my company, I'm not speaking for the FOP team) have been working on an 
RTF renderer earlier this year, and later scrapped it for a standalone 
implementation known as jfor that is released under the MPL 
license.

So currently AFAIK there is no RTF renderer for FOP, but jfor will allow you

to convert XSL-FO documents to RTF.

You can find more info at www.jfor.org.

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






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

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




overflow=hidden and big images...

2001-10-23 Thread Beer, Christian

Hi Folks!

I wanted to put a logo on a letter using a block-container 
where I put my image in. The image should be clipped if it is 
too big.
But all that happens is that the image disapears. Also if I 
used overflow=visible the image disapears. Is that a bug or
a feature??

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




Centering image on a page...

2001-10-25 Thread Beer, Christian

I want to center an image, of a size I don't know, on a page in 
horizontal and vertical direction. 

How could that be done?

Christian


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
VISIT US AT THE INTERNET WORLD IN NEW YORK
10.-14. Dezember 2001   -   December 10th-14th 2001

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




AW: Problems with images (scaling)...

2001-10-26 Thread Beer, Christian

Hi Jim!

That worked if the image was too wide! But if it is too tall the image 
isn't rendered! It is just gone!

Ist that a bug in fop?

Christian

-Ursprüngliche Nachricht-
Von: Jim Wright [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 26. Oktober 2001 00:41
An: [EMAIL PROTECTED]
Betreff: RE: Problems with images (scaling)...


Put the external graphic inside of a properly-sized block container. Skip
the scaling, content-height, and content-width stuff.

.png and .gif files work fine with this approach. DPI is increased
appropriately as image is scaled down, which helps make high-resolution
.gifs out of low-res ones.

Hope that helps!

jw

-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 4:51 AM
To: Fop-liste (E-Mail)
Subject: Problems with images (scaling)...

I want to put a logo on a letter using FOP. The logo is quite big, but it
shall
be scaled to fit into 25mm x 85mm.

I tried the following code:
-
fo:external-graphic width=25mm height=85mm
 src={CompanyLogo/@src}
 scaling=uniform
 content-height=scale-to-fit
 content-width=scale-to-fit/
-

but FOP says:
-
Error in content-height property value 'scale-to-fit':
org.apache.fop.fo.expr.PropertyException: No conversion defined
-

the XSL-Dokumentation says:
-
[...]
7.13.2. content-height
XSL Definition:
Value:auto | scale-to-fit | length | percentage | inherit
Initial:  auto
Applies to:   fo:external-graphic, fo:instream-foreign-object
Inherited:no
Percentages:  intrinsic height
Media:visual

Values have the following meanings:
auto  The content-height should be the intrinsic content-height.
scale-to-fit  A size of the content-height equal to the height of the
viewport. This value
  implies a certain scaling factor to be applied onto the
content.
[...]
-

So if I doesn't use the content-height/width attributes, the logo is printed
in
the requested width but its original height!! That doesn't look very nice!
;-)

Please help me!

Thanks in advance
Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany 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]




AW: vertical align in a block

2001-10-26 Thread Beer, Christian

I tried this sample code, but it doesn't work (CVS Version from last week)!!
Did that work earlier?

-Ursprüngliche Nachricht-
Von: Giannetti, Fabio [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Oktober 2001 14:54
An: '[EMAIL PROTECTED]'
Betreff: RE: vertical align in a block


Hi Marc,
it isn't possible inside a block, but you can define a
block-container, specify the dimensions and then define the display-align
property, so for example:

fo:block-container width=2cm height=4cm display-align=center
fo:blockMy text/fo:block
/fo:block-container

will produce an area, inside the flow with the specified dimensions and will
render the inner text block in the middle, the subsequent block will be
rendered at the end of the area delimited by the block container

Hope this helps, Fabio

 -Original Message-
 From: Marc Jenzer [mailto:[EMAIL PROTECTED]]
 Sent: 11 October 2001 13:46
 To: [EMAIL PROTECTED]
 Subject: vertical align in a block
 
 
 Hello
 
 How can I define the vertical align (i.e. top / bottom..) 
 from a text in a
 fo:block
 
 Thx
 
 Marc
 
 
 -
 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]




AW: Merge PDF files

2001-10-28 Thread Beer, Christian

Hi!

Apache fop can't merge pdf files. PdfLib can do it and we are using
it for this. It can be found on: http://www.pdflib.com. It is commercial.

Christian

-Ursprüngliche Nachricht-
Von: NagarajaRao [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 29. Oktober 2001 08:29
An: [EMAIL PROTECTED]
Betreff: Merge PDF files


Hi,
 I want to merge PDF files in batch mode. How to do it? Is there any tool
for doing it if that cannot be done directly from apache fop?

Thanks  Regards
Nagaraja Rao


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

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




DPI of images...

2001-10-29 Thread Beer, Christian

Hi!

If I insert images in PDFs, what DPI is used? Is that defined?
Are the DPI used, that can be stored in JPG?

Thanks in advance
Christian



DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
VISIT US AT THE INTERNET WORLD IN NEW YORK

10.-14. Dezember 2001   -   December 10th-14th 2001

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




AW: NameSpace??

2001-10-30 Thread Beer, Christian

You'll have a xml-parser in your classpath that doesn't support namespaces 
in sax. Search for parser.jar or jaxp.jar in your classpath and replace it 
with xerces.

-Ursprüngliche Nachricht-
Von: Gerard van Wijk [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 30. Oktober 2001 11:41
An: '[EMAIL PROTECTED]'
Betreff: NameSpace??


Hello,

ClassLoader loader = this.getClass().getClassLoader();
URL url = loader.getResource(cv.xsl);
System.out.println(url);

TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(new
File(url.getFile(;



[2001/10/30 11:35:02][1 ][I]: ** Transformer Factory error
[2001/10/30 11:35:02][1 ][I]:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: Namespace not supported by
SAXParser


Does anyone know this error?




Gerard

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

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




AW: Supported image file formats

2001-10-31 Thread Beer, Christian

Well that is what I also wondered about earlier:
In FopImageFactory one can find supported:
image/gif
image/jpeg
image/bmp
image/png
image/tga
image/tiff
image/svg+xml

But Jimi, which is used for some of the above supports:
GIF (without Compression), JPEG, TIFF, PNG, PICT, Photoshop, BMP
Targa, ICO, CUR, Sunraster, XBM, XPM, PCX, DCX

Why aren't some of them not supported??

Thanks
Christian

-Ursprüngliche Nachricht-
Von: Corinna Hischke [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 31. Oktober 2001 16:37
An: [EMAIL PROTECTED]
Betreff: Supported image file formats


Hi commiters

As I needed this information during the last days, I searched the spec and
didn't find anything about supported file formats.
(By the way: fo:external-graphic belongs to the list of objects which have
to be supported for basic conformance. As there are so many graphic formats
around, I believe there should be a list of as-a-minimum-required formats
with the spec.)

Anyway - Don't you think it's useful to document which image file formats
are supported by fop?

I found the following list inside the sources:

JPEG
BMP
GIF
PNG
TIFF
SVG

I think it would help - but maybe I missed some lists in any docs? Feel free
to tell me, I sure will remember that hint ;-)

- Corinna



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

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




AW: column spanned in multicolumn region

2001-11-09 Thread Beer, Christian

What you tried is paradox!
You tried to split the region-body into 3 columns and at the same time
span it over 3 columns:

spliting into 3 + spanning over 3 = 1 column

So you'll have to specify the number-columns-spanned to a fo:block or
something that shall be spanned over 3 columns!

Greetings
Christian

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. November 2001 10:26
An: [EMAIL PROTECTED]
Betreff: RE: column spanned in multicolumn region



hi,

Thanks Zhu.

I have tried it  in fo:region-body , eg. fo:region-body
number-columns-spanned=3  column-count=3 margin-bottom=1.2in
margin-top=0.8in/, but  it still can't work,  anything  wrong?

Thank you.


best rgds,
ektan









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

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




AW: FOP memory usage

2001-11-09 Thread Beer, Christian

Well, the problem with page-number-citations is, that he doesn't know the
page number in
the beginning, so he waits until he gets it and holds all pages in memory, i
think.

-Ursprngliche Nachricht-
Von: Jens Khnberger [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. November 2001 16:08
An: [EMAIL PROTECTED]
Betreff: Re: FOP memory usage


I also had this problem.

 To render a fo to pdf (around 100 pages) allocated more then 150 MB.
When I  got rid of  references (in my case page-number-citations) the 
allocated memory was just 40 MB.

Regards,

Jens


Michail Bikoulis wrote:

You can read the following two related articles from the archives:

http://marc.theaimsgroup.com/?l=fop-devm=100034658526437w=2
http://marc.theaimsgroup.com/?l=fop-devm=100482704631972w=2

Your XML files sound huge, but if I remember correctly Mark Lillywhite has
had success with very large XML files.

Regards,

Mike

-Original Message-
From: Maring, Steve [mailto:[EMAIL PROTECTED]]
Sent: 9. november 2001 15:29
To: FOP dev list (E-mail)
Subject: FOP memory usage


I'm using fop-0.20.1.

I started with a 650KB XML file that I transformed into a 4MB XSL:FO file.
Running this file through FOP to generate a PDF used about 90MB of memory.

Initial heap size: 807Kb
Current heap size: 91637Kb
Total memory used: 90829Kb
  Memory use is indicative; no GC was performed
  These figures should not be used comparatively
Total time used: 31265ms
Pages rendererd: 17
Avg render time: 1839ms/page


I have XML files in excess of 15MB that need to be converted to PDF.
Assuming that a linear extrapolation is possible, it would suggest that the
JVM running the FOP process would need in excess of 2GB of memory for this
to avoid the dreaded java.lang.OutOfMemoryError.

Are there any optimizations that can be done to FOP?

Thanks.
-Steve Maring
Nielsen Media Research

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




[OFF-TOPIC] How to get Resolution out of JPG, TIFF, etc...

2001-11-12 Thread Beer, Christian

Hi List!

Sorry, that I ask this (fairly) off-topic question here!

I have to find a way to get the resolution (pixel / inch|mm)
out of files that support this info (JPG, TIFF, ...).

Do I have any chance using JIMI or JAI. Or is there another
simple way to do that??

Thanks
Christian Beer


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  



BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
10. - 14.Dezember 2001

December 10th-14th 2001
VISIT US @ INTERNET WORLD IN NEW YORK

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




AW: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics

2001-11-13 Thread Beer, Christian

Hi!!

There is a big problem with images that are too big for 
the region they should fit into. They are left away without
warning, scaling, cutting or something!!

I think this is a very big problem with fop!!

Cheers
Christian Beer

DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  



BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
10. - 14.Dezember 2001

December 10th-14th 2001
VISIT US @ INTERNET WORLD IN NEW YORK

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. November 2001 14:21
An: FOP-Liste
Betreff: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics


What a pitty, no marvellous solutions have been put into my mailbox before
this morning...

To balance this, my colleagues and I got a bit further: Anybody trying to
get usable documents out of the FOP/Cocoon engine should know: gif graphics
seem to work, but only in the fo regions body and afterof an xsl
stylesheet. Unfortunately, the fo region before is off limits. Bad only,
because sometimes one would like to put a company logo or something like
this into the document header.

Ahm, I forgot: the same seems to apply to some tif's, but not to all. It
would be great if someone fit in fopping under Cocoon would take my
unwilling tif, put it into the region body or after of his or her
stylesheet and try to generate a pdf out of it? It might give us a hint to
where the problems with our system may lie. Please mail me personnaly, if
you can help us. I'll send you the file as an attachment.

PS: The unwilling tif was produced exactly the same way it willing brother
or sister was, i.e. out of Windows® Photoshop®, without any compression or
anything special.


Mit freundlichen Grüßen

Dott. Matthias Fischer
abc.Mediaservice GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 9686-38
Fax  (08241) 9686-26
http://www.abc-media.de
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe




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

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




AW: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics

2001-11-13 Thread Beer, Christian

Hi Matthias,

did you specify a DPI for the JPGs or TIFFs?? If yes, that might be your 
problem! FOP doesn't consider any of this information!

For example: 
 If you insert a JPG with 1 cm x 1 cm at 300 DPI, it will become 
 4,16 cm x 4,16 cm because FOP uses 72 DPI!

Christian

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. November 2001 14:47
An: [EMAIL PROTECTED]
Betreff: RE: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics


Hi Christian,

thanks for the quick response. Your answer seems partially correct, since a
bigger graphics was displayed and a smaller one wasn't. However, generally
docs should satisfy the requirement that graphics are no bigger than the
space in fo for displaying them.

Any clue to what concerns the tif's?

Matthias

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




AW: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics

2001-11-15 Thread Beer, Christian

Hi Matthias!

Do you set width and height at the external-graphic-Tag? Try setting
the resulting size in cm. If you set only one of width or height
the image will be scaled acording to the given aspect ratio.

Christian

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 15. November 2001 12:32
An: [EMAIL PROTECTED]
Betreff: RE: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics


Hallo Christian,

I tried to implement your piece of advice. I got the following problems:
- tif's remain problematic, even if I create them with their final
dimensions at 72dpi
- 72dpi is a bit low for printouts, e.g. of technical drawings
I'm getting closer and closer to desperation...

Matthias

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




AW: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics

2001-11-15 Thread Beer, Christian

Hi Matthias!

Okay:

In GIFs you can't save how much dpi you specified! GIFs always have 96 DPI.
In JPGs you can save the dpi, but FOP doesn't recognize that!
All Images are taken as if they have 72 DPI. So if you don't specify a 
width and height in the external-graphic-Tag a jpg which was saved with
300 DPI will come out larger!

So the best is to save the image at 300+ DPI and then specify the width
and/or height in xsl:fo. Then the quality will be right!

I hope one can understand what I mean. Difficult to explain in english!

Christian

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 15. November 2001 13:03
An: FOP-Liste
Betreff: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics


Christian,

please let me understand you better:
The other day you said (wrote), that forced scaling, e.g. by creating a gif
with 1cmx1cm at 300dpi and trying to force Cocoon to create a PDF with a
300dpi picture of 1cmx1cm would not work, because Cocoon (FOP) computes
everything down to 72dpi, whatever dimensions I specify.

I paid attention to create all graphics in Photoshop in exactly the size
they should have in the pdf, and with 72dpi. The outcome is of poor quality.

Now, set apart tif's, lets take gif's, which seem to be the more docile
format at the moment.

Did your last mail then specifiy that in fo I can set an image height and
width successfully, take a 305dpi gif and transform it into a 305dpi picture
in pdf, without Cocoon (FOP) watering it down to 72dpi and re-sizing it to
multiples of the set dimensions?


Mit freundlichen Grüßen

Dott. Matthias Fischer
abc.Mediaservice GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 9686-38
Fax  (08241) 9686-26
http://www.abc-media.de
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe




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

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




FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics

2001-11-15 Thread Beer, Christian

Hi!

Yes, the TIF-Format also gives you the opportunity to save DPI.

If you want information about the graphic-formats look at:
http://www.wotsit.org

Christian

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 15. November 2001 14:08
An: [EMAIL PROTECTED]
Betreff: RE: FOP v.0.20.1/Cocoon v.2 rc.2 + Graphics


To have it complete, Christian: And in TIF I can do the same thing you
advised me to do in JPG?


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




AW: Difficulties embedding FOP by firing SAX events myself

2001-11-15 Thread Beer, Christian

But fop uses xerces and xalan. This two packages contain all xml-stuff!

-Ursprüngliche Nachricht-
Von: Smith, Paul [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 15. November 2001 14:44
An: '[EMAIL PROTECTED]'
Betreff: RE: Difficulties embedding FOP by firing SAX events myself


Unfortunately I am using Java 1.3.1, javax.xml.* doesn't make an appearance
until 1.4 so I can't use TransformerFactory.

---
Paul Smith

 -Original Message-
 From: Beer, Christian [mailto:[EMAIL PROTECTED]]
 Sent: 15 November 2001 13:14
 To: '[EMAIL PROTECTED]'
 Subject: AW: Difficulties embedding FOP by firing SAX events myself
 
 
 I did it this way:
 
 code
 // FO -- PDF
 driver.reset();
 driver.setOutputStream(pdf);
 driver.setRenderer(org.apache.fop.apps.Driver.RENDER_PDF);
 
 TransformerFactory tFactory = TransformerFactory.newInstance();
 if (tFactory.getFeature(SAXSource.FEATURE) 
 tFactory.getFeature(SAXResult.FEATURE)) {
   SAXTransformerFactory saxTFactory = 
 ((SAXTransformerFactory)tFactory);
 
   TransformerHandler th = saxTFactory.newTransformerHandler(new
 StreamSource(xsl));
 
   // Create SAXResult based on FOP Driver content handler 
 which will accept
   // SAX events and build FOP tree
   SAXResult saxResult = new SAXResult(driver.getContentHandler());
 
   th.setResult(saxResult);
 comment
 
 Now you can use th as a ContentHandler and fire the events on it!
 
 /comment
   pdf.close();
 }
 /code
 
 Christian
 
 -Ursprüngliche Nachricht-
 Von: Smith, Paul [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 15. November 2001 13:11
 An: Fop-Dev (E-mail)
 Cc: Smith, Paul
 Betreff: Difficulties embedding FOP by firing SAX events myself
 
 
 Hi,
 
 I am trying to embed FOP within my own Java application as 
 described in
 http://xml.apache.org/fop/embedding.html, specifically the 
 third method:
 calling getContentHandler() and firing the SAX events 
 yourself and I am
 running into difficulties!
 
 I have a class called MyParser which fires the required events (it
 implements XMLReader). Its parse method that calls SAX events on
 ContentHandler and ignores the InputStream. If I do:
 (I have simplifed the code samples so their maybe a few typos)
 
   MyParser parser = new MyParser();
   XMLSerializer serializer = new XMLSerializer(new
 FileOutputStream(output.fo), new OutputFormat(method, encoding,
 indenting));
   ContentHandler handler = serializer.asContentHandler();
   parser.setContentHandler(handler);
   parser.parse(new InputStream());
 
 Then I can produce a well formed XSL-FO file that validates 
 against the DTD
 provided by N. Grigoriev from RenderX. Running fop on this 
 file eg. fop
 output.fo output.pdf, generates output.pdf successfully.
 
 HOWEVER, If I try and embed FOP by doing:
 
   Driver driver = new Driver();
   driver.setOutputStream(new FileOutputStream(output.pdf);
   driver.setInputSource(new InputSource());
   Logger logger =
 Hierarchy.getDefaultHierarchy().getLoggerFor(foRender);
   logger.setPriority(Priority.INFO);
   driver.setLogger(logger);
   
   MyParser parser = new MyParser();
   driver.render(parser, new InputSource());
   
 FOP generates output.pdf but when opened in Acrobat Reader I 
 get There was
 an error opening this document. Could not repair file.
 Closer inspection shows that the PDF has not been correctly 
 generated at
 all. The first 9 lines look like:
 
 %PDF-1.3
 %ª«¬­
 4 0 obj
  /Type /Info
 /Producer (null) 
 endobj
 5 0 obj
  /Length 235 /Filter /FlateDecode 
  
 
 where as the first 9 lines of the PDF generated by running 
 FOP from the
 command line look like:
 
 %PDF-1.3
 %ª«¬­
 4 0 obj
  /Type /Info
 /Producer (FOP 0.20.1) 
 endobj
 5 0 obj
  /Length 296 /Filter [ /ASCII85Decode /FlateDecode ]
  
 
 During driver.render the logger prints out:
 
 INFO10058   [foRender] (): building formatting object tree
 DEBUG   10058   [fop ] (): setting up fonts
 INFO10058   [foRender] (): [1]
 
 
 Any help you can offer is much appreciated. Thanks in advance
 
 ---
 Paul Smith
 
 
 ***
 DISCLAIMER: The information contained in this email
  is confidential and is intended solely for the use of the
  named addressee.  Access, copying or re-use of the
  information in it by any other person is not authorised.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access

AW: FOP+Graphics

2001-11-19 Thread Beer, Christian

Hi Matthias!

Looking at the HTML, I think you understood my advices wrong!
I think will send you a eMail in german (because I can explain 
better)!

Christian

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 19. November 2001 10:40
An: FOP-Liste
Betreff: FOP+Graphics


I summarized the advice supplied by Christian Beer in an HTML document
(enclosed). You can use it for the FOP online documentation.

Regards,

Matthias


Mit freundlichen Grüßen

Dott. Matthias Fischer
abc.Mediaservice GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 9686-38
Fax  (08241) 9686-26
http://www.abc-media.de
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe



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




FOP hangs when using animated gifs

2001-11-20 Thread Beer, Christian

Hi Folks!

When I use an animated gif in fo:external-graphic, FOP hangs without 
any error!!

Is there a way to find out if a gif is animated??

Thanks
Christian


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  



BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
10. - 14.Dezember 2001

December 10th-14th 2001
VISIT US @ INTERNET WORLD IN NEW YORK

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




FOP hangs when using animated gifs...

2001-11-20 Thread Beer, Christian

Hi FOPers.

I found the place in the source (class GifImage) where the hang happens:
code src=GifImage
protected void loadImage() throws FopImageException {
int[] tmpMap = null;
try {
ImageProducer ip = (ImageProducer)this.m_href.getContent();
FopImageConsumer consumer = new FopImageConsumer(ip);
ip.startProduction(consumer);


//Load the image into memory
// HERE IT BECOMES AN ENDLESS LOOP!
while (!consumer.isImageReady()) {
Thread.sleep(500);
}

this.m_height = consumer.getHeight();
this.m_width = consumer.getWidth();
/code


Why does that happen and how to fix that?!?! Very important to get that 
fixed as soon as possible!!

Thanks
Christian


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  



BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
10. - 14.Dezember 2001

December 10th-14th 2001
VISIT US @ INTERNET WORLD IN NEW YORK

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




AW: FOP hangs when using animated gifs...

2001-11-20 Thread Beer, Christian

Hi FOP-specialists!

I (with help from Jeremias Maerki) found a working solution for the
animated gif 
problem! Here is what I created through diff (I don't have any diff
knowledge! Hope
it is right!):

diff
60c60,61
 if (this.imageStatus.intValue() !=
ImageConsumer.STATICIMAGEDONE)
---
 if (this.imageStatus.intValue() !=
ImageConsumer.STATICIMAGEDONE 
 this.imageStatus.intValue() !=
ImageConsumer.SINGLEFRAMEDONE)
99c100,101
 if (this.imageStatus.intValue() ==
ImageConsumer.STATICIMAGEDONE)
---
 if (this.imageStatus.intValue() ==
ImageConsumer.STATICIMAGEDONE ||
 this.imageStatus.intValue() ==
ImageConsumer.SINGLEFRAMEDONE)
/diff

Hope that anybody could put that in cvs and that it helps!

If you use animated gifs with these changes, the first image of that gif is
rendered to the pdf.


Greetings
Christian Beer

-Ursprüngliche Nachricht-
Von: Beer, Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 20. November 2001 15:05
An: Fop-liste (E-Mail)
Betreff: FOP hangs when using animated gifs...


Hi FOPers.

I found the place in the source (class GifImage) where the hang happens:
code src=GifImage
protected void loadImage() throws FopImageException {
int[] tmpMap = null;
try {
ImageProducer ip = (ImageProducer)this.m_href.getContent();
FopImageConsumer consumer = new FopImageConsumer(ip);
ip.startProduction(consumer);


//Load the image into memory
// HERE IT BECOMES AN ENDLESS LOOP!
while (!consumer.isImageReady()) {
Thread.sleep(500);
}

this.m_height = consumer.getHeight();
this.m_width = consumer.getWidth();
/code


Why does that happen and how to fix that?!?! Very important to get that 
fixed as soon as possible!!

Thanks
Christian


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  



BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
10. - 14.Dezember 2001

December 10th-14th 2001
VISIT US @ INTERNET WORLD IN NEW YORK

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

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




underlining, fo:inline and page breaks.

2001-11-28 Thread Beer, Christian

Hi List!

I have a problem. I want to underline the whole text, which may
go over several pages. 
But to underline one must use fo:inline, right?? But using that
lets my text disapear on all pages but the last.

So my questions:
a) is that a bug or is fo:inline concepted to only go over one page.
b) how can I underline text over several pages?

Greets,
Christian Beer


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  



--- Besuchen Sie uns auf der Internet World in New York vom 11. bis 14. 12.
2001 ---
---  Visit us at the Internet World in New York between 11th and 14th Dec.
2001  ---
- http://www.internetworld.com/events/fall2001/


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




AW: underlining, fo:inline and page breaks.

2001-11-28 Thread Beer, Christian

Not every time, but that can happen!

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 28. November 2001 11:58
An: [EMAIL PROTECTED]
Betreff: RE: underlining, fo:inline and page breaks.


Do you have one single block going over several pages?

Matthias


Dott. Matthias Fischer
abc.Mediaservice GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 9686-38
Fax  (08241) 9686-26
http://www.abc-media.de
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe



-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 11:50 AM
To: Fop-liste (E-Mail)
Subject: underlining, fo:inline and page breaks.


Hi List!

I have a problem. I want to underline the whole text, which may
go over several pages.
But to underline one must use fo:inline, right?? But using that
lets my text disapear on all pages but the last.

So my questions:
a) is that a bug or is fo:inline concepted to only go over one page.
b) how can I underline text over several pages?

Greets,
Christian Beer


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

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




AW: Non existent tag error...

2001-11-28 Thread Beer, Christian

Hi Bryan,

did you solve the problem, or what does the oops mean??

Anyway: 

   xsl:when test=Transaction/Filing/OldFilingNumber
 !=
 ''

is not right, I think! Try:
xsl:when test=Transaction/Filing/OldFilingNumber

That is the right term, the book says so.

Christian

-Ursprüngliche Nachricht-
Von: bryan hansen [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 28. November 2001 18:16
An: [EMAIL PROTECTED]
Betreff: Re: Non existent tag error...


Oops, line 87 is the line that does the xsl:when test!

Bryan

--- bryan hansen [EMAIL PROTECTED] wrote:
 I have some xsl that checks to see if a tag does not
 exist:
 
 fo:table-cell
   fo:block text-align=start
 xsl:choose
   xsl:when test=Transaction/Filing/OldFilingNumber
 !=
 ''
  xsl:value-of
 select=Transaction/Filing/OldFilingNumber/
 /xsl:when
 xsl:otherwise
   N/A
   /xsl:otherwise
 /xsl:choose
   /fo:block
 /fo:table-cell
 
 This was working correctly, but now I am getting an
 error:
 
 ; SystemID: http://utstbrucc2/ucc-ack.fo.xsl; Line#:
 87; Column#: -1
 javax.xml.transform.TransformerException: Unknown
 error in XPath
 
 The only thing that has changed was that I
 reinstalled
 fop? Am I missing a required jar or have a different
 version that would make this stop working?
 
 __
 Do You Yahoo!?
 Yahoo! GeoCities - quick and easy web site hosting,
 just $8.95/month.
 http://geocities.yahoo.com/ps/info1
 

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


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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

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




AW: Large graphics

2001-10-11 Thread Beer, Christian



What 
if you first place the image and then place the text. Doesn't that 
work??

  -Ursprüngliche Nachricht-Von: Scott Moore 
  [mailto:[EMAIL PROTECTED]]Gesendet: Donnerstag, 11. Oktober 
  2001 15:05An: FOP ListBetreff: Large 
  graphics
  Hi all,
  
  I'm creating a cover page that contains a large 
  graphic. Portions of the graphic are transparent (it's a PNG) and I'm 
  trying to place the report title in some of the transparent region. But 
  it always gets truncated by the graphic image, whether transparent or not. 
  
  
  Is there a way to write on top of an 
  image? Specifically, here's the layout of my cover page:
  
  ---
  
  -- 
  - Title here -
  --
  - 
-
  - 
-
  - 
-
  - 
-
  - 
-
  -- 
  
  --
  - 
-
  ---
  
  
  The G is the image and the T is the transparent 
  part. As you can see, part of the title is in the transparent 
  part.
  
  My only solution so far has been to split the 
  graphic vertically in half and then try to align the two parts. It 
  almost works, but careful examination shows the matchup isn't perfect. 
  It's definitely not production quality.
  
  Any help would be appreciated!
  
  Scott


AW: FOP and Sockets

2001-10-11 Thread Beer, Christian

I had the same problem parsing xml directly out of a zip, where
the xml-parser also closes the whole stream. 

I did it this way:
I wrote this class:
code
public class NonClosingInputStream extends FilterInputStream {
  public NonClosingInputStream(InputStream in) {
super(in);
  }

  public void close() {
  }
}
/code

and put it between the InputStream and the parser.

That works fine. But remember to close the stream at the end!

Christian

-Ursprüngliche Nachricht-
Von: Hinrich.Boog [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 9. Oktober 2001 15:17
An: [EMAIL PROTECTED]
Betreff: FOP and Sockets


I mailed some similar message some weeks ago, but now I had a closer look at
my Sockets:

The task I want to do is to buidl a RenderingServer.

1.  opening a socket and make the FOP-Renderer listen
2.  send some xsl:fo file over it
3.  get it redered by the server
4.  send it back over the socket.

The point 1  2 work fine. I open a clientSocket and pass it inside an
InputSource to the
Driver.


//here are come code bits

Socket clientsocket;

DataInputStream in = new DataInputStream(clientsocket.getInputStream());
OutputStream out = clientSocket.getOutputStream();

InputSource is = new InputSource(in);

Driver driver = new Driver(is, temp);
driver.setOutputStream(out);

driver.run();


The main problem is, that the Driver seems to close down THE WHOLE socket
after reading the
inputData. Somehow I want to tell him leave my outputStream open until the
redering is
finished.


Has anyone an idea, how to handle this ?

Thanks
Hinrich



Hinrich Boog, [EMAIL PROTECTED]
Infopark AG
Kitzingstr. 15, D-12277 Berlin, Germany
Tel +49(0)-30-747.993.0, Fax +49(0)-30-747.993.93
http://www.infopark.de/




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

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




AW: startin Fop with Stream objects

2001-10-12 Thread Beer, Christian

Hi!

Look into the API-Doku! 

There is a constructor:
public Driver(org.xml.sax.InputSource source, 
  java.io.OutputStream stream) 


And if you look into org.xml.sax.InputSource there is:
InputSource(InputStream byteStream) 
  Create a new input source with a byte stream. 
InputSource(Reader characterStream) 
  Create a new input source with a character stream. 
InputSource(String systemId) 
  Create a new input source with a system identifier. 

So there is no problem!!!

Greetings
Christian

-Ursprüngliche Nachricht-
Von: Ursprung Manfred [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 12. Oktober 2001 11:52
An: Fop-Liste (E-Mail)
Betreff: startin Fop with Stream objects


I use Fop in a servlet to generate PDF output from dynamic generated data.
To start fop in a servlet xml xsl resource have to be a file (according to
FAQ). 

So I have to store my dynamic xml data in a file. 
But I want my Java Stream object to be passed to Fop.
Is it possible ?
Is it on todo list ?

- Manfred

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

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




AW: Slightly off topic, valid syntax

2001-10-12 Thread Beer, Christian

Hi!

It is very correct XML! You can embedd tags in other tags surrounded
by text without problems:

fo:block
  Text before 
  fo:inline color=blue
Text inside
  /fo:inline
  Textafter
/fo:block

Christian

-Ursprüngliche Nachricht-
Von: Colin Savage [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 12. Oktober 2001 15:04
An: '[EMAIL PROTECTED]'
Betreff: Slightly off topic, valid syntax


I was experimenting with fo:inline and I am not sure if this is valid?

fo:blockText before fo:inline color=blueText inside/fo:inline Text
after/fo:block

When running thru FOP 0.20.2 it appears to work correctly (i.e. some text
in black, then some text in blue, then some text in black), but I was
wondering if this is valid syntax. Furthermore... is it valid xml?

Thanks in advance
Colin

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

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




How to get information about overflow...

2001-10-15 Thread Beer, Christian

Hi list!

I have fop-code to create a postcard (page-height=105mm
page-width=148mm) where
on the first page there is an image and on the second page there should be
text on
the left and space on the right (for the address). 
This snippet should create the text on the left:

fo:page-sequence master-name=second-page
  fo:flow flow-name=xsl-region-body

!-- height = page-height - (margin-top + margin-bottom)
 width  = (page-width - (margin-left + margin-right)) / 2 - 1  --
fo:block-container width=68mm height=95mm position=absolute
top=0mm left=0mm overflow=hidden
  fo:block font-size={$Font-Size}  font-family={$Font-Family}
font-weight={$Font-Weight}  font-style={$Font-Style}
color={$Font-Color} overflow=hidden

!-- Space for the signature-line... --
fo:block space-after.optimum=10pt
  #160;
/fo:block

!-- text... --
xsl:for-each select=Text/p
  fo:block language=de hyphenate=true
xsl:value-of select=text()/
  /fo:block
/xsl:for-each

!-- ... --


That works fine, if the text is short enough. If it is too long for the
page,
there is no warning (like ) but the text is missing...
I thought that overflow=hidden should do the trick, but it doesn't!!


Please help!!

Greetings
Christian beer

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




AW: Why XSL FO

2001-10-15 Thread Beer, Christian

I think I didn't understand your question?? What do you want to do??

Is it XML - PDF conversion? If yes, then think about:
XML --XSLT-- XSL FO --FOP-- PDF
that means:
 - Use xalan (or another XSLT-processor) to convert XML to XSL FO
 - Feed the output of xalan to FOP to produce PDF (or PCL or ...)

Cheers  
Christian

-Ursprüngliche Nachricht-
Von: Mailer Mailer [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 15. Oktober 2001 12:40
An: [EMAIL PROTECTED]
Betreff: Why XSL FO


Hi there,

Can anyone help me in knowing that why XSL cannot be
written to translate the xml to PDF. 
Why XSL FO is the approach to create the PDF. 
Lets forget about the generic solution to create
multiple format document. 
Now anyone kindly tell me Can I write xsl's to create
my xmls directly to PDF 1.1 or higher.


I am in a fix :-( 
Any pointers will be helpful If I endup in knowing the
issues that may come while transforming XML to PDF.


Thanks in advance
Deep

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

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

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




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

2001-10-16 Thread Beer, Christian

What you do is printing CHARACTER data!! Try this:
code
OutputStream os = response.getOutputStream();
os.write(binary-data/);
os.close();
/code

Cheers
Christian

-Ursprüngliche Nachricht-
Von: Rajagopal. V [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 15. Oktober 2001 20:49
An: [EMAIL PROTECTED]
Betreff: Re: Embedding fop in IE..Help!!!


Hi
Im using a JSP to generate this PDF. I am able to open
other Static pdfs.
This is what i do, i create a bytearrayoutputstream
which will hold the output of the render and then use
a 

pageContext.getOut().print(bytearrayoutputstreamobject);

and this results in printing binary content on the
screen.. I assume this is bcoz IE doesnt recognize the
content type and print jst prints it on the screen,
whereas Netscape understands the Content Type and
displays it as a PDF.
I tried to create a servlet which will generate the
PDF(using streams to generate the output) and it works
in IE and Netscape.

Now, is it not possible to render a PDF using
JSP(especially on IE)?? IS there a way?

Thanks
Raj

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

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

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


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

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

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




Problem with endless loop and tables...

2001-10-17 Thread Beer, Christian

Is that already solved?? I have the problem, that I get that endless loop.

Christian

__
DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




AW: AW: Non existent tag error...

2001-11-30 Thread Beer, Christian

Hi Darren!

That's not completely righ.
Your tests check if the attribute named tagname exists, 
not the tag named tagname.

Christian

-Ursprüngliche Nachricht-
Von: Darren Munt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 29. November 2001 23:18
An: '[EMAIL PROTECTED]'
Betreff: RE: AW: Non existent tag error...


I've found that the test needs to encompass three possibilities:

1. That the tag is not present;
2. That the tag is empty (ie. tagname=''), or;
3. That the tag is present and contains a value.

If you use test=@tagname, the test will be true in cases 2 and 3. However,
if you use test=not(@tagname='') (or test=@tagname!='') then it will
only be true for case 3, at least this is the case with the parser I use. So
it depends on whether or not you want different behaviour when the tag is
missing than you want when the tag is present but empty.

-Original Message-
From: bryan hansen [mailto:[EMAIL PROTECTED]]
Sent: Friday, 30 November 2001 2:09 
To: [EMAIL PROTECTED]
Subject: Re: AW: Non existent tag error...


I did not solve the problem, I was going to add the
line that I said oops on in the original message,
sorry for the confusion. I will try this and see if it
works.

Thanks,

Bryan

--- Beer, Christian [EMAIL PROTECTED] wrote:
 Hi Bryan,
 
 did you solve the problem, or what does the oops
 mean??
 
 Anyway: 
 
  xsl:when
 test=Transaction/Filing/OldFilingNumber
  !=
  ''
 
 is not right, I think! Try:
 xsl:when test=Transaction/Filing/OldFilingNumber
 
 That is the right term, the book says so.
 
 Christian
 
 -Ursprüngliche Nachricht-
 Von: bryan hansen [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 28. November 2001 18:16
 An: [EMAIL PROTECTED]
 Betreff: Re: Non existent tag error...
 
 
 Oops, line 87 is the line that does the xsl:when
 test!
 
 Bryan
 
 --- bryan hansen [EMAIL PROTECTED] wrote:
  I have some xsl that checks to see if a tag does
 not
  exist:
  
  fo:table-cell
fo:block text-align=start
  xsl:choose
  xsl:when
 test=Transaction/Filing/OldFilingNumber
  !=
  ''
   xsl:value-of
  select=Transaction/Filing/OldFilingNumber/
  /xsl:when
  xsl:otherwise
N/A
  /xsl:otherwise
  /xsl:choose
/fo:block
  /fo:table-cell
  
  This was working correctly, but now I am getting
 an
  error:
  
  ; SystemID: http://utstbrucc2/ucc-ack.fo.xsl;
 Line#:
  87; Column#: -1
  javax.xml.transform.TransformerException: Unknown
  error in XPath
  
  The only thing that has changed was that I
  reinstalled
  fop? Am I missing a required jar or have a
 different
  version that would make this stop working?
  
  __
  Do You Yahoo!?
  Yahoo! GeoCities - quick and easy web site
 hosting,
  just $8.95/month.
  http://geocities.yahoo.com/ps/info1
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, email:
  [EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! GeoCities - quick and easy web site hosting,
 just $8.95/month.
 http://geocities.yahoo.com/ps/info1
 

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

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


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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




AW: OutOfMemoryError in apache fop/cocoon

2001-12-04 Thread Beer, Christian

Hi Barbara!

Well that's a cocoon question. Please ask that in a cocoon list.

Greets
Christian Beer

-Ursprüngliche Nachricht-
Von: Barbara Slupik [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. Dezember 2001 14:18
An: [EMAIL PROTECTED]
Betreff: OutOfMemoryError in apache fop/cocoon


Hello

I am using Apache fop-0_20 and Cocoon 2. I have OutOfMemoryError in fop for
a large
document. When I run it from the Windows command line I added:

java -Xms64M -Xmx320M 

and this fixed the memory problem.

How to do the same in cocoon?

Barbara Slupik


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

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




AW: Advice please

2001-12-05 Thread Beer, Christian

You may convert PDF to PS using ghostview or something and then send
that to a PS-printer.

-Ursprüngliche Nachricht-
Von: Phillips Tony [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. Dezember 2001 14:12
An: '[EMAIL PROTECTED]'
Betreff: Advice please


Hi,

I'm putting together a bill production facility which is now almost
complete; there's some reasonably complex XSL:FO stuff to produce lovely
bills in PDF...and I'm impressed with FOP.  However, I now need to print
'em!  

I've looked at a couple of options:

1. firing off Acrobat from command line to print a file
2. build in printing direct from FOP.  

My problems with the above are:

1. My most common target boxes is SCO Unix; Acrobat doesn't appear to have
been ported! 

2. I've made this work but I get different results - presumably becuase of
differences in the renderer.

Can anyone advise me of other options? - Anyone experience with a PDF to
printer utility that'll work, perhaps in Java, perhaps that exists for SCO?
Or is there a better way of producing a printed page from FOP?

many thanks


Tony


 Tony Phillips
 Development Manager
 
 axxia Systems Limited
 
 TEL:  +44 (0)118 960 2649 
 FAX:  +44 (0)118 960 2600
 E-MAIL:   [EMAIL PROTECTED]
 WEB:  http://www.axxia.com
 Axxia House, 4 The Pavilions, Ruscombe Business Park, Twyford, Berkshire,
 United Kingdom. RG10 9NN
 
 E-MAIL DISCLAIMER
 
 The information in this e-mail and any attachment is confidential.  It is
 intended only for the named recipient(s). If you are not a named recipient
 please notify the sender immediately and do not disclose the contents to
 another person or take copies. Although Axxia Systems has taken every
 reasonable precaution to ensure that any attachment to this e-mail has
 been checked for viruses, it is strongly recommended that you carry out
 your own virus check before opening any attachment, as we cannot accept
 liability for any damage sustained as a result of software virus
 infection. Axxia Systems reserves the right and senders of messages shall
 be taken to consent to the monitoring and recording of e-mails addressed
 to axxia.com.
 
 
 



E-MAIL DISCLAIMER

The information in this e-mail and any attachment is confidential. 
It is intended only for the named recipient(s). If you are not a
named recipient please notify the sender immediately and do not
disclose the contents to another person or take copies. Although
Axxia Systems has taken every reasonable precaution to ensure
that any attachment to this e-mail has been checked for viruses, 
it is strongly recommended that you carry out your own virus 
check before opening any attachment, as we cannot accept
liability for any damage sustained as a result of software virus 
infection. Axxia Systems reserves the right and senders of
messages shall be taken to consent to the monitoring and
recording of e-mails addressed to axxia.com.
***


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

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




AW: Send a document directly to a printer

2001-12-13 Thread Beer, Christian

I think it is not that easy to open a file connection to a printer like
it was in dos times (I don't know if it could be done in windows). I think
you can't open an OutputStream to a printer.
Well sorry enough I don't know how to send a file to a printer. Didn't have
to do it till now. Sorry.

Christian

P.S: DON'T USE BACKSLASHES - PLEASE!!! It's a windows thing!!! Use slashes 
in filenames for java !!

-Ursprüngliche Nachricht-
Von: Thieler Jens [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. Dezember 2001 10:42
An: '[EMAIL PROTECTED]'
Betreff: AW: Send a document directly to a printer





And do try backslahes.


-Ursprüngliche Nachricht-
Von: Dvorák Zdenek [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 13. Dezember 2001 10:40
An: '[EMAIL PROTECTED]'
Betreff: RE: Send a document directly to a printer


Hi Echevarría,
 
this looks like the program fails on FileOutputStream out = new
FileOutputStream(printer);
from API:
file:///C:/Data/zdv/lze%20smazat/jdk1.2.2/docs/api/java/io/FileNotFoundExce
ption.html FileNotFoundException - if the file exists but is a directory
rather than a regular file, does not exist but cannot be created, or cannot
be opened for any other reason
 
Try first to save the output to a regular file on the disk in order to
eliminate the FOP fault.
 
regards Zdenek

-Original Message-
From: Gorka Echevarría [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 18, 2001 10:19 AM
To: Lista-FOP
Subject: Send a document directly to a printer



Hi,
 
Can anybody say me how can I send a document directly to a printer?
I have tried the following code to render the document to a printer using
Driver.RENDER_PCL, but it doesn´t work (i get the exception
file.io.FileNotFoundException)
String printer =ntsrv_200//prn1;
FileOutputStream out = new FileOutputStream(printer);
Driver driver = new Driver(input.getInputSource(),out);
driver.setRenderer(Driver.RENDER_PCL);
driver.run();
out.close();
 
Thanks in advance

Gorka Echevarría Vélez
BILBOMÁTICA, S.A.
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 
 
 

 


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

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




AW: launch Acrobat Reader invisible

2001-12-13 Thread Beer, Christian

Do you know how to tell acrobat to which printer it shall print??

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. Dezember 2001 10:46
An: [EMAIL PROTECTED]
Betreff: Re: launch Acrobat Reader invisible



If you start regedit and find the standard value of
HKEY_CLASSES_ROOT\.pdf, you'll find what document type files that ends
with
.pdf is.
In my case it's AcroExch.Document. Then I lookup
HKEY_CLASSES_ROOT\AcroExch.Document to find what operations is registered
on this document type. Under
HKEY_CLASSES_ROOT\AcroExch.Document\shell\print\command if find that the
command line to print
this document is C:\Programfiler\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe /p
/h %1.

So it's available with Acrobat 5 too.

--
Sindre Solem
Emma EDB AS


 

Dvorák Zdenek

zdvorak@csasTo: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]   
.cz cc:

 Subject: launch Acrobat Reader
invisible  
13.12.2001

09:17

Please

respond to

fop-dev

 

 





Hi,

If anyone is interested in printing via Acrobat:

this is the way of calling Acrobat Reader (only version 4) in the background
in order to print a document.

AcroRd32.exe /p /n /h filename

The Acrobat does the job and exits.

If anyone has an idea how to do it in later versions I would appreciate it.

Zdenek

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




AW: Getting error running latest FOP

2001-12-19 Thread Beer, Christian

Well, the latest CVS-code is a rewrite of fop so it doesn't work at the
moment.
Try the maintenance-branch of cvs or donwload the latest release.

Christian

-Ursprüngliche Nachricht-
Von: Kilmer, Erich [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 19. Dezember 2001 19:21
An: '[EMAIL PROTECTED]'
Betreff: Getting error running latest FOP


Hello,
Downloaded the latest fop cvs code set (xml-fop_20011219112513.tar.gz). Then
I built it and it says build successful.
When I try to run it  I get:

D:\FOP\xml-fopjava -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\ava
lon-framework-4.0.jar;lib\logkit-1.0b4.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop
CVS FOP DOES NOT WORK - DO NOT EXPECT ANYTHING
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/log/format/Formatter at org.apache.fop.apps.Fop.main(Fop.java:15)

I looked in the lib directory and in the logkit-1.0b4.jar and I can see
Formatter there at the right location.
I tried that FAQ link but it is broken.

Anyone know what I am doing wrong?

TIA,
Erich

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

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




AW: FOP-XSL:dynamic external graphics

2002-01-06 Thread Beer, Christian

Hello!!

Well, try this one: 
fo:external-graphic src={$filepathValue} /

{ and } are kind of escape-chars, that tell xalan to process their
content.

You can also do this, I think, if you only need the filename one time.
fo:external-graphic
src={concat('file:../default/tra-app/images/',client/id,'logo.gif')} /


Greetz

Christian

-Ursprüngliche Nachricht-
Von: Rachael Blank [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 4. Januar 2002 18:46
An: [EMAIL PROTECTED]
Betreff: FOP-XSL:dynamic external graphics


Hello and thanks in advance for your help!

Is there a way I can dynamically display images based on an xml tag that
I am given?

I receive the following xml:
client
   id/id
   ...
/client

I currently have the following uri specification and it works:
fo:external-graphic src=file:../default/tra-app/images/chclogo.gif/

I need the image name (chclogo.gif) to change depending on the
clientida number/id/client that I receive in the xml.

I thought something like this would work:
fo:table-cell
   fo:block
   white-space-collapse=true
   xsl:variable name=filepathValue 
   
select=concat('file:../default/tra-app/images/',client/id,'logo.gif')
/ 
   fo:external-graphic src=$filepathValue /
   xsl:value-of select=$filepathValue /!--Error checking--
   /fo:block
/fo:table-cell

I am receiving the following error with the above code:
Error while creating area : Invalid Image URL - error on relative URL :
java.lang.NullPointerException

I am sure that I have the correct path (because the $filepathValue
displays correctly on the screen via my value-of select statement), but
I am thinking it is not possible to pass a variable into the src element
of the fo:external-graphic statement.  I also made sure this image is
correctly named and in the appropriate directory.

Any thoughts or alternatives, anyone?

Thanks!

Rachael










Can I

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

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




AW: cannot not use certain character in xml to make pdf

2002-01-08 Thread Beer, Christian

There is no problem using 'ü' or 'ß' or something. You must check the header
of
the xml-file:

?xml version=1.0 encoding=ISO-8859-1?

The encoding specifies what characters you may use. If you use the header
above,
you can use 'ü', etc. without unicode or something!

For nbsp; (non-breaking space in HTML) you can use #160;.

The reference to all classes can be found in the JavaDoc of FOP, that can be

found in:
 fop-dir/javadocs


Greetings

Christian Beer


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

-Ursprüngliche Nachricht-
Von: Nick Winger [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Januar 2002 12:02
An: [EMAIL PROTECTED]
Betreff: cannot not use certain character in xml to make pdf


hi !


i cannot use character 0xfc ( an ü ) ( which i need for german language )
and i cannot use 0xa0 ( a non braking space )

can i have fop to use all characters ( can i set the language ? )

where  can i find a reference for all classes and methods for fop ?


best regards

Nick Winger

(Software-Developer)


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

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




AW: can someone help solving this exception ?

2002-01-08 Thread Beer, Christian

You wanted to use an entity, that isn't declared! You can't use nbsp; or
something HTML knows. Get the ascii-value of sol; and replace it with:
#asci-code;.

-Ursprüngliche Nachricht-
Von: Nick Winger [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Januar 2002 13:38
An: Apache Mailinglist (E-Mail)
Betreff: can someone help solving this exception ?


hi !


i have a block which looks like this:
fo:blockSUPPLYsol;TAKE-UP REEL TABLE/fo:block

and i get the exception:
org.apache.fop.apps.FOPException: The entity sol was referenced, but not
declared.

now i don't want to reference anything, the text between the block should
just be normal text
which should be displayed...


greetings

Nick Winger

(Software-Developer)


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

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




AW: Layout Problems with PDF

2002-01-09 Thread Beer, Christian

What do you mean by all layout information like page margin or cell-
width in tables are not displayed/printed correctly ??

Do you mean they are smaler than on screen or something?

-Ursprüngliche Nachricht-
Von: Lars Karschen [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 9. Januar 2002 11:29
An: [EMAIL PROTECTED]
Betreff: Layout Problems with PDF


Hi,

I know this problem has been discussed some times before,
(the first time 2000-10-8, at this time i hardly knew XML at all ;)
but i'm not able to find anything like a solution or comment
that might help me.

The problem is as follows:
We're trying to create documents like invoices via XML, and
to print them, we use xsl with formatting objects, and last but
not least, we use FOP (0.20.2 CR) to generate PDF-Files we'd
print after a preview.

Now the problem is, that all layout information like page margin or
cell-width in tables are not displayed/printed correctly, which makes 
the conversion to PDF practically useless. These problems don't occur
when we send the output directly to the printer, then every inch is
set correctly. Also, tests run with XEP 2.5 as Formatter seem to have
the same results, and the PDF-Files are unusable.

i'd appreciate a comment on this problem,


regards, Lars Karschen

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


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

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




AW: AW: Layout Problems with PDF

2002-01-09 Thread Beer, Christian

Do you know about the settings in Acrobat/Acro. Viewer?? You can tell
them to fit the size of the pdf-pages to the printer-pages. Then they
scale the page and the sizes don't fit any more.

Have a look if you want to print Letter on A4 or the other way round
and have a look at the settings in the printer-dialog in Acrobat.

-Ursprüngliche Nachricht-
Von: Lars Karschen [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 9. Januar 2002 11:41
An: [EMAIL PROTECTED]
Betreff: Re: AW: Layout Problems with PDF


Hi,

 What do you mean by all layout information like page margin or cell-
 width in tables are not displayed/printed correctly ??
 
 Do you mean they are smaler than on screen or something?

they are smaller, bigger, but not the intended size.
For example, I got page margins 2.75cm wide while they're
defined 2.5, or table-cells 1.4in wide instead of 1.6in,
but only if i set the Output to PDF and Print it, if it's printed
directly, i get the exact widths !?
 
 -Ursprüngliche Nachricht-
 Von: Lars Karschen [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 9. Januar 2002 11:29
 An: [EMAIL PROTECTED]
 Betreff: Layout Problems with PDF
 
 
 Hi,
 
 I know this problem has been discussed some times before,
 (the first time 2000-10-8, at this time i hardly knew XML at all ;)
 but i'm not able to find anything like a solution or comment
 that might help me.
 
 The problem is as follows:
 We're trying to create documents like invoices via XML, and
 to print them, we use xsl with formatting objects, and last but
 not least, we use FOP (0.20.2 CR) to generate PDF-Files we'd
 print after a preview.
 
 Now the problem is, that all layout information like page margin or
 cell-width in tables are not displayed/printed correctly, which makes 
 the conversion to PDF practically useless. These problems don't occur
 when we send the output directly to the printer, then every inch is
 set correctly. Also, tests run with XEP 2.5 as Formatter seem to have
 the same results, and the PDF-Files are unusable.
 
 i'd appreciate a comment on this problem,
 
 
 regards, Lars Karschen

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


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

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




AW: Any real-life business use ?

2002-01-14 Thread Beer, Christian

I implemented a small class, that analyses the jpg header, extracts the
dpi value and then sets the width and/or height of that image.

-Ursprüngliche Nachricht-
Von: Stefan Weber [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 14. Januar 2002 10:09
An: '[EMAIL PROTECTED]'
Betreff: RE: Any real-life business use ?


what kind workaround for Images are you using?

Stefan

-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 10:02 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Any real-life business use ?


Hi!

We use FOP in a project for our customer. Our applications create letters 
and postcards. The count of pages differ from 1 to 5 pages. The speed is 
good. We only had a few problems in the beginning, because some points in
the XSL-spec are not or not good enough implemented.

I'm looking forward to see what the new design brings for fop (speed and 
functionality).

The only point is, that the image processing is not perfect. The dpi of
an image is not processed. But we found a workaround.

Christian 


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

-Ursprüngliche Nachricht-
Von: Patrick Andries [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 13. Januar 2002 23:31
An: [EMAIL PROTECTED]
Betreff: Any real-life business use ?


Hello everyone,

I have busy evaluated the FO technology and I would like to hear from 
people that are using it for real-life business needs.

What kind of documents are they using it with ? What volume ? Embedding 
it in servlets ? How do they cope with the speed ? How do they justify 
using FO to their bosses ?

Anybody with both 3B2 and FO  or Compuset and FO experience ? I would 
love to hear your story.


Patrick Andries


- ° - ° - ° - °
Tout sur Unicode 3.1 en français : http://hapax.iquebec.com
Traduction complète, mise à jour, texte en ligne





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

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


sitewaerts GmbH
Hebelstraße 15
D-76133 Karlsruhe

Tel: +49 (721) 920 918 0
Fax: +49 (721) 920 918 29
http://www.sitewaerts.de




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

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




AW: Any real-life business use ?

2002-01-14 Thread Beer, Christian

Well, I have got the width and height in pixels and the dpi of the image.
Then I set the width and height paramters in XSL-FO to the calculated
values (pixels - inch). I am using the newest release version.

-Ursprüngliche Nachricht-
Von: Solange Desseignes [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 14. Januar 2002 11:44
An: [EMAIL PROTECTED]
Betreff: RE: Any real-life business use ?


You manage to specify the heigth and the width of an image !!!
I don't succeed !
How do you set these parameters ?
In which FOP version ?

Solange Desseignes


-Message d'origine-
De : Beer, Christian [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 14 janvier 2002 10:15
À : '[EMAIL PROTECTED]'
Objet : AW: Any real-life business use ?


I implemented a small class, that analyses the jpg header, extracts the
dpi value and then sets the width and/or height of that image.

-Ursprüngliche Nachricht-
Von: Stefan Weber [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 14. Januar 2002 10:09
An: '[EMAIL PROTECTED]'
Betreff: RE: Any real-life business use ?


what kind workaround for Images are you using?

Stefan

-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 10:02 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Any real-life business use ?


Hi!

We use FOP in a project for our customer. Our applications create letters 
and postcards. The count of pages differ from 1 to 5 pages. The speed is 
good. We only had a few problems in the beginning, because some points in
the XSL-spec are not or not good enough implemented.

I'm looking forward to see what the new design brings for fop (speed and 
functionality).

The only point is, that the image processing is not perfect. The dpi of
an image is not processed. But we found a workaround.

Christian 


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

-Ursprüngliche Nachricht-
Von: Patrick Andries [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 13. Januar 2002 23:31
An: [EMAIL PROTECTED]
Betreff: Any real-life business use ?


Hello everyone,

I have busy evaluated the FO technology and I would like to hear from 
people that are using it for real-life business needs.

What kind of documents are they using it with ? What volume ? Embedding 
it in servlets ? How do they cope with the speed ? How do they justify 
using FO to their bosses ?

Anybody with both 3B2 and FO  or Compuset and FO experience ? I would 
love to hear your story.


Patrick Andries


- ° - ° - ° - °
Tout sur Unicode 3.1 en français : http://hapax.iquebec.com
Traduction complète, mise à jour, texte en ligne





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

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


sitewaerts GmbH
Hebelstraße 15
D-76133 Karlsruhe

Tel: +49 (721) 920 918 0
Fax: +49 (721) 920 918 29
http://www.sitewaerts.de




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




AW: Triggering XALAN/XERXES from a start routine

2002-02-05 Thread Beer, Christian

I think it's off topic, but look at 
http://xml.apache.org/xalan 
http://xml.apache.org/xerces 

You can call xalan from command line.

 -Ursprüngliche Nachricht-
 Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 1. Februar 2002 10:41
 An: Liste, FOP
 Cc: Zelkanovic, Adnan; Thaler, Gregor
 Betreff: Triggering XALAN/XERXES from a start routine
 
 
 Is it possible to program a start routine, let's say: in some 
 programming
 language (preferably Visual Basic) to trigger an XSL 
 transformation from the
 outside? Have XALAN/XERXES the necessary interface(s)?
 
 I would need to hand over the source and target paths of the 
 XML instances
 and the path of the XSLT.
 
 Has anyone done this already?
 
 
 Matthias Fischer
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




Is there a XML-Schema of XSL:FO?

2002-02-07 Thread Beer, Christian

Hi FOPpers!

Somebody posted a DTD of XSL:FO short time ago. Is there also
a XML-Schema? I think a XML-Schema can better control the 
contents of an XML-file.

If not, I would like to create one. It can then be used to
create a XSL:FO instance using XMLSpy or some other tool.

Christian


DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

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




AW: parser

2002-02-07 Thread Beer, Christian



Hi!

Maybe 
your xsl-file doesn't create a fo, because the templates don't 
match.
Look 
into the xsl-file and check, that there are not typos in the 

xsl:template match="..." attributes.

Did 
you specify the output-format?: 
xsl:output method="xml" version="1.0" 
encoding="UTF-8"/

If 
yes, then the output would contain at minimum the following:
?xml version="1.0" encoding="UTF-8"?

Or try 
to add the following debug template:
xsl:template match="node()"
 
xsl:copy/
/xsl:template

then 
the result should contain at minimum the empty elements of the 
source.

Christian

  -Ursprüngliche Nachricht-Von: Luis María Ruiz del 
  Portal Lázaro [mailto:[EMAIL PROTECTED]]Gesendet: 
  Donnerstag, 7. Februar 2002 09:24An: 
  [EMAIL PROTECTED]Betreff: parserWichtigkeit: 
  Hoch
  Hi all, i have a problem with the fop. i can 
  generate a pdf from a fo file, but i can´t generatethe fo file. Some 
  person´s told me that the problem would reside in the server, that probably 
  uses another parser, but i think that is not the problem.
  
  My server is Apache JServ 1.0
  JAR's xalan-2.0.0.jar, xerces-1.2.3.jar and 
  fop.jar.
  
  My code is the next (xmlparam and 
  xslparamare the files route)
  
  try{ TransformerFactory 
  tFactory = TransformerFactory.newInstance(); Transformer 
  transformer = tFactory.newTransformer(new 
  StreamSource(xslparam)); FileOutputStream f = new 
  FileOutputStream(foparam); StreamResult h = new 
  StreamResult(f); transformer.transform(new 
  StreamSource(xmlparam), h); 
  f.flush(); f.close(); 
  }catch(Exception e){ }
  
  This generates a fo file with 0K.
  
  Thanks.
  


AW: [Understanding] FO Tree

2002-02-14 Thread Beer, Christian

The subject was meant:

[Understanding] FO Tree [3]
^^^ ^^^ ^^^
Prefix  SubjNr of Lesson
(Of all Lessons
not of that Subj)

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 14. Februar 2002 11:00
 An: [EMAIL PROTECTED]
 Betreff: RE: [Understanding] FO Tree
 
 
 
 alll sent messages can be found here:
 http://marc.theaimsgroup.com/
 
 
 
 Jochen Maes
 EDP departement
 Programmeur
 
 KBC-Securities
 Havenlaan 16
 1080 Brussel
 
 Tel : 02/429.96.81
 Fax : 02/429.17.48
 E-mail : [EMAIL PROTECTED]
 
 **
 **
 **
 
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. 
 You must not,
 directly or indirectly, use, disclose, distribute, print, or 
 copy any part
 of this message if you are not the intended recipient. KBC Securities
 reserves the right to monitor all e-mail communications through its
 networks. Any views expressed in this message are those of 
 the individual
 sender, except where the message states otherwise and the sender is
 authorised to state them to be the views of any such entity.
 **
 **
 **
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




AW: output PDF via java.io.Writer

2002-03-01 Thread Beer, Christian

 Is it generally possible to output a pdf stream via a java.io.Writer
object?

Well a java.io.Writer is used for character output. A PDF is binary output,
especialy if you use filters (Flate, ...)

I think it could be possible, but no good idea! The problem is, that a
writer
handles character data (2 bytes) and it can convert the data (for example
\n\r
to \r or something) and then the offsets in the PDF don't fit any more.

The more I think about it, I'd say let it be, also because a JSP is
constructed
to return character data, not binary. We tried to implement a
download-JSP, but
implemented that in a servlet, because there were many errors and caveats.

Greetings

Christian Beer

 -Ursprüngliche Nachricht-
 Von: Holger Prause [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 1. März 2002 13:59
 An: [EMAIL PROTECTED]
 Betreff: output PDF via java.io.Writer
 
 
 Hello,
 
 I am using Fop-0.20.2
 
 Is it generally possible to output a pdf stream via a 
 java.io.Writer object
 ? 
 
 I know its better to use OutputStreams objects to output 
 binary streams as
 pdf,but i want to use a JSPWriter(in a TagLibrary Class) to 
 output a Pdf
 Stream so that i can use it as embedded pdf.
 
 The following sourcode should do the the job
 
 
 InputSource foInputSource = getInputSource();
 //buffer fo outputStream
 ByteArrayOutputStream foBufferStream = new ByteArrayOutputStream();
 Driver driver = new Driver(foInputSource,foBufferStream);
 driver.setRenderer(driver.RENDER_PDF);
 //perform the fo rendering process
 driver.run();
 
 String foOutString = new String(foBufferStream.toByteArray());
 //the writer reference is as reference to the JSPWriter which 
 was passed as
 Argument
 writer.write(foOutString);
 writer.flush();
 
 The problem is that when i convert a ByteArrayOutputStream to 
 a String ,
 some characters are converted wrong.
 
 For Example , the HEX 8d will be converted to HEX 3f , how 
 can i avoid this
 ? What encoding do i have to use to avoid this ?
 
 Thank you in advance,
 
 Holger
 
 
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




AW: inline bullets?

2002-03-04 Thread Beer, Christian

Try using an fo:inline where you set the font to ZapfDingbats, there
you'll find some bullets. Simply insert the ascii-code of one bullet you 
like.

Christian

 -Ursprüngliche Nachricht-
 Von: William Tyler [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 4. März 2002 16:23
 An: [EMAIL PROTECTED]
 Betreff: inline bullets?
 
 
 I would like to implement a bullet inline with text, how 
 would I do this?
 ie text * test * text, replace the * with a bullet
 
 Thanks
 ***
 William (Bill) Tyler
 Senior I/T Specialist
 Enterprise Services for Microsoft Technologies, App Dev
 IBM Global Services, Austin, TX
 
 Office: 512.473.8073
 T/L: 595.8073
 Pager: 800.946.4646 pin:1464080
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




AW: PDF - FO (slightly off topic)

2002-03-11 Thread Beer, Christian

 
 Apologies for the slightly off-topic mail - but does anyone 
 know of an 
 easy way to convert PDF docs to XSL-FO ?
 

I don't think there is any way to do this, especialy no easy 
way!

PDF does not contain any structural information, like XSL-FO 
does. So that would have to be constructed. But the output 
would not be very good, I think.


Christian

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




AW: pdf bean

2002-03-25 Thread Beer, Christian

Hi!

I looked quite a bit into the PDF-file format, but that is very difficult.
So doing that yourself would not be a easy thing to do. You'll have to 
implement some of very difficult rendering-things. 

Christian

 -Ursprüngliche Nachricht-
 Von: Ralph LaChance [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 25. März 2002 11:53
 An: [EMAIL PROTECTED]
 Betreff: pdf bean
 
 
 Hello,
 
 Somewhat off topic, but since this shapes up as the largest 
 collective body
 of pdf-ers outside of Adobe, I hope not to offend.
 
 Anyone know of a pdf-rendering components (java) ?
 
 Some time ago (2 years?) Adobe released a beta bean without support.
 While it is buggy, it one is careful, it will do a good job 
 of rendering basic
 pdf content on a Component (or Canvas).  The bean has not been updated
 since then; it remains unsupported by Adobe, and -- several exchanges
 with Adobe later -- I know of no way to obtain source short 
 of decompilation.
 
 Does any of you know of another candidate component ?   I've 
 cast a large
 net to no success, but perhaps I missed something obvious.
 
 We've even tried to imagine using Adobe's browser plugin, but we
 can't quite get there.
 
 Goal is simple:  take a pdf file and render it in a Component 
 or JComponent.
 
 (btw: Starting from xml in the general case is not an option, 
 so although we
 use fop in production, it won't serve here.)
 
   Thanks for any suggestions
 
   'best
   -Ralph LaChance
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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