Re: How to rotate text 90 degrees using fop, please help me???

2002-01-10 Thread Keiron Liddle

On 2002.01.10 08:57 Manuel Moons wrote:
 I want the text to go from the bottom of the page to the top. But if it 
 goes the other way around I can live with it.
 
 Can you tell me how you did it using svg:text, because I've also tried 
 it but it seemed that fop could not handle the svg inside the xsl:fo 
 document.
 
 So how do I put an svg into my xsl:fo?

You could always look at the examples.
Then you can use almost any type of svg in your document.

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




CMYK

2002-01-10 Thread Ronald Jaramillo

Hi,
I'been working on a RDMS-xml-fo-pdf solution for a katalog. The pdf look
good ( Thanks Karen for the improved tables!! ). Our customer want to send
it to a print-shop( offset ), but the pdf is in RGB color space and the
print-shop need it in CMYK. From the archives I have the impresion that it's
not posible to
generate pdf with fop in CMYK color space. Has somebody some advice? It's
posible to translate the generated pdf color space to CMYK (whitout
quality loss ) with a third party tool? Or has someone a patched version
of FOP with a CMYK flag lying around? I aprettiate every input!

MVH
Ronald Jaramillo
Technical Lead

V I Z I O N   F A C T O R YN E W M E D I A  
Vermundsgade 40C * 2100 København Ø * Danmark
Tel : +45 39 29 25 11 * Fax: +45 39 29 80 11
[EMAIL PROTECTED] * www.vizionfactory.dk

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




Printing a PDF Report

2002-01-10 Thread Raúl Carazo



 I have a pdf report on a frame 
of a jsp-page, and I want to print it BUT calling from the jsp where the report 
is, not waiting the user call it...
 
 Any idea...?

 Thx a lot

 Salve

Siete 
buoni, se potete


Re: Printing a PDF Report

2002-01-10 Thread Manuel Moons

You can print a pdf automatically like this.  Make sure you have a html 
where you embed the pdf into, using the following tag (in this case you will 
not see the object, but if you change the width and height it is possible, 
this is using activeX, so it will probably only work on IE4 and up (if you 
have acrobat reader installed):

object classid=clsid:CA8A9780-280D-11CF-A24D-44455354 
height=0 id=objPdf width=0/object

Now you have to address this in a javascript function:

objPdf.src = ServerURL + ? + lsParameters;
if(confirm(Do you want to print the pdf document?)) {
objPdf.printAll();
}

I hope this helps!!!
Greetings Manuel

From: Raúl Carazo [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: FOP [EMAIL PROTECTED]
Subject: Printing a PDF Report
Date: Thu, 10 Jan 2002 11:38:03 +0100

 I have a pdf report on a frame of a jsp-page, and I want to print it 
BUT calling from the jsp where the report is, not waiting the user call 
it...

 Any idea...?

 Thx a lot

 Salve


Siete buoni, se potete


_
Download MSN Explorer gratis van http://explorer.msn.nl/intl.asp.


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




Numbre of pages

2002-01-10 Thread Raúl Carazo



Is it possible to know the numbre of pages of a 
document before showing it (after renderring, but without showing it on the web 
browser...)?


Siete 
buoni, se potete


Re: Numbre of pages

2002-01-10 Thread Jeremias Maerki

If you download the current CVS (tag: fop-0_20_2-maintain) you'll find a
new method getResults() in Driver.java that gives you back a
FormattingResults object containing this information.

On Thu, 10 Jan 2002 13:04:58 +0100 Raúl Carazo wrote:
 Is it possible to know the numbre of pages of a document before showing it (after 
renderring, but without showing it on the web browser...)?
 
 
 

 Siete buoni, se potete

Cheers
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


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




Table layout

2002-01-10 Thread Phillips Tony

Hello,

I have created an invoice utility based on FOP to produce PDF invoices.  

I've used a multi column table for the 'body' of the invoice and it's
looking quite nice so far!  However, within the narrative column items can
be grouped under headings, for example:

Heading 1 
item
item

Heading 2
item
item

Total

This is working well however I need to do something to make sure that a
heading stays with it's entries when the item list is split over multiple
pages - I guess it's like using keep with next when formatting paragraphs
in Word!

Any guidance much appreciated!

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]




RE: Table layout

2002-01-10 Thread Sergei Timofejev

keep-togather=always

-Original Message-
From: Phillips Tony [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 3:01 PM
To: '[EMAIL PROTECTED]'
Subject: Table layout


Hello,

I have created an invoice utility based on FOP to produce PDF invoices.


I've used a multi column table for the 'body' of the invoice and it's
looking quite nice so far!  However, within the narrative column items
can
be grouped under headings, for example:

Heading 1 
item
item

Heading 2
item
item

Total

This is working well however I need to do something to make sure that a
heading stays with it's entries when the item list is split over
multiple
pages - I guess it's like using keep with next when formatting
paragraphs
in Word!

Any guidance much appreciated!

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]




RE: Table layout

2002-01-10 Thread Phillips Tony

Thanks, still can't seem to get it going - looking at bugzilla report 3044
suggest this isn't working at the moment, anybody succeeded in using
keep-together?

thanks

Tony

 -Original Message-
 From: Sergei Timofejev [mailto:[EMAIL PROTECTED]]
 Sent: 10 January 2002 13:14
 To: [EMAIL PROTECTED]
 Subject: RE: Table layout
 
 
 keep-togather=always



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]




