Re: Blank pdf from servlet

2003-04-07 Thread Klaus Kristiansen

Jeremias Maerki [EMAIL PROTECTED] wrote:

Check if PDFs served from other webservers display correctly on your
workstation.

They do

Check if the Browser receives application/pdf as MIME type.

The browser starts up Acrobat Reader. I take it that this means that it
does.

Check if you set the content length.

I did not. I do not know how. Is there a way to get the length from
any of the classes used, or must I write to a byte array?

Klaus O K

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



Re: Blank pdf from servlet

2003-04-07 Thread Jeremias Maerki
Byte array or a temp file. Compare your code with FopServlet.java in the
FOP distribution.

On 07.04.2003 09:00:39 Klaus Kristiansen wrote:
 Jeremias Maerki [EMAIL PROTECTED] wrote:
 Check if you set the content length.
 
 I did not. I do not know how. Is there a way to get the length from
 any of the classes used, or must I write to a byte array?


Jeremias Maerki


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



Blank pdf from servlet

2003-04-07 Thread Klaus Kristiansen

It is working now. Setting content size did it. What confused me was that
another
servlet I have written works without setting content size.

Thanks for your help. I have been reading this list for some time now, and I
must
say I am very impressed.  Not only do all comers get useful answers very
fast, the
tone is also very friendly even if (as in my case) the problem is not with
FOP at
all.

Klaus O K

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



Re: Centering a _block_ (read div) of text

2003-04-07 Thread Marcus Andersson
I don't really get how this would help me. I have tried it but the feeling I 
get is that I need to know the width of the strings to draw in advance and 
that's exactly what I don't. But I may be wrong. 

