cvs commit: xml-fop CHANGES

2001-12-03 Thread keiron

keiron  01/12/03 22:49:32

  Modified:.Tag: fop-0_20_2-maintain CHANGES
  Log:
  updated some of the changes since last release
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.10.2.2  +14 -0 xml-fop/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /home/cvs/xml-fop/CHANGES,v
  retrieving revision 1.10.2.1
  retrieving revision 1.10.2.2
  diff -u -r1.10.2.1 -r1.10.2.2
  --- CHANGES   2001/12/02 22:20:02 1.10.2.1
  +++ CHANGES   2001/12/04 06:49:32 1.10.2.2
  @@ -31,6 +31,20 @@
   - Add support for letter-spacing.
 Submitted by: Raymond Penners <[EMAIL PROTECTED]>
   
  +*** SVG
  +- updated to cvs batik 3/12/2001 for api changes
  +- fixed problem where width of scaled lines was not correct
  +
  +*** Images
  +- fixed problem where streams where opened for cached images
  +
  +*** Messages
  +- Improved for some common errors
  +
  +*** FOTreeBuilder
  +- fixed npe problem when text outside root element
  +- handles document errors and unknown namespace better
  +
   ==
   Done since 0.20 release
   
  
  
  

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




Re: Evaluating and

2001-12-03 Thread Christopher R. Maden


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

At 08:22 3-12-2001, Max Froumentin wrote:
>Ignore them? Chris, you pushed for aural properties to go in the spec,
>why would you want them out of implementations? :^)

Hrm... more specifically, the visual back-ends should ignore them.  A PDF 
renderer like acrobat is going to have difficulty making text sound 
louder...  Since FOP has multiple back-ends, it's entirely possible that 
there would be an audio back-end at some point.

~Chris
- -- 
Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
http://www.hmmci.com/ > http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA
-BEGIN PGP SIGNATURE-
Version: PGP Personal Privacy 6.5.8

iQA/AwUBPAxUTaxS+CWv7FjaEQJETQCfcR/raZls3aJyGmNPszYOoEWI+rUAn35w
aueuia+CLhxzLelExoQDLzqA
=ihq3
-END PGP SIGNATURE-


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




Re: Page Breaks

2001-12-03 Thread Mike Akerman


On Mon, 3 Dec 2001, Jim Urban wrote:

> I have a servlet which dynamically generates XML which is then translated
> into FO and ran through FOP to generate PDFs.  What can I embed (like a
> "\f") in the XML text that will cause FOP to automatically start a new page?
>
> Thanks,
>
> Jim Urban

I've translated "\f" into:






If thats not sufficently clear, I could provide an example plain-text to
xsl-fo conversion program I've written.

Michael Akerman


-

[EMAIL PROTECTED]Information Services
(501) 575-5870  University of Arkansas
http://www.uark.edu/~mike

-




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




RE: Page Breaks

2001-12-03 Thread Vladimir Sneblic

Try using break-before="page" property of fo:block something like:

 The text to appear on the next
page

I think you can leave it empty (i.e. a block with no content), and use it
purely as a page break mechanism. 

Have fun,

Vlad



 -Original Message-