FOP Extensions

2002-01-10 Thread Software AG

Hi, there.

Trying to create a FOP Extension I'm getting totally confused with the docs.
The HTML document says to just have a look at org.apache.fop.extensions.*
and implement the ExtensionObj interface. ExtensionObj is not an interface
but a class, and hardly documented. So all I know is I need to overload the 

public Status layout(Area area)

method. I have rendering code that eats a dom tree and spits out a
java.awt.Image or GIF or whatsoever. Looking at the SVG extension code
confused me more than it helped. From the list archives I could not derive a
cookbook what to do.

- What class do I have to extend: Area (like SVGArea) or ExtensionObj?
- How is this new class going to get the DOM tree inside the
fo:instream-foreign-object element?
- How is this new class going to pass the rendered image to FOP?
- How do I correctly register the new class so FOP will call it?
- What happens if I cannot provide name spaces on the elements?

Hiran

---
Hiran Chaudhuri
SAG Systemhaus GmbH

Email [EMAIL PROTECTED]
Phone +49-171-2204990 

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




uncommitted patches

2002-01-10 Thread Christian Geisert

Ok,

while browsing the archives I found the following uncomitted patches,
and as it is quite frustrating if your patch gets not noticed (and you
worked hard for it..) we should try to commit all (if possible).

