Re: Image - Scale Width/Height

2005-10-21 Thread J.Pietschmann

Prakash R wrote:

Can someone have a “box” (eg: table cell) set to a
specific height and width and say to have an image
scale to the size of that box??


In principle, yes. Unfortunately, FOP 0.20.5 doesn't
implement "height" properly, which may lead to an increased
height of the table row.

J.Pietschmann

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



Image - Scale Width/Height

2005-10-21 Thread Prakash R
Can someone have a “box” (eg: table cell) set to a
specific height and width and say to have an image
scale to the size of that box??

If images are taller than the height, then scale by
height. But if images are wider than the widths, then
scale by width. But if both height and width are
higher, then scale it such that the image fits in the
box but still maintains its aspect ratio.

Thank you.
Prakas

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



Re: Problem with fox:outline in FOP Trunk (was: Hello)

2005-10-21 Thread Glen Mazza

Jeremias Maerki wrote:



XSL 1.0, 6.4.19, fo:static-content says:
http://www.w3.org/TR/xsl/slice6.html#fo_static-content

Contents:
(%block;)+

So you must at least have one block as a child for fo:static-content (It
can be empty). The redesigned FOP is much more strict about the
interpretation of the specification.



The reason why XSL is strict about this is to guard against XSLT 
errors--i.e., a erroneously un-activated XSLT template causing your 
fo:static-content element to be empty on (say) page 240, and you not 
knowing that because your XSL processor silently kept running (or just 
giving a warning message among several screens of other output.)  By 
halting, it allows you to go back and fix the template error instead of 
submitting an erroneously built document to someone else.


Glen

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



Re: Problem with fox:outline in FOP Trunk

2005-10-21 Thread Glen Mazza

Jeremias Maerki wrote:



I wonder if we should add fox:outline again for backwards compatibility.
Hmm.



FOP 1.0 is a different application from 0.20.5.  They are not 
backwards-compatible, just like Struts 1.0.2 and 1.27 aren't.  Users who 
prefer the API of 0.20.5 can continue on with that version.  But FOP 1.0 
really needs to move past the architectural baggage of 0.20.5, lest we 
return to what Joerg had called the Great FOP Depression again of few 
people understanding the code or being able to fix it/improve it.


Ordinarily here, I would still say "yes" though to adding fox:outline to 
1.0, so the stylesheet continues to work, providing we have solid 
deprecation warnings for users to switch to the new FO's.  But I'm 
reluctant to do so for this reason:  IIRC fox:outline has a very nasty 
content model in 0.20.5, basically you can place it anywhere--and you'd 
have to ease up so much on the internal validation to support that that 
everyone else would be hurt with (1) NPE's due to a watered-down 
validation, plus (2) the already-complex downstream layout logic being 
clogged with validation logic again in order to patch all the NPE's 
caused by not doing validation.  So I'm -0.8 on returning this 
functionality--bookmarks were implemented really sloppily in 0.20.5, and 
I don't think we want to hurt 1.0's architecture by putting that monster 
back in.


Still, I think that FOP 1.0 should at least *ignore* every fox:outline 
element, i.e., not raise an error and halt.  Users can test trunk with 
their stylesheets and then add the XSL WD1.1 bookmarks in later.


Glen

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



Re: Problem with fox:outline in FOP Trunk (was: Hello)

2005-10-21 Thread Jeremias Maerki

On 21.10.2005 18:11:17 a b wrote:
> Hello again,
> 
> Sorry about that, and thanks very much to both of you
> for your replies.
> 
> I din´t say I´m using dockbook, together with xlstproc
> and fop.
> 
> I´m just a newbie with all of this, but after your
> replies, I´ve managed to correct docbook-xsl sources
> to handle properly fo:bookmark-tree and it´s
> descendants.
> 
> Now I´m getting another error wich has got something
> to do fo:static content asking for one or more block
> entries.
>
> I mean, what to do If I´d like to use fop´s latest
> snapshot + docbook as a tool-chain?
> 
> Anywhere form where to get info about this specific
> issue?

XSL 1.0, 6.4.19, fo:static-content says:
http://www.w3.org/TR/xsl/slice6.html#fo_static-content

Contents:
(%block;)+