From:   Jim Urban [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, 4 December 2001 11:07 a.m.
To: FOP Dev
Subject:Page Breaks

I have a servlet which dynamically generates XML which is
then translated into FO and ran through FOP to generate PDFs.  What can I
embed (like a "\f") in the XML text that will cause FOP to automatically
start a new page?

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046
 << File: ATT70001.txt >> 

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




Page Breaks

2001-12-03 Thread Jim Urban

I have a servlet which dynamically generates XML which is then translated
into FO and ran through FOP to generate PDFs.  What can I embed (like a
"\f") in the XML text that will cause FOP to automatically start a new page?

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


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


Reference to next page

2001-12-03 Thread Jens Eckert

Hi,

is there a way to realize a reference to the next page (if there is one)
in FO? I need to display "continued on page x".

Jens


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




RE: fo:external-graphic question

2001-12-03 Thread Todd McGrath

Will this work for SSL sites?

I have servlets that produce images (graphs) and I'm try to include them in
the generated PDFs.  I wasn't sure that you could use relative path for
"src" attribute?  Since I wasn't able to get it working, I needed to create
a separate site in order to use absolute path to servlets (example:
http://localhost/Pie, where Pie is the graph producing servlet)  Obviously,
I would like to use relative so users do not see pop-up message about "not
secure"

Is anyone using FOP in SSL enabled sites with external-graphic that are not
static filebased?

Todd


-Original Message-
From: Max Froumentin [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 10:26 AM
To: [EMAIL PROTECTED]
Subject: Re: fo:external-graphic question


You wrote:

> If you want a relative URI, why not just use a relative URI?  I.e.,
>
src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBi
g.gif"?
> Then the current protocol, host, and directory will be used as the base
URI
> and the relative URI interpreted relative to that.

And of course this should ideally be

src="url(config/isappdev...)"

Max.


-
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: fo:external-graphic question

2001-12-03 Thread Max Froumentin

You wrote:

> If you want a relative URI, why not just use a relative URI?  I.e., 
> src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBig.gif"? 
> Then the current protocol, host, and directory will be used as the base URI 
> and the relative URI interpreted relative to that.

And of course this should ideally be

src="url(config/isappdev...)"

Max.


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




Re: Evaluating and

2001-12-03 Thread Max Froumentin


Ignore them? Chris, you pushed for aural properties to go in the spec,
why would you want them out of implementations? :^)

Max.

ChrisM wrote:

> Oops.  See the CSS 2 spec; the audio properties with which these are used 
> are identical to those from CSS 2.  FOP should ignore them.



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




Re: a custom header according to page number

2001-12-03 Thread Jens Eckert


I had this idea as well, but only FO knows which if it is formatting the
first or the other pages.
But Arved's approach works fine. Thanks a lot!
Jens
Cyril Rognon schrieb:
 Jens,
I think you are trying to do too much in the fo stage. It is aknowledged
that you have the power of xsl fo to take care of formatting. The feature
you are talking about is a document structure decision. It is meant to
be done by XSLT code. When you decide to create your fo document, you must
have a way to know wether you are writing the cover page or some of the
content after. Thus, you can have one xsl template that will create a different
page-sequence with the appropriate header in the static-content and some
other template that will use a regular page-sequence for the rest of the
document.
this is definitely a job for XSLT. Not to be done in fo only. You need
two explicit page-sequence and you drive this by XSLT.
I hope my explaination is as clear as in my mind... ;-)
At 16:21 03/12/2001 +0100, you wrote:
I do have a similar (or the same?) 
problem. I have a flow that runs through all the pages. On the first page,
though, I'd like to have a different header (static content). So far I
defined two simple-page masters and a page-sequence-master that uses a
simple-page master for the first page and the other one for the rest.
But where do I specify where which (static content) header to use? In
the page-masters I can only set margins etc.(?)  I tried to use two
page-sequences, one for each page master, but then I get the XML-content
twice: once for the first page sequence once for the second. Can I specify
static content in the page-master?

Cyril Rognon
http://www.objectiva.fr



Re: a custom header according to page number

2001-12-03 Thread Cyril Rognon

Jens,

I think you are trying to do too much in the fo stage. It is aknowledged
that you have the power of xsl fo to take care of formatting. The feature
you are talking about is a document structure decision. It is meant to be
done by XSLT code. When you decide to create your fo document, you must
have a way to know wether you are writing the cover page or some of the
content after. Thus, you can have one xsl template that will create a
different page-sequence with the appropriate header in the static-content
and some other template that will use a regular page-sequence for the
rest of the document.

this is definitely a job for XSLT. Not to be done in fo only. You need
two explicit page-sequence and you drive this by XSLT.

I hope my explaination is as clear as in my mind... ;-)

At 16:21 03/12/2001 +0100, you wrote:
I do have a similar (or the
same?)  problem. I have a flow that runs through all the pages. On
the first page, though, I'd like to have a different header (static
content). So far I defined two simple-page masters and a
page-sequence-master that uses a simple-page master for the first page
and the other one for the rest. 

But where do I specify where which (static content) header to use? In the
page-masters I can only set margins etc.(?)  I tried to use two
page-sequences, one for each page master, but then I get the XML-content
twice: once for the first page sequence once for the second. Can I
specify static content in the page-master? 

Cyril Rognon
http://www.objectiva.fr



Re: a custom header according to page number

2001-12-03 Thread Arved Sandstrom



Hi, Jens
 
In the page masters you can explicitly specify the 
region-master names also, using the 'region-name' property. It so happens that 
many people leave these off in examples, and the default values (such as 
'xsl-region-start') get assigned. So don't trust examples all the time. 
:-)
 
Let's say you have one page-master for the first 
page, and another page-master for the rest of the pages. Give the 
region-before's different region-names. Then, in your page-sequence, define 2 
static-contents for the headers, one of which references one region-name, and 
the other references the other region-name. They will get appropriately 
mapped.
 
Hope this helps.
 
Arved Sandstrom

  - Original Message - 
  From: 
  Jens 
  Eckert 
  To: [EMAIL PROTECTED] 
  Sent: Monday, December 03, 2001 11:21 
  AM
  Subject: Re: a custom header according to 
  page number
  I do have a similar (or the same?)  problem. I have a flow 
  that runs through all the pages. On the first page, though, I'd like to have a 
  different header (static content). So far I defined two simple-page masters 
  and a page-sequence-master that uses a simple-page master for the first page 
  and the other one for the rest. 
  But where do I specify where which (static content) header to use? In the 
  page-masters I can only set margins etc.(?)  I tried to use two 
  page-sequences, one for each page master, but then I get the XML-content 
  twice: once for the first page sequence once for the second. Can I specify 
  static content in the page-master? 
  Thanks 
  Jens   
  Cyril Rognon schrieb: 
   If you only need to ditinguish the first page 