* improved font-encoding by Peter S. Housel
(see http://marc.theaimsgroup.com/?l=fop-devm=100559770232644w=2)
To build with this patch you need optional.jar from ant 1.3 
(download
http://jakarta.apache.org/builds/jakarta-ant/release/v1.3/bin/jakarta-ant-1.3-optional.jar
 
and copy it to lib/optional.jar) and add it to build.bat (build.sh has it two
times ;-)
I noticed the same problems as Rainer Garus
(see http://marc.theaimsgroup.com/?l=fop-devm=100790930100949w=2)
Peter, what do you think?

* improved line-breaking-algorithm for japanese by Satoshi Ishigami
(see http://marc.theaimsgroup.com/?l=fop-devm=100311137529637w=2)
Looks good :-) and does not seem to break anything.
My proposal: commit

* bug fix for hypenation by Enrico Schnepel
(see http://marc.theaimsgroup.com/?l=fop-devm=100162872404800w=2)
Fixes a infinite loop and does not seem to break anything.
My proposal: commit

* new swing-handler from Alistair Hopkins
(see http://marc.theaimsgroup.com/?l=fop-devm=100591163523860w=2)
Seems to be work in progress, probably something for the main branch

* Patch that keeps list-item-label and list-item-body together
by Don Wellington
(see http://marc.theaimsgroup.com/?l=fop-devm=99842833609271w=2)
Strange patch format, Don can you resubmit as unified patch?

* AWTRenderer patch by Ralph LaChance: fixes small border problem
(see http://marc.theaimsgroup.com/?l=fop-devm=99719917329956w=2)
I've done a real patch and attached it to this mail.

Christian.

Index: src/org/apache/fop/render/awt/AWTRenderer.java
===
RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/render/awt/AWTRenderer.java,v
retrieving revision 1.38
diff -u -r1.38 AWTRenderer.java
--- src/org/apache/fop/render/awt/AWTRenderer.java  26 Sep 2001 12:00:42 - 
 1.38
+++ src/org/apache/fop/render/awt/AWTRenderer.java  10 Jan 2002 16:44:33 -
@@ -271,10 +271,14 @@
 int starty = pageHeight - ((y + 500) / 1000);
 int endx = (x + w + 500) / 1000;
 int endy = pageHeight - ((y + h + 500) / 1000);
-if (drawAsOutline)
+if (drawAsOutline) {
 graphics.drawRect(startx, starty, endx - startx, endy - starty);
-else
+} else {
+//don't round down to zero
+if (w != 0  endx == startx) endx++;
+if (h != 0  endy == starty) endy++;
 graphics.fillRect(startx, starty, endx - startx, endy - starty);
+}
 }
 
 protected void addFilledRect(int x, int y, int w, int h,




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


Re: uncommitted patches

2002-01-10 Thread Peter S. Housel

 while browsing the archives I found the following uncomitted patches,
 and as it is quite frustrating if your patch gets not noticed (and you
 worked hard for it..) we should try to commit all (if possible).

 * improved font-encoding by Peter S. Housel
 (see http://marc.theaimsgroup.com/?l=fop-devm=100559770232644w=2)
 To build with this patch you need optional.jar from ant 1.3
 (download

http://jakarta.apache.org/builds/jakarta-ant/release/v1.3/bin/jakarta-ant-1.
3-optional.jar
 and copy it to lib/optional.jar) and add it to build.bat (build.sh has it
two
 times ;-)
 I noticed the same problems as Rainer Garus
 (see http://marc.theaimsgroup.com/?l=fop-devm=100790930100949w=2)
 Peter, what do you think?

I'll fix the problems and come up with a revised patch by this weekend.

Cheers,
-Peter S. Housel-   [EMAIL PROTECTED]   http://members.home.com/housel/



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




Plan for maintenance release

2002-01-10 Thread Christian Geisert

Ok,

I'm ready for the maintenance release ;-)

The attached patch just updates the version number (and removes the JDK 1.1
stuff)

Here is my plan:
Make another release candidate (don't forget to update docs from cvs HEAD)
Give some days for testing (there seem to be a lot of people interested ;-)
and if no new serious bugs are appearing make the official release 
(rename the archive, tag cvs, send announcements etc...)

Christian

Index: build.xml
===
RCS file: /home/cvspublic/xml-fop/build.xml,v
retrieving revision 1.44
diff -u -r1.44 build.xml
--- build.xml   12 Sep 2001 09:30:40 -  1.44
+++ build.xml   10 Jan 2002 18:24:50 -
@@ -15,7 +15,7 @@
 
 
 FOP is the world's first print formatter driven by XSL formatting objects. It 
-is a Java 1.1 application that reads a formatting object tree and then turns 
+is a Java 1.2 application that reads a formatting object tree and then turns 
 it into a PDF document. The formatting object tree, can be in the form of an 
 XML document (output by an XSLT engine like XT or Xalan) or can be passed in 
 memory as a DOM Document or (in the case of XT) SAX events.
@@ -166,9 +166,9 @@
 tstamp/
 property name=Name value=Fop/
 property name=name value=fop/
-property name=version value=0.20.1/
+property name=version value=0.20.2/
 filter  token=version value=${version}/
-property name=year value=1999-2001/
+property name=year value=1999-2002/
 
 echo message=--- ${Name} ${version} [${year}] 
/
 
@@ -215,14 +215,6 @@
 property name=jimi value=JimiImage.java/
 property name=jai value=JAIImage.java/
 
-property name=ignore_jdk11
-  value=org/apache/fop/render/awt/**
- ,org/apache/fop/viewer/**
- ,**/GifJpegImage.java
- ,**/JimiImage.java
- ,**/PrintStarter.java
- ,**/AWTStarter.java/
-
 property name=xslt value=org.apache.xalan.xslt.Process/
 property name=src.properties.xsl value=${src.codegen}/properties.xsl/
 property name=src.propmaker.xsl value=${src.codegen}/propmaker.xsl/
@@ -522,19 +514,6 @@
excludes=**/*${ignore_this},${jimi}/
   /target
 
-  target name=compile-jdk11 depends=codegen, prepare-src
-echo message=Compiling the sources for JDK1.1/
-!-- create directories --
-mkdir dir=${build.dest}/
-
-javac srcdir=${build.src}
-   destdir=${build.dest}
-   debug=${debug}
-   deprecation=${deprecation}
-   optimize=${optimize}
-   excludes=**/${ignore_this},${Jimi},${ignore_jdk11}/
-  /target
-
   !-- === --
   !-- Creates the class package   --
   !-- === --
@@ -571,13 +550,6 @@
   /target
 
   target name=all depends=package/ !-- all target for us Makefile converts 
;-) --
-
-  target name=package-jdk11 depends=compile-jdk11,hyphenation
-echo message=Creating the jar file ${build.dir}/${name}11.jar/
-jar jarfile=${build.dir}/${name}-jdk11.jar
- basedir=${build.dest}
- includes=org/**,conf/**,hyph/**/
-  /target
 
   !-- === --
   !-- Prepares the docs   --



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


Re: Table layout

2002-01-10 Thread Matt Savino

Right now keep-with-next at the row level is the only thing that works.
But if you have more rows than can fit on a page, FOP goes into an
endless loop. 

This issue isn't adressed at all in the upocoming maintenance release is
it?




Phillips Tony wrote:
 
 Thanks, still can't seem to get it going - looking at bugzilla report 3044
 suggest this isn't working at the moment, anybody succeeded in using
 keep-together?
 
 thanks
 
 Tony
 
  -Original Message-
  From: Sergei Timofejev [mailto:[EMAIL PROTECTED]]
  Sent: 10 January 2002 13:14
  To: [EMAIL PROTECTED]
  Subject: RE: Table layout
 
 
  keep-togather=always
 
 
 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]