So you must at least have one block as a child for fo:static-content (It
can be empty). The redesigned FOP is much more strict about the
interpretation of the specification.

> Also, Jeremias said the actual snapshot is broken due
> to long path names in this case, where can I find info
> on whether the actual snapshot is actually broken or
> not (and where), so I sync of all this and handle it
> and work always with latest versions?

There's no direct info that they are broken, but we removed the links to
the snapshots. We will reenable the link when the snapshot production is
fixed. Until then we recommend that you download the sources using
Subversion.

> Kind Regards,
> 
> 
>  --- Jeremias Maerki <[EMAIL PROTECTED]>
> escribió:
> 
> > The snapshots are currently broken due to long path
> > names. But that's
> > not the problem you're experiencing. The problem is
> > that fox:outline [1]
> > is not implemented in FOP Trunk anymore. It has been
> > superseded by the
> > new bookmark elements from XSL-FO 1.1 [2].
> > 
> > I wonder if we should add fox:outline again for
> > backwards compatibility.
> > Hmm.
> > 
> > A little request: Please put a descriptive text in
> > the subject line next
> > time. Thanks.
> > 
> > [1]
> >
> http://xmlgraphics.apache.org/fop/extensions.html#bookmarks
> > [2] http://www.w3.org/TR/xsl11/#d0e14085
> > 
> > On 21.10.2005 16:43:37 a b wrote:
> > > Helo there,
> > > 
> > > I´m using fop under a linux-debian box.
> > > 
> > > I´ve been trying to get the "trunk" version of
> > fop,
> > > from here:
> > > 
> > > http://cvs.apache.org/snapshots/fop/
> > > 
> > > I´ve set up ant, and the last version of java
> > sdk/jre.
> > > 
> > > I´ve donwloaded the last two versions by now,
> > which
> > > are:
> > > 
> > > fop_20051021104642.tar.gz
> > > fop_20051021043611.tar.gz
> > > 
> > > But when I build them up and try to use them, I
> > get an
> > > error like this, more or less:
> > > 
> > > No element mapping definition found for
> >  > > 
> > > I think (in my ignorance), this could be either
> > > because automatic-snapshots are not always
> > > "working-products", or because I´m doing something
> > > wrong, although build-process seems to finish ok.
> > > 
> > > Why I´m looking for a newer version than 0.20.5 is
> > > because I can use background-image, and some other
> > > properties seem to be already implemented, as seen
> > > here:
> > > 
> > >
> >
> http://xmlgraphics.apache.org/fop/compliance.html#fo-object-section
> > > 
> > > 
> > > Any comments are welcome.
> > > 
> > > Kind Regards,
> > 
> > 
> > Jeremias Maerki
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
> __ 
> Renovamos el Correo Yahoo! 
> Nuevos servicios, más seguridad 
> http://correo.yahoo.es
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Jeremias Maerki


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



Re: Problem with fox:outline in FOP Trunk (was: Hello)

2005-10-21 Thread a b
Hello again,

Sorry about that, and thanks very much to both of you
for your replies.

I din´t say I´m using dockbook, together with xlstproc
and fop.

I´m just a newbie with all of this, but after your
replies, I´ve managed to correct docbook-xsl sources
to handle properly fo:bookmark-tree and it´s
descendants.

Now I´m getting another error wich has got something
to do fo:static content asking for one or more block
entries.

I mean, what to do If I´d like to use fop´s latest
snapshot + docbook as a tool-chain?

Anywhere form where to get info about this specific
issue?

Also, Jeremias said the actual snapshot is broken due
to long path names in this case, where can I find info
on whether the actual snapshot is actually broken or
not (and where), so I sync of all this and handle it
and work always with latest versions?

Kind Regards,


 --- Jeremias Maerki <[EMAIL PROTECTED]>
escribió:

> The snapshots are currently broken due to long path
> names. But that's
> not the problem you're experiencing. The problem is
> that fox:outline [1]
> is not implemented in FOP Trunk anymore. It has been
> superseded by the
> new bookmark elements from XSL-FO 1.1 [2].
> 
> I wonder if we should add fox:outline again for
> backwards compatibility.
> Hmm.
> 
> A little request: Please put a descriptive text in
> the subject line next
> time. Thanks.
> 
> [1]
>
http://xmlgraphics.apache.org/fop/extensions.html#bookmarks
> [2] http://www.w3.org/TR/xsl11/#d0e14085
> 
> On 21.10.2005 16:43:37 a b wrote:
> > Helo there,
> > 
> > I´m using fop under a linux-debian box.
> > 
> > I´ve been trying to get the "trunk" version of
> fop,
> > from here:
> > 
> > http://cvs.apache.org/snapshots/fop/
> > 
> > I´ve set up ant, and the last version of java
> sdk/jre.
> > 
> > I´ve donwloaded the last two versions by now,
> which
> > are:
> > 
> > fop_20051021104642.tar.gz
> > fop_20051021043611.tar.gz
> > 
> > But when I build them up and try to use them, I
> get an
> > error like this, more or less:
> > 
> > No element mapping definition found for
>  > 
> > I think (in my ignorance), this could be either
> > because automatic-snapshots are not always
> > "working-products", or because I´m doing something
> > wrong, although build-process seems to finish ok.
> > 
> > Why I´m looking for a newer version than 0.20.5 is
> > because I can use background-image, and some other
> > properties seem to be already implemented, as seen
> > here:
> > 
> >
>
http://xmlgraphics.apache.org/fop/compliance.html#fo-object-section
> > 
> > 
> > Any comments are welcome.
> > 
> > Kind Regards,
> 
> 
> Jeremias Maerki
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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



Re: Problem with fox:outline in FOP Trunk (was: Hello)

2005-10-21 Thread Jeremias Maerki
The snapshots are currently broken due to long path names. But that's
not the problem you're experiencing. The problem is that fox:outline [1]
is not implemented in FOP Trunk anymore. It has been superseded by the
new bookmark elements from XSL-FO 1.1 [2].

I wonder if we should add fox:outline again for backwards compatibility.
Hmm.

A little request: Please put a descriptive text in the subject line next
time. Thanks.

[1] http://xmlgraphics.apache.org/fop/extensions.html#bookmarks
[2] http://www.w3.org/TR/xsl11/#d0e14085

On 21.10.2005 16:43:37 a b wrote:
> Helo there,
> 
> I´m using fop under a linux-debian box.
> 
> I´ve been trying to get the "trunk" version of fop,
> from here:
> 
> http://cvs.apache.org/snapshots/fop/
> 
> I´ve set up ant, and the last version of java sdk/jre.
> 
> I´ve donwloaded the last two versions by now, which
> are:
> 
> fop_20051021104642.tar.gz
> fop_20051021043611.tar.gz
> 
> But when I build them up and try to use them, I get an
> error like this, more or less:
> 
> No element mapping definition found for  
> I think (in my ignorance), this could be either
> because automatic-snapshots are not always
> "working-products", or because I´m doing something
> wrong, although build-process seems to finish ok.
> 
> Why I´m looking for a newer version than 0.20.5 is
> because I can use background-image, and some other
> properties seem to be already implemented, as seen
> here:
> 
> http://xmlgraphics.apache.org/fop/compliance.html#fo-object-section
> 
> 
> Any comments are welcome.
> 
> Kind Regards,


Jeremias Maerki


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



Re: Hello

2005-10-21 Thread Andreas L Delmelle

On Oct 21, 2005, at 16:43, a b wrote:

Hi,



But when I build them up and try to use them, I get an
error like this, more or less:

No element mapping definition found for 

That's because in the trunk, bookmarks are now moved into the default  
FO namespace. Bookmarks are an added feature of the XSL 1.1 WD.


In order to use bookmarks, you have to convert to using fo:bookmark- 
tree, fo:bookmark and fo:bookmark-title.

see: http://www.w3.org/TR/xsl11/#d0e14085

HTH!

Greetz,

Andreas


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



Hello

2005-10-21 Thread a b
Helo there,

I´m using fop under a linux-debian box.

I´ve been trying to get the "trunk" version of fop,
from here:

http://cvs.apache.org/snapshots/fop/

I´ve set up ant, and the last version of java sdk/jre.

I´ve donwloaded the last two versions by now, which
are:

fop_20051021104642.tar.gz
fop_20051021043611.tar.gz

But when I build them up and try to use them, I get an
error like this, more or less:

No element mapping definition found for http://xmlgraphics.apache.org/fop/compliance.html#fo-object-section


Any comments are welcome.

Kind Regards,







__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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



Re: Problems with overlapping regions

2005-10-21 Thread Jeremias Maerki
The only weird thing I can see here is the extent property on the second
region-body. This property doesn't apply to region-body. BTW, it would
be much more fun to reproduce your problem if you posted a complete FO
file and stated the FOP version you are using. :-)

On 21.10.2005 13:47:56 Timo Haberkern wrote:
> Hello FOP List,
> 
> i have a problem with overlapping regions. I have content of the 
> region-body that overlapps content from region-after.
> 
> You can see it on the screenshot:
> 
> http://www.emedia-office.de/fop/overlapping.png
> 
> i have defined my page as follows:
> 
> http://www.w3.org/1999/XSL/Format";>
> 
>  page-height="29.7cm" page-width="21cm">
>  margin-top="1cm" margin-bottom="2.5cm" />
> 
> 
> 
> 
>  page-height="29.7cm" page-width="21cm" margin-left="2cm" 
> margin-right="1.5cm">
>  margin-bottom="2.5cm" background-color="rgb(0,255,0)" />
> 
> 
> 
> 
> 
>  master-reference="Following-Pages" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  font-size="8pt" padding-top="0.1cm">
>  / 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Any ideas whats going wrong?
> 
> best reagards
> 
> Timo


Jeremias Maerki


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



Problems with overlapping regions

2005-10-21 Thread Timo Haberkern

Hello FOP List,

i have a problem with overlapping regions. I have content of the 
region-body that overlapps content from region-after.


You can see it on the screenshot:

http://www.emedia-office.de/fop/overlapping.png

i have defined my page as follows:

http://www.w3.org/1999/XSL/Format";>
   
   page-height="29.7cm" page-width="21cm">
   margin-top="1cm" margin-bottom="2.5cm" />

   
   
   
   
   page-height="29.7cm" page-width="21cm" margin-left="2cm" 
margin-right="1.5cm">
   margin-bottom="2.5cm" background-color="rgb(0,255,0)" />

   
   
   
   
   
   master-reference="Following-Pages" />

   
   
   
   

   
   
   
   
   
   
   
   font-size="8pt" padding-top="0.1cm">
/ 


   
   
   
   
   
   
   
   
   
   

   
   
   
   
   
   



Any ideas whats going wrong?

best reagards

Timo

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



Re: DataMatrix Barcode in PDFs with FOP

2005-10-21 Thread Jeremias Maerki
There are several commercial tools out there (Google is your friend)
which implement DataMatrix, but you'd have to integrate them into FOP
yourself. http://idautomation.com/java/ is probably the first address
for a commercial tool.

DataMatrix is very high on the task list for Barcode4J but it is
non-trivial to implement. I assume that I'll start the implementation
later this year. I don't mind some additional "motivation" for that task,
though. :-)

On 21.10.2005 10:30:54 Alexander Schwartz wrote:
> Hello FOP-Users,
> 
> I need to include DataMatrix Codes in PDFs and I wonder if someone has
> experience with this. 
> 
> Do you know any libraries that provide this feature?
> 
> Barcode4J only supports 1D-Barcodes, DataMatrix is a 2D-Barcode. 


Jeremias Maerki


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



DataMatrix Barcode in PDFs with FOP

2005-10-21 Thread Alexander Schwartz
Hello FOP-Users,

I need to include DataMatrix Codes in PDFs and I wonder if someone has
experience with this. 

Do you know any libraries that provide this feature?

Barcode4J only supports 1D-Barcodes, DataMatrix is a 2D-Barcode. 

Thanks, 
Alexander. 
  
Alexander  Schwartz 
PLUS Finanzservice GmbH 
Otto-von-Guericke-Ring 15 
65205  Wiesbaden 
T.: 06122 - 999 906 
F.: 06122 - 999 44906 
[EMAIL PROTECTED] 
  
-- 
Confidentiality: This e-mail and its attachments are intended for the above 
named only and may be confidential. If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone;  
please reply to this e-mail and highlight the error. 
  
Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. We 
advise that you understand and observe this lack of security when e-mailing us. 
  
Viruses: Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus free. 
--