from the other ones, simply use a different page-master (reference or name 
;-) according to the spec conformance) and use this page master for your 
cover page only. This will do the trick easily. 
one page-master for the cover (one page-sequence using this 
page-master-reference) , and different page-master for the rest of the page 
sequences. 
I strongly recomend you to read some FO tutorial, this will spare you a 
lot of research work (you'll find some ref on http://www.w3.org/Style/XSL/) At 
14:18 03/12/2001 +, you wrote: 
Thanks Cyril, please see answers 
  below 
  
Your question is a little underspecified ... 
... 
[Ismaeil, Sameh] 
no, I don't want to distinguish odd and even pages, specifically, I need 
to distinguish the frist page from the rest of the pages, any 
clue? 
Don't think about using some predicate considering the page number, 
xsl fo and fop are loosely coupled, it is meant to be that way. So it 
forbids the user to use the internal page number programaticaly (some FO 
processor provide extension to do this, fop does not). 
[Ismaeil, Sameh] 
yes, I kind of noticed that , it is usually one way: FOP code -> fo 
XSL ->pdf document 
if your need is more complex and you have some magic formula to 
guess wich page is affected, conditionnal master-page may be to low 
level ... 
[Ismaeil, Sameh] 
I'll give conditional-master-page some insight and hope it will work, 
thanks a lot 
Good luck. 
... 
Cyril Rognon http://www.objectiva.fr


Re: a custom header according to page number

2001-12-03 Thread Jens Eckert


I do have a similar (or the same?)  problem. I have a flow that runs
through all the pages. On the first page, though, I'd like to have a different
header (static content). So far I defined two simple-page masters and a
page-sequence-master that uses a simple-page master for the first page
and the other one for the rest.
But where do I specify where which (static content) header to use? In
the page-masters I can only set margins etc.(?)  I tried to use two
page-sequences, one for each page master, but then I get the XML-content
twice: once for the first page sequence once for the second. Can I specify
static content in the page-master?
Thanks
Jens
 
Cyril Rognon schrieb:
 If you only need to ditinguish the first page
from the other ones, simply use a different page-master (reference or name
;-) according to the spec conformance) and use this page master for your
cover page only. This will do the trick easily.
one page-master for the cover (one page-sequence using this page-master-reference)
, and different page-master for the rest of the page sequences.
I strongly recomend you to read some FO tutorial, this will spare you
a lot of research work (you'll find some ref on http://www.w3.org/Style/XSL/)
At 14:18 03/12/2001 +, you wrote:
Thanks
Cyril,
please see answers
below


Your question is a little underspecified ...


...


[Ismaeil, Sameh]
no, I don't want to distinguish odd and even pages, specifically, I need
to distinguish the frist page from the rest of the pages, any clue?


Don't think about using some predicate considering the page number, xsl
fo and fop are loosely coupled, it is meant to be that way. So it forbids
the user to use the internal page number programaticaly (some FO processor
provide extension to do this, fop does not).


[Ismaeil, Sameh]
yes, I kind of noticed that , it is usually one way: FOP code -> fo XSL
->pdf document


if your need is more complex and you have some magic formula to guess wich
page is affected, conditionnal master-page may be to low level ...


[Ismaeil, Sameh]
I'll give conditional-master-page some insight and hope it will work, thanks
a lot


Good luck.


...



Cyril Rognon
http://www.objectiva.fr



RE: a custom header according to page number

2001-12-03 Thread Cyril Rognon

If you only need to ditinguish the first page from the other ones, simply
use a different page-master (reference or name ;-) according to the spec
conformance) and use this page master for your cover page only. This will
do the trick easily.

one page-master for the cover (one page-sequence using this
page-master-reference) , and different page-master for the rest of the
page sequences.

