RE: rendering GIF & PNG images

2005-06-24 Thread Andreas L. Delmelle
> -Original Message-
> From: Will Peterson [mailto:[EMAIL PROTECTED]

Hi Will,

> Is there some reason GIF & PNG images don't render with FOP 0.20.5 ?
>
> JPG images seem to work just fine for me, but I can't get others to
render.  Is there some trick to using these formats?


AFAIK, support for JPG is FOP-native, for the other two image formats you
need JAI or JIMI.

Greetz,

Andreas


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



Re: rendering GIF & PNG images

2005-06-24 Thread The Web Maestro
On Jun 24, 2005, at 2:29 PM, Will Peterson wrote:
Is there some reason GIF & PNG images don't render with FOP 0.20.5 ?
 
JPG images seem to work just fine for me, but I can't get others to render.  Is there some trick to using these formats?
 
Thanks,
 
- Will

GIF and PNG both work. The FOP Graphics support information is located here[1]. GIF is supported natively (although transparent GIFs have problems, and prints BLACK instead of transparent--there should be a NOTE there, but there isn't yet...). PNG requires JAI or JIMI.

For all the sordid details, check out the FOP Graphics Formats page[1].

[1]
http://xml.apache.org/fop/graphics.html

Regards,

Web Maestro Clay
-- 
<[EMAIL PROTECTED]> - 
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


rendering GIF & PNG images

2005-06-24 Thread Will Peterson


Is there some reason GIF & PNG images don't render with FOP 0.20.5 ?
 
JPG images seem to work just fine for me, but I can't get others to render.  Is there some trick to using these formats?
 
Thanks,
 
- Will


Re: Logging with 1.0dev

2005-06-24 Thread Simon Pepping
On Fri, Jun 24, 2005 at 08:13:47AM -0600, Will Peterson wrote:
> Simon,
> 
> Not sure if I'm looking in the right place ... but checked under the CVS and 
> SVN versions of the FOP project, but can't find any folder named 
> "private-resources".

Funny, I have always believed it was part of the FOP
repository. Apparently it is not. Here they are:

commons-logging.properties:
# common-logging.properties
# configuration file for org.apache.commons.logging.Log

# log implementation to use
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog


simplelog.properties:
# simplelog.properties
# configuration file for org.apache.commons.logging.impl.SimpleLog

# logging level for all loggers, default info
# org.apache.commons.logging.simplelog.defaultlog=info

# logging level for named loggers
# org.apache.commons.logging.simplelog.log.x=info
# org.apache.commons.logging.simplelog.log.org.apache.fop.pdf=trace

# show logger name, default false
# org.apache.commons.logging.simplelog.showlogname=false

# show short logger name, default true
# org.apache.commons.logging.simplelog.showShortLogname=false

# show date and time, default false
# org.apache.commons.logging.simplelog.showdatetime=false

Regards, Simon

> 
> Thanks for  your help,
> 
> - Will
> 
> 
> 
> >>> On 6/23/2005 at 2:44 pm, [EMAIL PROTECTED] wrote:
> > Will,
> > 
> > I am answering you on fop-user.
> > 
> > See xml-fop/src/private-resources for an example of how to configure
> > logging with SimpleLog (org.apache.commons.logging.impl.SimpleLog). If
> > you want to selectively change the log level for some loggers, you
> > will have to dig in the code for the logger names. Often they are the
> > package or class name.
> > 
> > Regards, Simon
> > 
> > On Thu, Jun 23, 2005 at 08:16:34PM +0200, Jeremias Maerki wrote:
> >> Will,
> >> 
> >> we haven't had any chance, yet, to write more than design documentation
> >> on 1.0dev. 1.0dev uses Jakarta Commons Logging [1] as logging framework.
> >> This means that on a standard JDK 1.4 (or higher) system JCL uses JDK
> >> logging as its backend by default. For this case you'd have to look up
> >> the documentation for JDK logging [2]. It's pretty easy to supply your
> >> own logger of choice. The JCL documentation will tell you how to do that.
> >> 
> >> In contrast to Avalon loggon JCL logging uses more or less the same
> >> approach as Log4J which normally fetches the logger per class into a
> >> static variable. That's why you can't set a logger directly on the
> >> Driver (or rather Fop now) instance.
> >> 
> >> I believe that until the final 1.0 release it is possible that in the
> >> area of logging of few things may still change. Probably not the use of
> >> JCL but maybe a specialized facility to observe the formatting process
> >> programmatically. There's nothing written in stone about that, yet. And
> >> until then, consider 1.0dev a moving target. Suggestions and help are
> >> welcome.
> >> 
> >> HTH
> >> 
> >> [1] http://jakarta.apache.org/commons/logging/ (version 1.0.3)
> >> [2] http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/index.html 
> >> 
> >> On 23.06.2005 18:18:19 Will Peterson wrote:
> >> > Is there any sample documentation on how to do logging with Fop 1.0dev.
> >> > 
> >> > The previous Fop had examples right in the distribution, but I can't
> >> > find anything there, or on the web for sample code of how to do logging.
> >> > (All the code example I see are based on having a  handle on the driver
> >> > (for example):
> >> > 
> >> > //Setup logger
> >> > Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
> >> > driver.setLogger(logger);
> >> > MessageHandler.setScreenLogger(logger);
> >> > 
> >> > Thanks for any help,
> >> > 
> >> > - Will
> >> 
> >> 
> >> 
> >> Jeremias Maerki
> >> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Simon Pepping
home page: http://www.leverkruid.nl


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



Re: base align

2005-06-24 Thread J.Pietschmann

H. krishna wrote:

How to base align the text.

If, widow line or orphan line is coming on bottom of
the page or top of the page, the text is need to
automatically move to next page, the remaining space
need to adjust automatically (like LaTeX). This
possible.


The XSLFO spec doesn't mandate any specific behaviour nor provides
any way to explicit control block space justification wrt. to
filling or bottom alignment (in multi column layout). You are
basically at the mercy of the processor implementation.

J.Pietschmann

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



base align

2005-06-24 Thread H. krishna
Dear All,

How to base align the text.

If, widow line or orphan line is coming on bottom of
the page or top of the page, the text is need to
automatically move to next page, the remaining space
need to adjust automatically (like LaTeX). This
possible.

I would appreciate anybody help..

Regards,
bala

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: dynamic surrounding box

2005-06-24 Thread Louis . Masters

How about putting text1 and test 2 into blind tables within the cells?  Put
a border around the inner table and that should do the trick.
-Lou



|-+--->
| |   "Rymasz Jacky"  |
| |   <[EMAIL PROTECTED]|
| |   decaux.fr>  |
| |   |
| |   06/24/2005 10:13|
| |   Please respond  |
| |   to fop-users|
| |   |
|-+--->
  
>---|
  | 
  |
  |To:
  |
  |cc:  
  |
  |Subject: dynamic surrounding box 
  |
  
>---|



Hello.

I would like to have a box around a dynamic text.
How can I obtain this effect?

I tried with blocks and tables but either I have to put a static width,
either the block fill totally the table-cell is is into.

What I want is:

_ table cells
||
|___|
|| Text 1 ||
|[__||
||
||
|   |
|| biger Text 2  |   |
|[___|   |
||

Where "Text1" and "biger Text 2" are of unknown length and are into
table-cells.

Thx alot

Jack






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



Re: fox:outline

2005-06-24 Thread The Web Maestro
On Jun 24, 2005, at 4:57 AM, Daniel Brown wrote:
I have 2 queries regarding PDF bookmarks/outlines. 

1) Is it possible to set the size of the bookmarks window when it opens? 

That may be possible, but not directly with FOP. If it's possible you'll have to use a post-processor like iText to add that functionality.

2) Is it possible to hide the bookmarks on open of the PDF? 

Again, iText may be necessary for this. I know it's a setting in Acrobat, but it may be possible in the PDF file as well.

Thanx, 
D 

[1]  FOP's Resources Page
http://xml.apache.org/fop/resources.html#products-pdf

Regards,

Web Maestro Clay
-- 
<[EMAIL PROTECTED]> - 
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


Re: Logging with 1.0dev

2005-06-24 Thread Will Peterson
Simon,

Not sure if I'm looking in the right place ... but checked under the CVS and 
SVN versions of the FOP project, but can't find any folder named 
"private-resources".

Thanks for  your help,

- Will



>>> On 6/23/2005 at 2:44 pm, [EMAIL PROTECTED] wrote:
> Will,
> 
> I am answering you on fop-user.
> 
> See xml-fop/src/private-resources for an example of how to configure
> logging with SimpleLog (org.apache.commons.logging.impl.SimpleLog). If
> you want to selectively change the log level for some loggers, you
> will have to dig in the code for the logger names. Often they are the
> package or class name.
> 
> Regards, Simon
> 
> On Thu, Jun 23, 2005 at 08:16:34PM +0200, Jeremias Maerki wrote:
>> Will,
>> 
>> we haven't had any chance, yet, to write more than design documentation
>> on 1.0dev. 1.0dev uses Jakarta Commons Logging [1] as logging framework.
>> This means that on a standard JDK 1.4 (or higher) system JCL uses JDK
>> logging as its backend by default. For this case you'd have to look up
>> the documentation for JDK logging [2]. It's pretty easy to supply your
>> own logger of choice. The JCL documentation will tell you how to do that.
>> 
>> In contrast to Avalon loggon JCL logging uses more or less the same
>> approach as Log4J which normally fetches the logger per class into a
>> static variable. That's why you can't set a logger directly on the
>> Driver (or rather Fop now) instance.
>> 
>> I believe that until the final 1.0 release it is possible that in the
>> area of logging of few things may still change. Probably not the use of
>> JCL but maybe a specialized facility to observe the formatting process
>> programmatically. There's nothing written in stone about that, yet. And
>> until then, consider 1.0dev a moving target. Suggestions and help are
>> welcome.
>> 
>> HTH
>> 
>> [1] http://jakarta.apache.org/commons/logging/ (version 1.0.3)
>> [2] http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/index.html 
>> 
>> On 23.06.2005 18:18:19 Will Peterson wrote:
>> > Is there any sample documentation on how to do logging with Fop 1.0dev.
>> > 
>> > The previous Fop had examples right in the distribution, but I can't
>> > find anything there, or on the web for sample code of how to do logging.
>> > (All the code example I see are based on having a  handle on the driver
>> > (for example):
>> > 
>> > //Setup logger
>> > Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
>> > driver.setLogger(logger);
>> > MessageHandler.setScreenLogger(logger);
>> > 
>> > Thanks for any help,
>> > 
>> > - Will
>> 
>> 
>> 
>> Jeremias Maerki
>> 





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



dynamic surrounding box

2005-06-24 Thread Rymasz Jacky



Hello.
 
I would like to have 
a box around a dynamic text.
How can I obtain 
this effect?
 
I tried 
with blocks and tables but either I have to put a static width, either the 
block fill totally the table-cell is is into.
 
What I want 
is:
 

_ 
table cells
|    
|
|    
___    
|
|    
| Text 1 |    
|
|    
[__|    
|
||


|    
|
|    
   |
|    
| biger Text 2  |   |
|    
[___|   |
||
 
Where 
"Text1" and "biger Text 2" are of unknown length and are into 
table-cells.
 
Thx 
alot
 
Jack
 


fox:outline

2005-06-24 Thread Daniel Brown

I have 2 queries regarding PDF bookmarks/outlines.


1) Is it possible to set the size of
the bookmarks window when it opens?
2) Is it possible to hide the bookmarks
on open of the PDF?

Thanx,
D


Re: XSL Transformation - many XSL Imports - Performance???

2005-06-24 Thread Jeremias Maerki
Not if you make sure to reuse the stylesheet. If you use JAXP you need
to make sure that you don't load the stylesheet every time when you do a
conversion like this:

Transformer transformer = tFactory.newTransformer(new 
StreamSource(mystylesheet));

You need to get the Templates object (which represents the stylesheet) and
reuse that:

//do this once
Templates templates = tFactory.newTemplates(new StreamSource(mystylesheet));

//do this for each conversion
Transformer transformer = tfactory.newTransformer(templates);

I hope this helps.

On 24.06.2005 11:01:59 Zmitko, Jan wrote:
> Hi,
>  
> I´ve a question mentioned the performance of the XSL Transformation. I need
> a XSL Stylesheet which is dynamic against a specific context. So I use a lot
> of import statements for Stylesheets, but not all Stylesheets are allways
> used.
>  
> What happens, if the XSLT Processor worked up the importstatements? Can
> these steps have a adverse effect for performance?
>  
> Can someone help me with these question?
>  
> Thanks a lot,
>  
> Jan
>  
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> 
> 
> 
> 
> 
> 
> ...
> 
> ...
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
>  
> 



Jeremias Maerki


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



XSL Transformation - many XSL Imports - Performance???

2005-06-24 Thread Zmitko, Jan



Hi,
 
I´ve a question 
mentioned the performance of the XSL Transformation. I need a XSL Stylesheet 
which is dynamic against a specific context. So I use a lot of import statements 
for Stylesheets, but not all Stylesheets are allways 
used.
 
What happens, if the 
XSLT Processor worked up the importstatements? Can these steps have a 
adverse effect for performance?
 
Can someone help me 
with these question?
 
Thanks a 
lot,
 
Jan
 





...
...


    
    
 
 


RE: SPACE BEFORE

2005-06-24 Thread H. krishna
Hi Andreas,

Thanks for your valuable feedback.

Regards,
bala

--- "Andreas L. Delmelle" <[EMAIL PROTECTED]>
wrote:

> > -Original Message-
> > From: Andreas L. Delmelle
> [mailto:[EMAIL PROTECTED]
> >
> 
> Just occurred to me that there is another option...
> 
> > Since FOP 0.20.5 does not yet implement
> space-*.conditionality="retain", I
> > guess you're going to have to play with the
> space-* properties, i.e. drop
> > them in some places, set them to 24pt in others.
> 
> Maybe you can try inserting empty blocks or
> pseudo-blocks with a line-height
> of 12pt to mimick the space-* with
> conditionality="retain":
> 
> 
> or
>  
> 
> 
> HTH!
> 
> Greetz,
> 
> Andreas
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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