If I followed the example in the FAQ then my lines got broken into two (they 
didn't fit in the 100mm wide cell). Then I tried to adjust the width of the 
center cell to almost the full document width but then it didn't get centered. 

/Marcus
- Original Message - 
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:34 PM
Subject: Re: Centering a _block_ (read div) of text


 Marcus Andersson wrote:
  So I want the complete block of the two lines to be centered.
 
 See:
   http://xml.apache.org/fop/faq.html#fo_center_table_horizon
 
 J.Pietschmann
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Centering a _block_ (read div) of text

2003-04-07 Thread Marcus Andersson
This approach could have worked if it wasn't for the fact that the fonts and 
sizes may vary. I guess it also suggests that all characters should have the 
same width which they normally don't. 

But thanks anyway

/Marcus

- Original Message - 
From: Partridge, Michael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 04, 2003 5:38 PM
Subject: RE: Centering a _block_ (read div) of text


You could try indent calculation based on the length of the string for
each line. 

indent = (page-width - string-length) / 2

That's obviously not the xpath syntax you'd need to use, but it should
give you the result you want. Use the xpath function string-length() and
pass in your string. Then for the second line that needs extra indent,
try

indent = ((page-width - string-length) / 2) + extra-indent

Mike

-Original Message-
From: Marcus Andersson [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 8:44 AM
To: [EMAIL PROTECTED]
Subject: Centering a _block_ (read div) of text


Hello

First: Thanx for the help with the questions yesterday.

I need a block of text to be centered. Just to center it is no problem,
the problem is that I want one line in one font and the next line in
another font and the second line should also be skewed relative to the
first line. See ascii image:

The whole region-body:
**
* This is the first line*
*   This is the second line *
**
*  etc...   *

So I want the complete block of the two lines to be centered. If I
create a block element with text-align=center and in the block element
put a block element for each line and also put a start-indent on the
second line then the whole block don't get centered. The two lines get
centered separatly and then the second lines get an indent from the
centered position and that is not the result I want. The result I want
can be compared with creating a div-block that is centered in the body
and having the first line to the far left in that div and then the
second line relative-positioned some pixels to the right. Doing indent
on each line with a constant amount isn't an option since I'm generating
pdf's from different xml sources (as I guess most people are) and the
line lengths can vary.

Hope you understand the question. 

/Marcus

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


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



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



reference-orientation

2003-04-07 Thread Todtenhaupt, Susann
Hi @ all!

I'm using FOP version 0.20.5 and set the attribute reference-orientation
in my stylesheet. While parsing I get the message 
[ERROR] property - reference-orientation is not implemented yet.

Have I to set my page-height and page-width every time so that my
orientation fits or will this feature be implemented in next version?

Thanx in advance!
suse

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



Specifying exact table/row height

2003-04-07 Thread Müller, Markus
Hi all,

How can I specify the exact (maybe by using min AND max) height of a table
or a row?
I think this is a very simple question, but I haven't found the answer
yet...

Thanks all in advance,
Markus

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



Re:Specifying exact table/row height

2003-04-07 Thread Todtenhaupt, Susann
Maybe the attribute height for table-cell or table-row will work...

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



AW: Specifying exact table/row height

2003-04-07 Thread Müller, Markus
Yes, I tried, but it did not work...

$ -Ursprüngliche Nachricht-
$ Von: Todtenhaupt, Susann 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 7. April 2003 14:19
$ An: '[EMAIL PROTECTED]'
$ Betreff: Re:Specifying exact table/row height
$ 
$ 
$ Maybe the attribute height for table-cell or table-row will work...
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 

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



several simple-page-master-objects on one page?

2003-04-07 Thread Todtenhaupt, Susann
Hello!

Is it possible to put more than one page-master-objects on one page (xsl:fo
into pdf, ps)? Like ps-printer can do it...

Thanx for help!
suse

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



font color

2003-04-07 Thread vikram . x . kondadasula
Hai,
I need to add color to the text,is there any attribute like font-color,if
not could anyone tell me how to do it.

Thanks
vikram



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



RE: font color

2003-04-07 Thread Koes, Derrick

color

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, April 07, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: font color

Hai,
I need to add color to the text,is there any attribute like font-color,if
not could anyone tell me how to do it.

Thanks
vikram



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Page HEader

2003-04-07 Thread vikram . x . kondadasula

Hai,

I nedd to add header to all the pages.Could anyone tell me how to do it.

Thanks
Vikram



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



Re: Page HEader

2003-04-07 Thread Peter Solberg

You should take a look at the examples included in the FOP package 
FOP/docs/examples/pagination/basic1.fo
Many of the questions you have are answered quite extensively in the examples. Set up you environment to run FO files to product PDF's directly. Then test all of the examples.
java.exe -Xms64m -Xmx768m -classpath fop.jar;xml-apis.jar;xercesImpl-2.2.1.jar;xalan-2.4.1.jar;batik.jar;avalon-framework-cvs-20020806.jar;bsf.jar;jimi-1.0.jar;jai_core.jar;jai_codec.jar org.apache.fop.apps.Fop (FileName).fo -pdf (OutFileName).pdf
Hope that helps.
Pete Solberg

From: [EMAIL PROTECTED] 
Reply-To: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Subject: Page HEader 
Date: Mon, 7 Apr 2003 15:17:35 -0400 
 
 
Hai, 
 
I nedd to add header to all the pages.Could anyone tell me how to do it. 
 
Thanks 
Vikram 
 
 
 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
 
Add photos to your e-mail with MSN 8. Get 2 months FREE*.

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



Page numbers

2003-04-07 Thread vikram . x . kondadasula

Is there a way of getting page numbers of the format page 1of 12?

Thanks
Vikram



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



Re: Page numbers

2003-04-07 Thread Clay Leeds
This spot on the world wide web has the answer you seek.

http://xml.apache.org/fop/faq.html#fo_total_pages

The rest of that page is a good read, too.

;-)

[EMAIL PROTECTED] wrote:
 Is there a way of getting page numbers of the format page 1of 12?
 
 Thanks
 Vikram


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



RE: Specifying exact table/row height

2003-04-07 Thread Roland Neilands
Try line-height.

If you want a constant height, not a minimum, you can hack it with a
block-container in a cell:
http://marc.theaimsgroup.com/?l=fop-userm=104613197305838w=2

 Yes, I tried, but it did not work...
 $ Maybe the attribute height for table-cell or table-row
 will work...

Regards,
Roland


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



Re: reference-orientation

2003-04-07 Thread J.Pietschmann
Todtenhaupt, Susann wrote:
I'm using FOP version 0.20.5 and set the attribute reference-orientation
in my stylesheet. While parsing I get the message 
	[ERROR] property - reference-orientation is not implemented yet.

Have I to set my page-height and page-width every time so that my
orientation fits or will this feature be implemented in next version?
The next release will probably have some support for reference-orientation,
but there is still a long  way to go.
J.Pietschmann

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


Re: reference-orientation

2003-04-07 Thread Clay Leeds
For clarity's sake, would you be referring to FOP-0.20.5rc3? FOP-0.20.5?
FOP-1.0dev? or what...

;-p

J.Pietschmann wrote:
 Todtenhaupt, Susann wrote:
 
 I'm using FOP version 0.20.5 and set the attribute
 reference-orientation
 in my stylesheet. While parsing I get the message [ERROR]
 property - reference-orientation is not implemented yet.

 Have I to set my page-height and page-width every time so that my
 orientation fits or will this feature be implemented in next version?
 
 
 The next release will probably have some support for reference-orientation,
 but there is still a long  way to go.
 
 J.Pietschmann


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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