I strongly recomend you to read some FO tutorial, this will spare you a
lot of research work (you'll find some ref on
http://www.w3.org/Style/XSL/)
At 14:18 03/12/2001 +, you wrote:
Thanks
Cyril,
please see answers
below

Your question is a little underspecified ...
...
[Ismaeil, Sameh] no, I don't want to distinguish odd and even pages,
specifically, I need to distinguish the frist page from the rest of the
pages, any clue? 
Don't think about using some predicate considering the page number,
xsl fo and fop are loosely coupled, it is meant to be that way. So it
forbids the user to use the internal page number programaticaly (some FO
processor provide extension to do this, fop does
not).
[Ismaeil, Sameh] yes, I kind of noticed that , it is usually one way:
FOP code -> fo XSL ->pdf document
if your need is more complex and you have some magic formula to guess
wich page is affected, conditionnal master-page may be to low level
...
[Ismaeil, Sameh] I'll give conditional-master-page some insight and
hope it will work, thanks a lot
Good luck.
...


Cyril Rognon
http://www.objectiva.fr



Keep-with-next - what is the plan

2001-12-03 Thread Jay Balunas

Sorry if this has been asked before I just joined this mailing list, I was
on the xsl:fo mailing list before this.

Hello all,

 I've been using FOP for some time now and I was wondering
does anyone know when "keep-with-next"  will be fixed.  FOP (xsl:fo) is so
cool but my VP is always saying why can't this title and this image stay on
the same page?

 Maybe someone knows a work around??

Thanks,
Jay


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




Re: This is a question for FOP users, please help

2001-12-03 Thread Ulrich Mayring

[EMAIL PROTECTED] wrote:
> 
> Hi all you fo dudes:
> 
> Please need some assistance on how to programatically get a fo doc to render
> to pdf. I got it working using the code below, but i want to specify another
> userconfig file...how can i do this without doing it command line...anyone
> got any examples or maybe someone has done it already? Thanx
> 
> //Driver driver = new Driver();
> //driver.setRenderer(Driver.RENDER_PDF);
> //driver.setInputSource(new InputSource(OLIFE_FO));
> //driver.setOutputStream(new FileOutputStream(OLIFE_PDF));
> //driver.run();

options = new Options(java.io.File);

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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




RE: Attaching text to bottom of page

2001-12-03 Thread Etienne Baert \(SPSInfoquest nv\)

Finally, I solved my problem by using a 
like this :



my text to be placed at bottom of a page



Many thanks,
Etienne Baert

-Original Message-
From: Arved Sandstrom [mailto:[EMAIL PROTECTED]]
Sent: lundi 3 décembre 2001 13:44
To: [EMAIL PROTECTED]
Subject: Re: Attaching text to bottom of page


Why would it not be _in_ the footer? This sounds like splitting hairs. An
XSL-FO footer merely consists of stuff that needs to be at the bottom of
pages, possibly based on page number but regardless of content. If your
disclaimer fits those criteria it belongs in the XSL footer (stuff in a
region-after, for example).

Is there something here we aren't aware of? :-)

Regards,
Arved Sandstrom

- Original Message -
From: "Etienne Baert (SPSInfoquest nv)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 6:57 AM
Subject: RE: Attaching text to bottom of page


> Well, not really, as with footnotes they are cross-references
> from and to the body text, which I don't need in my case.
> The disclaimer has simply to be present and to be placed
> at the bottom of the page, just above the footer.
>
> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
> Sent: lundi 3 décembre 2001 11:34
> To: [EMAIL PROTECTED]
> Subject: Re: Attaching text to bottom of page
>
>
>
> Do you mean you want a footnote?
>
> A footnote will be placed at the bottom of the body region and the area
> for the flow will be reduced.
>
> On 2001.12.03 11:26 Etienne Baert SPSInfoquest nv wrote:
> > Is there a way to attach text to the bottom of page
> > without making it part of a footer?
> > I have a variable content page but I always want to
> > have disclaimer text right above the footer without
> > making it part of the footer.
> >
> > Thanks for any help!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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


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




This is a question for FOP users, please help

2001-12-03 Thread Dudley . Butt

Hi all you fo dudes:

Please need some assistance on how to programatically get a fo doc to render
to pdf. I got it working using the code below, but i want to specify another
userconfig file...how can i do this without doing it command line...anyone
got any examples or maybe someone has done it already? Thanx

//Driver driver = new Driver();
//driver.setRenderer(Driver.RENDER_PDF);
//driver.setInputSource(new InputSource(OLIFE_FO));
//driver.setOutputStream(new FileOutputStream(OLIFE_PDF));
//driver.run();



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

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




RE: a custom header according to page number

2001-12-03 Thread Ismaeil, Sameh Z



Thanks 
Cyril,
please 
see answers below

  -Original Message-From: Cyril Rognon 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 03, 2001 3:46 
  PMTo: [EMAIL PROTECTED]Subject: Re: a custom header 
  according to page numberYour question is a little 
  underspecified ...if you want to distinguish odd and even pages, the 
  page master conditionnal part is for you (see the page master fo definition : 
  chapter 6.4.11 
  http://www.w3.org/TR/xsl/slice6.html#fo_conditional-page-master-reference). I 
  think you may handle more than just odd-even with this. Use this with 
  different header section...[Ismaeil, Sameh] no, I don't want to 
  distinguish odd and even pages, specifically, I need to distinguish the 
  frist page from the rest of the pages, any clue? Don't 
  think about using some predicate considering the page number, xsl fo and fop 
  are loosely coupled, it is meant to be that way. So it forbids the user to use 
  the internal page number programaticaly (some FO processor provide extension 
  to do this, fop does not).[Ismaeil, Sameh] yes, I kind of noticed 
  that , it is usually one way: FOP code -> fo XSL ->pdf 
  documentif your need is more complex and you have some magic 
  formula to guess wich page is affected, conditionnal master-page may be to low 
  level ...[Ismaeil, Sameh] I'll give conditional-master-page some insight 
  and hope it will work, thanks a lotGood 
  luck.At 13:13 03/12/2001 +, you wrote:
  Hello everybodyI am a FOP 
beginner, can somebody help me please with this problemI need to put 
a cutsomized header in my pages, the header should contain adifferent 
block (of text) according to the page currently being generated,so the 
condition will be based on the page number1. is there an fo property 
I can use (say for the static-content or theblock elemtents) that makes 
certain blocks appear/disappear from headersaccording to page 
number2. how can I use FOP to generate this 
  content
  Cyril Rognonhttp://www.objectiva.fr 



Re: a custom header according to page number

2001-12-03 Thread Cyril Rognon

Your question is a little underspecified ...

if you want to distinguish odd and even pages, the page master
conditionnal part is for you (see the page master fo definition : chapter
6.4.11
http://www.w3.org/TR/xsl/slice6.html#fo_conditional-page-master-reference).
I think you may handle more than just odd-even with this. Use this with
different header section...

Don't think about using some predicate considering the page number, xsl
fo and fop are loosely coupled, it is meant to be that way. So it forbids
the user to use the internal page number programaticaly (some FO
processor provide extension to do this, fop does not).

if your need is more complex and you have some magic formula to guess
wich page is affected, conditionnal master-page may be to low level
...

Good luck.

At 13:13 03/12/2001 +, you wrote:
Hello everybody
I am a FOP beginner, can somebody help me please with this problem

I need to put a cutsomized header in my pages, the header should contain
a
different block (of text) according to the page currently being
generated,
so the condition will be based on the page number

1. is there an fo property I can use (say for the static-content or
the
block elemtents) that makes certain blocks appear/disappear from
headers
according to page number
2. how can I use FOP to generate this content


Cyril Rognon
http://www.objectiva.fr



a custom header according to page number

2001-12-03 Thread Ismaeil, Sameh Z

Hello everybody
I am a FOP beginner, can somebody help me please with this problem

I need to put a cutsomized header in my pages, the header should contain a
different block (of text) according to the page currently being generated,
so the condition will be based on the page number

1. is there an fo property I can use (say for the static-content or the
block elemtents) that makes certain blocks appear/disappear from headers
according to page number
2. how can I use FOP to generate this content

Thanks a million

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




Re: Attaching text to bottom of page

2001-12-03 Thread Arved Sandstrom

Why would it not be _in_ the footer? This sounds like splitting hairs. An
XSL-FO footer merely consists of stuff that needs to be at the bottom of
pages, possibly based on page number but regardless of content. If your
disclaimer fits those criteria it belongs in the XSL footer (stuff in a
region-after, for example).

Is there something here we aren't aware of? :-)

Regards,
Arved Sandstrom

- Original Message -
From: "Etienne Baert (SPSInfoquest nv)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 6:57 AM
Subject: RE: Attaching text to bottom of page


> Well, not really, as with footnotes they are cross-references
> from and to the body text, which I don't need in my case.
> The disclaimer has simply to be present and to be placed
> at the bottom of the page, just above the footer.
>
> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
> Sent: lundi 3 décembre 2001 11:34
> To: [EMAIL PROTECTED]
> Subject: Re: Attaching text to bottom of page
>
>
>
> Do you mean you want a footnote?
>
> A footnote will be placed at the bottom of the body region and the area
> for the flow will be reduced.
>
> On 2001.12.03 11:26 Etienne Baert SPSInfoquest nv wrote:
> > Is there a way to attach text to the bottom of page
> > without making it part of a footer?
> > I have a variable content page but I always want to
> > have disclaimer text right above the footer without
> > making it part of the footer.
> >
> > Thanks for any help!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Re: FOP conformance

2001-12-03 Thread Arved Sandstrom

Cool. If there is nothing else code-wise, I'll stand by waiting to build the
release itself.

Arved

- Original Message -
From: "Christian Geisert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 6:13 AM
Subject: Re: FOP conformance


> Tore Engvig wrote:
> >
>
> [..]
>
> > The simple-page-master stuff that originated the whole maintenance
release
> > and Karen's table suggestions are still left to be done (Christian?)
>
> Yes, I hope to send the patches tomorrow (tuesday)
>
> > Tore
>
> -
> 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: Simple extension problem

2001-12-03 Thread Keiron Liddle


The class ExtensionObj is used in a particular way. Overriding it like you 
have done will not do what you want.

You should extends the FObj class and in the layout method you should 
insert the text that you want into the line area. The same as what is done 
in the FOText class by adding your text to the BlockArea.

On 2001.11.30 16:39 [EMAIL PROTECTED] wrote:
> Greetings all,
> 
> I'm learning to write extensions and I'm trying to start simple.
> I think I've followed the directions on the "Extensions" page
> (http://xml.apache.org/fop/extensions.html), but something
> is still missing or incorrect.
> 
> I'm using JDK build 1.4.0-beta3-b84 with Fop0.20.2 on
> Windows 2000, Service Pack 3.
> 
> I have a Java class to simply output the Date in the default
> locale.  Eventually I'll need to get content from log files and
> database tables,  etc., but I just want to see output from my
> extension class show up in the rendered result right now.
> 
> I have an ElementMapping subclass that parallels
> the functionality used to support the fox:label tag.
> 
> I have a single line of text in the text file
> META-INF/services/org.apache.fop.fo.ElementMapping
> with the fully qualified class name for that ElementMapping
> subclass:
> 
> gov.census.geo.pob.fop.extensions.TimeDisplayMapping
> 
> I stored the jar in my Fop-0.20.2\lib\ directory.
> 
> My stylesheet element includes the attributes
>  xmlns:pob="http://jgilvary.geo.census.gov/";
>  extension-element-prefixes="pob"
> 
> When I try to use  in the fo file, there is no output
> in pdf or awt. There are no more error messages about
> Transformer errors or ClassNotFoundExceptions, so I
> think I'm getting closer. Everything else I do in that file
> works (png images, pdf bookmarks and internal links),
> so I believe the set up is correct.
> 
> I'm doing something wrong or not doing something right 
> 
> Any help greatly appreciated.
> 
>  Thanks,
> 
>  Joe
> 
> 
>  Functionality class source code:
> package gov.census.geo.pob.fop.extensions;
> 
> import org.apache.fop.fo.*;
> import org.apache.fop.extensions.*;
> import java.util.Date;
> import java.text.SimpleDateFormat;
> 
> public class TimeDisplay extends ExtensionObj {
> private String today = (new SimpleDateFormat()).format(new Date());
> 
> public static class Maker extends FObj.Maker {
> public FObj make(FObj parent, PropertyList propertyList) {
> return new TimeDisplay(parent, propertyList);
> }
> }
> 
> public static FObj.Maker maker() {
> return new TimeDisplay.Maker();
> }
> 
> public TimeDisplay(FObj parent, PropertyList propertyList) {
> super(parent, propertyList);
> }
> 
> public String toString(){
>  return (today);
> }
> }
> 
> 
> ElementMapping subclass source code:
> 
> package gov.census.geo.pob.fop.extensions;
> 
> import org.apache.fop.fo.*;
> import org.apache.fop.fo.properties.ExtensionPropertyMapping;
> import org.apache.fop.fo.TreeBuilder;
> 
> import java.util.Enumeration;
> import java.util.HashMap;
> import java.util.Iterator;
> 
> public class TimeDisplayMapping implements ElementMapping {
> 
> public final static String URI = "http://jgilvary.geo.census.gov/";;
> 
> private static HashMap foObjs = null;
> 
> public synchronized void addToBuilder(TreeBuilder builder) {
> if(foObjs == null) {
> foObjs = new HashMap();
> foObjs.put("time", TimeDisplay.maker());
>  }
> builder.addMapping(URI, foObjs);
> 
> builder.addPropertyList(URI,
> 
> ExtensionPropertyMapping.getGenericMappings
> ());
> /* Add any element mappings */
> for (Iterator iter = ExtensionPropertyMapping.getElementMappings
> ().iterator();
> iter.hasNext(); ) {
> String elem = (String)iter.next();
> builder.addElementPropertyList(URI, elem,
> 
> ExtensionPropertyMapping.getElementMapping(elem));
> }
> }
> }
> 
> 
> 
> -
> 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: Maintanance release (was: FOP conformance)

2001-12-03 Thread Bertrand Delacretaz

On Monday 03 December 2001 12:19, Christian Geisert wrote:
> What about jfor ?
> I think it would be a good idea to add it with "user-level" integration as
> proposed by Betrand.

Depends on schedule - I'm very busy for the next two weeks, it would be hard 
for me to find time to do the code moving and integration,

- Bertrand

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




Re: Maintanance release (was: FOP conformance)

2001-12-03 Thread Christian Geisert

Keiron Liddle wrote:
> 
[..]

> The things that I can think of that need doing are:
> - change appropriate "master-name" to "master-reference" in code and
> example documents
> - update version number and such info
> 
> Then do some testing and check that everything is in order.

What about jfor ?
I think it would be a good idea to add it with "user-level" integration as
proposed by Betrand.


Christian Geisert

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




Setting the page-number

2001-12-03 Thread sascha . schmidt

Hi folks,

i've got the following problem:

Is there a way to set the current page-number within a page-sequence? I'm looking for something like that "

Details:

A RTF-document with placeholders (introduced by a escape-character, e.g. "~") is converted to FO using rtf2fo (http://www.novosoft-us.com/ns2b.nsf/w1/RTF2FO). After that i search in the FO-File for placeholders and replace them.

Example:
        RTF: Dear Mr. ~mister
        FO: .Dear Mr. ~mister.

So i have a special placeholder "~page", which is replaced by ""  (occours in footer). The RTF-document consist of 2 or more chapters and every chapter should start with page-number 1. At the begin of a chapter there is a placeholder "~reset-page-count"... and therefore i need a fo-tag.


RE: Attaching text to bottom of page

2001-12-03 Thread Etienne Baert \(SPSInfoquest nv\)

Well, not really, as with footnotes they are cross-references
from and to the body text, which I don't need in my case.
The disclaimer has simply to be present and to be placed
at the bottom of the page, just above the footer.

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent: lundi 3 décembre 2001 11:34
To: [EMAIL PROTECTED]
Subject: Re: Attaching text to bottom of page



Do you mean you want a footnote?

A footnote will be placed at the bottom of the body region and the area
for the flow will be reduced.

On 2001.12.03 11:26 Etienne Baert SPSInfoquest nv wrote:
> Is there a way to attach text to the bottom of page
> without making it part of a footer?
> I have a variable content page but I always want to
> have disclaimer text right above the footer without
> making it part of the footer.
>
> Thanks for any help!

-
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: Jaggies

2001-12-03 Thread James Richardson


Ah yes. Thanks. I will try and find an alternative method.

I was tring to use the pattern fill as a mostly transparent 'watermark' 
over the image.

Cheers!

James


Keiron Liddle wrote:

> 
> 
> 
> Please read this page:
> http://xml.apache.org/fop/svg.html
> 
> it should tell you what you need to know.
> 
> On 2001.11.30 17:47 James Richardson wrote:
> 
>>When rendering my previous post, Batik seems to be able to render fine
>>in the GUI, but when included in FOP ( either as external graphic, or
>>instream foreign object ), the rendered text has the most ugly jaggies.
>>
>>I think I read in the archive that FOP rasterises the SVG before
>>inserting into the PDF. Is this right? Why? Can this be turned off?
>>
>>Cheers!
>>
>>James
>>
> 
> -
> 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: Attaching text to bottom of page

2001-12-03 Thread Keiron Liddle


Do you mean you want a footnote?

A footnote will be placed at the bottom of the body region and the area 
for the flow will be reduced.

On 2001.12.03 11:26 Etienne Baert SPSInfoquest nv wrote:
> Is there a way to attach text to the bottom of page
> without making it part of a footer?
> I have a variable content page but I always want to
> have disclaimer text right above the footer without
> making it part of the footer.
> 
> Thanks for any help!

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




Re: Jaggies

2001-12-03 Thread Keiron Liddle


Please read this page:
http://xml.apache.org/fop/svg.html

it should tell you what you need to know.

On 2001.11.30 17:47 James Richardson wrote:
> 
> When rendering my previous post, Batik seems to be able to render fine 
> in the GUI, but when included in FOP ( either as external graphic, or 
> instream foreign object ), the rendered text has the most ugly jaggies.
> 
> I think I read in the archive that FOP rasterises the SVG before 
> inserting into the PDF. Is this right? Why? Can this be turned off?
> 
> Cheers!
> 
> James

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




Attaching text to bottom of page

2001-12-03 Thread Etienne Baert \(SPSInfoquest nv\)

Is there a way to attach text to the bottom of page 
without making it part of a footer?  
I have a variable content page but I always want to 
have disclaimer text right above the footer without 
making it part of the footer.

Thanks for any help!

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




Re: CVS snapshot does not render

2001-12-03 Thread Philippe Van Der Gucht

Keiron Liddle wrote:

> It's not a module its the tag on the fop-dev module.
> cvs co -t "fop-0_20_2-maintain" fop-dev

There does not seem to be a fop-dev module available on
cvs.apache.org:/home/cvspublic?

I took the tagged files from the xml-fop module but the bug crept up again.
Apparently a table-footer is being placed on the other page and afterwards an
infinite loop sets in.

This is what I get:

---8<---
  [fop] building formatting object tree
  [fop] [1]
  [fop] table-layout=auto is not supported, using fixed!
  [fop] Sum of fixed column widths 538580 greater than maximum specified
IPD
 523275
  [fop] footer could not fit on page, moving last body row to next page
  [fop] [2]
  [fop] footer could not fit on page, moving last body row to next page
  [fop] [3]
  [fop] footer could not fit on page, moving last body row to next page
  [fop] [4]
  [fop] footer could not fit on page, moving last body row to next page
  [fop] [5]
  [fop] footer could not fit on page, moving last body row to next page
etc etc etc
---8<---


Philippe.

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




Re: FOP conformance

2001-12-03 Thread Christian Geisert

Tore Engvig wrote:
> 

[..]

> The simple-page-master stuff that originated the whole maintenance release
> and Karen's table suggestions are still left to be done (Christian?)

Yes, I hope to send the patches tomorrow (tuesday)

> Tore

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




cvs commit: xml-fop/docs/xml-docs/fop architecture.xml embedding.xml readme.xml resources.xml svg.xml todo.xml

2001-12-03 Thread keiron

keiron  01/12/03 01:53:04

  Modified:docs/xml-docs readme
   docs/xml-docs/fop architecture.xml embedding.xml readme.xml
resources.xml svg.xml todo.xml
  Log:
  updated info to include some answers to common questions
  
  Revision  ChangesPath
  1.2   +4 -5  xml-fop/docs/xml-docs/readme
  
  Index: readme
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/readme,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- readme2000/06/23 13:16:42 1.1
  +++ readme2001/12/03 09:53:04 1.2
  @@ -2,9 +2,8 @@
   
   The files in these directory contain the Fop documentation as xml files. 
   The directory xml-docs/fop is a mirror of the files in the cvs repository 
  -modul 'xml-site' /sources/fop. These files are used to create the html 
documentation 
  -on xml.apache.org.
  +modul 'xml-site' /sources/fop. These files are used to create the html
  +documentation on xml.apache.org.
   
  -With makedoc.bat (win32) or makedoc.sh (unix) you can create a pdf file containing 
  -the complete Fop documentation. These scripts use ant. If you have any trouble 
running them,
  -please look into build.xml in the root directory of this distribution.
  \ No newline at end of file
  +Use the html target in the main build script in the xml-fop root directory.
  +You can create a pdf file containing the complete Fop documentation.
  
  
  
  1.12  +12 -50xml-fop/docs/xml-docs/fop/architecture.xml
  
  Index: architecture.xml
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/fop/architecture.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- architecture.xml  2001/08/10 13:57:32 1.11
  +++ architecture.xml  2001/12/03 09:53:04 1.12
  @@ -1,7 +1,16 @@
   
   
   
  +
  +
  +Architecture
  +Architecture information for FOP
  +
  +
  +
   
  +
  +
   
   
   
  @@ -37,56 +46,6 @@
     FObjMixed  SequenceSpecifier
   
   
  -FO's extending FObj:
  -
  -Package org.apache.fop.fo.pagination:
  -
  -
  -   LayoutMasterSet
  -   PageSequence
  -   RegionAfter
  -   RegionBefore
  -   RegionBody
  -   Root
  -   SequenceSpecification
  -   SimplePageMaster
  -
  -
  -   Package org.apache.fop.fo.flow:
  -
  -
  -BlockContainer
  -DisplayGraphic
  -DisplayRule
  -DisplaySequence
  -Flow
  -InlineGraphic
  -ListBlock
  -ListItem
  -ListItemBody
  -ListItemLabel
  -PageNumber
  -StaticContent
  -Table
  -TableBody
  -TableCell
  -TableColumn
  -TableRow
  -
  -FO's extending SequenceSpecifier:
  -
  -   Package org.apache.fop.fo.pagination:
  -
  -
  -SequenceSpecifierAlternating
  -SequenceSpecifierRepeating
  -SequenceSpecifierSingle
  -
  -FO's extending FObjMixed:
  -
  -   Package org.apache.fop.fo.flow:
  -
  -
   Block
   Inline
   BasicLink
  @@ -343,3 +302,6 @@
   
   
   
  +
  +
  +
  
  
  
  1.12  +10 -0 xml-fop/docs/xml-docs/fop/embedding.xml
  
  Index: embedding.xml
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/fop/embedding.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- embedding.xml 2001/09/20 10:12:38 1.11
  +++ embedding.xml 2001/12/03 09:53:04 1.12
  @@ -81,6 +81,16 @@
 driver.setOutputStream(new FileOutputStream(outFile));
 driver.render(parser, inputHandler.getInputSource());]]>
 Have a look at the classes CommandLineStarter or FopServlet for complete 
examples.
  +
  +If your FO files contain SVG then batik will be used. When batik is
  +initialised it uses certain classes in java.awt that
  +intialises the java AWT classes. This means that a daemon thread
  +is created by the jvm and on unix it will need to connect to a
  +DISPLAY.
  +The thread means that the java application will not automatically quit
  +when finished, you will need to call System.exit. These
  +issues should be fixed in the upcoming JDK1.4
  +
 
 

  
  
  
  1.14  +5 -5  xml-fop/docs/xml-docs/fop/readme.xml
  
  Index: readme.xml
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/fop/readme.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- readme.xml2001/11/01 11:33:52 1.13
  +++ readme.xml2001/12/03 09:53:04 1.14
  @@ -13,18 +13,18 @@
   
   
   
  -
  +
   
   FOP is the world's first print formatter driven by XSL formatting
  -   objects and the world's first output indepent formatter. It is a
  +   objects and the world's first output independent formatter. It is a
  Java application that reads a formatting object tree and then
  renders the r

DO NOT REPLY [Bug 5235] New: - Font matching

2001-12-03 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5235

Font matching

   Summary: Font matching
   Product: Fop
   Version: 0.15
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


It seems that there is a problem with fonts implementation. 
In fact, when I try to obtain Helvetica, Arial is displayed.

Moreover, in http://xml.apache.org/fop/fonts.html page, you specify that 
Acrobat-Reader includes the following fonts: Helvetica, Times, Courier, Symbol 
and ZapfDingbats. This seems to be inexact. In fact, if you have a look at 
http://www.adobe.com/support/techdocs/1a7ce.htm you can see that Helvetica is 
replaced by Arial MT.

Do you know how I can find correct Helvetica ? ... Any clue ?  ...
Thks.

Jose

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




cvs commit: xml-fop/lib readme

2001-12-03 Thread keiron

keiron  01/12/03 01:12:33

  Modified:lib  readme
  Log:
  added note about where batik jar comes from
  
  Revision  ChangesPath
  1.6   +1 -0  xml-fop/lib/readme
  
  Index: readme
  ===
  RCS file: /home/cvs/xml-fop/lib/readme,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- readme2001/10/30 07:43:02 1.5
  +++ readme2001/12/03 09:12:33 1.6
  @@ -8,6 +8,7 @@
   
   batik.jar
   cvs 29/10/2001
  +created from all-jar build target
   the svg library from Batik at xml.apache.org
   
   
  
  
  

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




DO NOT REPLY [Bug 5234] New: - Cols of table

2001-12-03 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5234

Cols of table

   Summary: Cols of table
   Product: Fop
   Version: all
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The alignment of tablcols is not correct, when you render a large fo-document 
without any border. When I switch on the border for the table, the alignment 
will be correctly.
ex.:
...














...

Thank you for working on this bug

cberger

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




Re: FOP conformance

2001-12-03 Thread Keiron Liddle

> I think too we should do a maintenance release (from
> 'fop-0_20_2-maintain'
> branch).
> 
> I volunteer to do the necessary patches, do some testing etc.


Very Good!!

Then I suggest you set a timetable to do the release.

Tore has already committed a bunch of things. Batik has been updated to 
the latest cvs, this should be api compatible with the upcoming 1.1 
release. Another fix is that it won't keep opening a stream for images if 
the image is found.

The things that I can think of that need doing are:
- change appropriate "master-name" to "master-reference" in code and 
example documents
- update version number and such info

Then do some testing and check that everything is in order.


Big Thanks to those people for doing this.


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




cvs commit: xml-fop/src/org/apache/fop/image FopImageFactory.java

2001-12-03 Thread keiron

keiron  01/12/02 23:57:41

  Modified:src/org/apache/fop/image Tag: fop-0_20_2-maintain
FopImageFactory.java
  Log:
  doesn't open stream if image already loaded and in hash map
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.25.2.2  +8 -7  xml-fop/src/org/apache/fop/image/FopImageFactory.java
  
  Index: FopImageFactory.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/FopImageFactory.java,v
  retrieving revision 1.25.2.1
  retrieving revision 1.25.2.2
  diff -u -r1.25.2.1 -r1.25.2.2
  --- FopImageFactory.java  2001/12/02 22:17:29 1.25.2.1
  +++ FopImageFactory.java  2001/12/03 07:57:40 1.25.2.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FopImageFactory.java,v 1.25.2.1 2001/12/02 22:17:29 tore Exp $
  + * $Id: FopImageFactory.java,v 1.25.2.2 2001/12/03 07:57:40 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -58,6 +58,12 @@
   href = href.substring(1, href.length() - 1);
   }
   }
  +
  +// check if already created
  +FopImage imageObject = (FopImage)m_urlMap.get(href);
  +if (imageObject != null)
  +return imageObject;
  +
   try {
   // try url as complete first, this can cause
   // a problem with relative uri's if there is an
  @@ -94,11 +100,6 @@
   }
   }
   
  -// check if already created
  -FopImage imageObject = (FopImage)m_urlMap.get(absoluteURL.toString());
  -if (imageObject != null)
  -return imageObject;
  -
   // If not, check image type
   ImageReader imgReader = null;
   try {
  @@ -192,7 +193,7 @@
   + "class " + imageClass.getName()
   + " doesn't implement 
org.apache.fop.image.FopImage interface");
   }
  -m_urlMap.put(absoluteURL.toString(), imageInstance);
  +m_urlMap.put(href, imageInstance);
   return (FopImage)imageInstance;
   }
   
  
  
  

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