Re: problems with printing: fop-0.91

2006-02-20 Thread Jeremias Maerki
I finally had a chance to look at this. Turns out that it works fine if
you print directly, for example, using -print from the command-line.
If you print from the preview dialog, however, the page size is not
correct and therefore content gets swallowed. We'll have to find out why
the Preview window does something different than the rest of the code.

On 17.02.2006 17:35:12 Tim Dyck wrote:
 I went back to version 0.20.5 and was able to get it work fine so that
 is good.  Thanks for the help.
 
 Tim.
 
 -Original Message-
 From: Andreas L Delmelle [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 16, 2006 12:35 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: problems with printing: fop-0.91
 
 On Feb 16, 2006, at 18:49, Tim Dyck wrote:
 
 Hi,
 
  Not sure exactly what output renderer I am using at this point, but I
  believe I am using the following renderer (that is what I saw in the
  debugger):
 
application/X-fop-awt-preview
 
  and once the awt preview is opened then I click on the print button
  which calls back into the AWTRenderer (which implements pageable) and
  that is what is failing to print correctly.
 
 Have you also tried different Java versions? Different printer  
 drivers? If either one works, then it would be an unfortunate case of  
 incompatibility between the Java AWT version and the driver...  
 There's little we can do about this from within FOP. We just render  
 to Java2D and pray that the used JRE has no trouble sending it  
 through to the printer correctly :-/ (We had a recent post concerning  
 such an incompatibility: replacing the printer driver made the whole  
 thing work all of a sudden.)
 
 Might be worth a try...
 
  Also, are you saying there is another way to print via FOP with a PDF
  file or are you just saying open up a PDF file in Acrobat Reader and
  print it?
 
 What Manuel is referring to, IIC, is: render to PDF and pipe the  
 resulting PDF through to AcroRead.exe via the command-line. (The same  
 could be done with PostScript as intermediate format. If your  
 printers understand PS, then you could bypass AcroRead.exe entirely  
 and send the output to the printer directly.)


Jeremias Maerki


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



fop beta performance

2006-02-20 Thread Jimmy Dixon

Is the new FOP beta any faster than the previous release?

Cheers.
Jimmy.

--
Jimmy Dixon, Perfiliate Technologies

email   :  [EMAIL PROTECTED]
phone   :  +44 (0)191 241 6500

Registered Office:
Perfiliate Technologies Limited
7-15 Pink Lane,
Newcastle upon Tyne. NE1 5DW
Registered No. 3783384 in the UK

Telephone +44 (0)191 241 6500
Facsimile +44 (0)191 241 9302

www.perfiliate.com

Please note that electronic mail may be monitored.

This e-mail is confidential. If you received it by mistake, please let us know 
and then delete it from your system; you should not copy, disclose, or 
distribute its contents to anyone nor act in reliance on this e-mail, as this 
is prohibited and may be unlawful. We check all emails for viruses, but please 
note that we do not accept liability for any viruses which may be transmitted 
in or with this email.


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



Help needed for allowing spaces in PDF O/P using fop-0.91beta version

2006-02-20 Thread nitin . shrivastava






Regards,
Nitin Shrivastava
POLARIS SOFTWARE LAB Ltd.
Indiana Business Center
+91-22-56482255
-

LUCK is what happens when PREPARATION meets OPPORTUNITY


- Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM -

   
  nitin.shrivastava 
   
   To:  Jeremias Maerki [EMAIL 
PROTECTED]   
  02/20/2006 03:31 cc:  [EMAIL PROTECTED], 
[EMAIL PROTECTED]
  PM   Subject: Help needed for 
allowing spaces in PDF O/P using fop-0.91beta version(Document 
   link: nitin.shrivastava) 
   

   



Hi,

With FOP  0.91 beta version I was able to overlapp the data over image.
Now the problem I am facing is w.r.t the space in the XML file which is
getting  ignored in PDF output .

My XML data between tags is as shown below

|---|

|  AA B   CC  DD
EE  |
|   |
| AA  B  40041
|
|0
  |
|---|

My XSL is

fo:simple-page-master master-name=cover page-height=1090pt
page-width=714.78pt margin-top=0cm margin-bottom=0cm
margin-left=0cm margin-right=0cm
fo:region-body margin-top=0cm margin-bottom=0cm margin-left=0in
margin-right=0in/
fo:region-after extent=0cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=cover 
fo:flow flow-name=xsl-region-body 
fo:block-container
fo:block  font-family=monospace  linefeed-treatment=preserve
white-space-treatment=preserve white-space-collapse=false 
xsl:apply-templates/
/fo:block
/fo:block-container
/fo:flow

The PDF O/P that I get is


|---|

|AA B   CC  DD
EE|
|   |
|AA  B 40041
|
|0
|
|---|

Here the sapce inbetween the data A ,B is maintained in the
output but the intial spaces are getting neglected which
we need to display in the PDF O/P.

Can you please suggest me where am I making the mistake / or I need to
specify any addition property in the flow/block-container/or block
level.
Or any other workaround to maintain these initial spaces at every line as
maintianed in the XML file.

One more query the image which I am trying the display in the PDF output is
not kaing the absolute size as maintained .The XSL for the image is as
below
xsl:template match=img
  fo:block-container position=absolute
  fo:block
  fo:external-graphic  content-height=348%  src=[EMAIL PROTECTED]/
  /fo:block
  /fo:block-container
  /xsl:template

Here if I dont specify the content-height it take its own default value and
displays the image with diminished size.Where as in FOP 0.20.5
the command   fo:external-graphic   src=[EMAIL PROTECTED]/  used to display 
the
absoluete size of image ... Please suggest me what can I do to dispaly the
abolute
size as content-height=auto does not work in 0.91 beta version





Regards,
Nitin Shrivastava
POLARIS SOFTWARE LAB Ltd.
Indiana Business Center
+91-22-56482255






   
  Jeremias Maerki   
   
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
   
  erki.ch cc:  
 

Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta version

2006-02-20 Thread Manuel Mall
The white space handling for linefeed-treatment=preserve is currently 
not correct for fop trunk. Leading spaces are incorrectly deleted.

Manuel

On Monday 20 February 2006 19:17, [EMAIL PROTECTED] wrote:
 Regards,
 Nitin Shrivastava
 POLARIS SOFTWARE LAB Ltd.
 Indiana Business Center
 +91-22-56482255
 -


 LUCK is what happens when PREPARATION meets OPPORTUNITY


 - Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM
 -

   nitin.shrivastava
To:  Jeremias
 Maerki [EMAIL PROTECTED] 02/20/2006 03:31 cc: 
 [EMAIL PROTECTED], [EMAIL PROTECTED] PM   
Subject: Help needed for allowing spaces in PDF O/P
 using fop-0.91beta version(Document link: nitin.shrivastava)




 Hi,

 With FOP  0.91 beta version I was able to overlapp the data over
 image. Now the problem I am facing is w.r.t the space in the XML file
 which is getting  ignored in PDF output .

 My XML data between tags is as shown below

 |
 |
 |---|
 |
 |  AA B   CC  DD

 EE  |

 | AA  B  40041
 |
 |0
 |
 |
 |
 |---|

 My XSL is

 fo:simple-page-master master-name=cover page-height=1090pt
 page-width=714.78pt margin-top=0cm margin-bottom=0cm
 margin-left=0cm margin-right=0cm
 fo:region-body margin-top=0cm margin-bottom=0cm
 margin-left=0in margin-right=0in/
 fo:region-after extent=0cm/
 /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=cover 
 fo:flow flow-name=xsl-region-body 
 fo:block-container
 fo:block  font-family=monospace  linefeed-treatment=preserve
 white-space-treatment=preserve white-space-collapse=false 
 xsl:apply-templates/
 /fo:block
 /fo:block-container
 /fo:flow

 The PDF O/P that I get is

 |
 |
 |---|
 |
 |AA B   CC  DD

 EE|

 |AA  B 40041
 |
 |0
 |
 |
 |
 |---|

 Here the sapce inbetween the data A ,B is maintained in
 the output but the intial spaces are getting neglected which
 we need to display in the PDF O/P.

 Can you please suggest me where am I making the mistake / or I need
 to specify any addition property in the flow/block-container/or block
 level.
 Or any other workaround to maintain these initial spaces at every
 line as maintianed in the XML file.

 One more query the image which I am trying the display in the PDF
 output is not kaing the absolute size as maintained .The XSL for the
 image is as below
 xsl:template match=img
   fo:block-container position=absolute
   fo:block
   fo:external-graphic  content-height=348%  src=[EMAIL PROTECTED]/
   /fo:block
   /fo:block-container
   /xsl:template

 Here if I dont specify the content-height it take its own default
 value and displays the image with diminished size.Where as in FOP
 0.20.5 the command   fo:external-graphic   src=[EMAIL PROTECTED]/  used to
 display the absoluete size of image ... Please suggest me what can I
 do to dispaly the abolute
 size as content-height=auto does not work in 0.91 beta version





 Regards,
 Nitin Shrivastava
 POLARIS SOFTWARE LAB Ltd.
 Indiana Business Center
 +91-22-56482255






   Jeremias Maerki
   [EMAIL PROTECTED] To: 
 [EMAIL PROTECTED] erki.ch cc:
Subject: Re: Help
 needed !!! 02/10/2006 03:20
   PM






 I thought you couldn't use a block-container approach. And as I told
 you before fo:float isn't implemented, yet. The latest version of
 Apache FOP is 0.91beta
 (http://xmlgraphics.apache.org/fop/download.html). It has some
 improvements over 0.20.5 WRT fo:block-container. But fo:float needs
 to be implemented, first.

 There are no free alternatives available. Apache FOP is the best open
 source XSL-FO implementation. You will have to use a commercial tool
 if you can't solve it with Apache FOP or look for an alternative to
 XSL-FO.

 On 10.02.2006 10:33:22 nitin.shrivastava wrote:
  Hi,
 
  Can you please suggest me is there any new FOP version available
  with the implementation
  of block-container or float 

RE: convert from XSL-FO to MSWORD

2006-02-20 Thread Mohamed, Amgad



I found this style sheet http://fo2wordml.sourceforge.net/which convert xsl-fo documents into WordML this succeeded with text but when there is graphics the images are omitted in addition to that not all the colors are mapped ,does any one know any reliable style sheet to convert from xsl-fo to wordML with all formatting tags (tables , images , links , columns, colors,etc...)?

Is there any XSLT to convert to XML to gnumeric xml , CSV?


Best Regards,
Amgad Hanafy,
[EMAIL PROTECTED]


From: [EMAIL PROTECTED]Sent: Thu 16/02/2006 06:44 مTo: fop-users@xmlgraphics.apache.orgSubject: Re: convert from XSL-FO to MSWORD
Below is a VERY simple framework sample stylesheet to get you started. I did not go this route due to the fact that WordML is not supported in older versions of Word: ?xml version="1.0" encoding="ISO-8859-1" ? ?mso-application progid="Word.Document"? xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xsl:output method="xml" indent="yes" encoding="utf-8"/ xsl:template match="/" w:wordDocument w:body w:p w:r w:tThis is a very simple paragraph that will be rendered OK in Word on an XP machine. Add stuff here and enjoy./w:t /w:r /w:p /w:body /w:wordDocument /xsl:template /xsl:stylesheet Good luck. -Lou 



"Mohamed, Amgad" [EMAIL PROTECTED] 
02/16/2006 10:07 AM 




Please respond tofop-users@xmlgraphics.apache.org





To
"fop-users@xmlgraphics.apache.org" fop-users@xmlgraphics.apache.org 


cc



Subject
convert from XSL-FO to MSWORD




Dear All,  Is there is any way to convert from XSL-FO to MSWORD?  Best Regards, Amgad Hanafy. 


RE: putting an svg element into an fo document

2006-02-20 Thread cknell
You have shown what you expect to appear in the XSL-FO document, but not what 
actually does appear there. Consequently, it's hard to say where you are going 
wrong. With what information you have supplied, the second construction (the 
one using copy-of) appears to be the correct one.

Show what you actually get in the XSL-FO document at the point where you have 
xsl:copy-of select=Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL 
PROTECTED]'1']/svg/ in the stylesheet and perhaps we can help.

If that's where the problem is, you would be better off on the XSL list.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: Tracey Zellmann [EMAIL PROTECTED]
Sent: Mon, 20 Feb 2006 08:32:18 -0500
To:   fop-users@xmlgraphics.apache.org
Subject:  putting an svg element into an fo document

My problem may overlap FOP, XSLT, SVG and XPATH, but I would like to start 
here, because I am basically having a problem creating a PDF using FOP. If 
anyone thinks I should better ask another forum, please point me in that 
direction.

I have an xml document that contains a number of svg elements. I am trying to 
use an XSLT stylesheet to put them into an fo document, which I then feed 
through FOP to create a PDF. I have control over the structure of everything.

The xml document is of this form
Report
TrackT1
Position position=Left Front
MCHistogram id=1
svg...

many g elements

/svg

and so forth...

As an example, I am trying to get the above svg element, in its entirety, with 
tags, into an fo document that looks like this:

fo:block
fo:instream-foreign-object content-width=6in
svg...

/svg
/fo:instream-foreign-object
fo:block

If I manually paste the svg element in, the resulting PDF looks exactly how I 
want it to look.

I have been trying to do this programmatically with XSLT, without success, and 
I would appreciate any help or advice.

I have tried

xsl:value-of select=Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL 
PROTECTED]'1']/svg/

also

xsl:copy-of select=Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL 
PROTECTED]'1']/svg/

Neither approach is successful.

I have tried many other combinations and permutations, without any real 
success. What would be a proper way of getting such an svg element into my 
report?


ÿþ<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD>

<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">

<META content="MSHTML 6.00.2900.2802" name=GENERATOR>

<STYLE></STYLE>

</HEAD>

<BODY bgColor=#ffffff>

<DIV><FONT face=Arial size=2>My problem may overlap FOP, XSLT, SVG and XPATH, 

but I would like to start here, because I am basically having a problem creating 

a PDF using FOP. If anyone thinks I should better ask another forum, please 

point me in that direction.</FONT></DIV>

<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>

<DIV><FONT face=Arial size=2>I have an xml document that contains a number of 

svg elements. I am trying to use an XSLT stylesheet to put them into an fo 

document, which I then feed through FOP to create a PDF. I have control over the 

structure of everything.</FONT></DIV>

<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>

<DIV><FONT face=Arial size=2>The xml document is of this form</FONT></DIV>

<DIV><FONT face=Arial size=2>&lt;Report&gt;</FONT></DIV>

<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;TrackT1&gt;</FONT></DIV>

<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Position 

position="Left Front"&gt;</FONT></DIV>

<DIV><FONT face=Arial 

Re: conditionality, leaders and page break

2006-02-20 Thread Jeremias Maerki
I don't think it's possible to do that in XSL-FO. If you could place the
text to be repeated on the next page in a static-content you could use
marker/retrieve-marker. But since you want this to appear in the first
normal content line on a page together with normal content, I think
you're out of luck. The only thing you can do is use keep-together on
the rows so they don't get broken over multiple pages.

On 20.02.2006 15:19:41 Olivier wrote:
 Hi,
 
 fo:table-row
 fo:table-cellfo:block text-align-last=justifymy text
 fo:leader leader-alignment=reference-area 
 leader-pattern=dots//fo:block
 /fo:table-cell
 fo:table-cellfo:blockbla bla/fo:block/fo:table-cell
 /fo:table-row
 fo:table-row
 fo:table-cellfo:block text-align-last=justifymy text
 fo:leader leader-alignment=reference-area 
 leader-pattern=dots//fo:block
 /fo:table-cell
 fo:table-cellfo:blockbli bli/fo:block/fo:table-cell
 /fo:table-row
 fo:table-row
 fo:table-cellfo:block text-align-last=justifymy other text
 fo:leader leader-alignment=reference-area 
 leader-pattern=dots//fo:block
 /fo:table-cell
 fo:table-cellfo:blockblo blo/fo:block/fo:table-cell
 /fo:table-row
 give :
 my text...  bla bla
 my text...  bli bli
 my other text.  blo blo
 
 Now, i would like to not print a block content's if the precedent (same
 column, row before) is the same, and fill the block only with leaders, except 
 in case of page break.
 
 expecting result :
 my text...  bla bla
 ..  bli bli
 my other text.  blo blo
 
 expecting result (if page break) :
 my text...  bla bla
 page break
 my text...  bli bli
 my other text.  blo blo
 
 I programmatically create the FO file (no xslt transformation), so i can let
 empty the block of the following row if needed (conditionality in FO file
 prefer), but how can i do for page break (huge row number) ?
 
 Fop's archive fop-0.91beta-bin-jdk1.4.tar.gz on Mac OS x 10.4.5



Jeremias Maerki


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



Re: verdana

2006-02-20 Thread Chris Bowditch

Jimmy Dixon wrote:


What do I need to do to use the verdana font with fop?


You need to generate some font metrics and register the Font in FOP's 
configuration file. The exact details of how this is done varies 
depending on what version of FOP you are using.


For 0.20.5, see:

http://xmlgraphics.apache.org/fop/0.20.5/fonts.html

For 0.9beta, see:

http://xmlgraphics.apache.org/fop/0.91/fonts.html

Chris



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



Re: putting an svg element into an fo document

2006-02-20 Thread Paul Tremblay
On Mon, Feb 20, 2006 at 08:32:18AM -0500, Tracey Zellmann wrote:
 From: Tracey Zellmann [EMAIL PROTECTED]
 To: fop-users@xmlgraphics.apache.org
 I have been trying to do this programmatically with XSLT, without success, 
 and I would appreciate any help or advice.
 
 I have tried
 
 xsl:value-of select=Report/TrackT1/[EMAIL PROTECTED]'Left 
 Front']/[EMAIL PROTECTED]'1']/svg/
 
 also
 
 xsl:copy-of select=Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL 
 PROTECTED]'1']/svg/
 
 Neither approach is successful.
 
 I have tried many other combinations and permutations, without any real 
 success. What would be a proper way of getting such an svg element into my 
 report?

This is really an XSLT question and is better answered on the Mulberry
mailing list. 

http://www.mulberrytech.com/xsl/xsl-list/

What you are trying to do is very simple to do in XSLT. First, you
definitely want to use the xsl:copy-of element. I am not sure
exactly what the path is to the svg element, but try  

xsl:copy-of select=/Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL 
PROTECTED]'1']/svg/

Notice how I put a leading / in front of your xpath expression.

Good luck

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*


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



Re: putting an svg element into an fo document

2006-02-20 Thread Paul Tremblay
On Mon, Feb 20, 2006 at 10:14:06AM -0500, Tracey Zellmann wrote:
 From: Tracey Zellmann [EMAIL PROTECTED]
 To: fop-users@xmlgraphics.apache.org
 Date: Mon, 20 Feb 2006 10:14:06 -0500
 Subject: Re: putting an svg element into an fo document
 
 Ok. I think I should make a smaller example, since the current document is 
 quite large. I will work on that during the day, and send it along. 
 Separately, if anyone could give me a pointer to best know practices, or a 
 working example that is similar to my case, that might also help. Basically, 
 taking an svg element from a data document, and using xslt to select that and 
 place it in an fo document.

Really what you are doing is exactly right. If I have a document that
looks like this:

doc
 section type=svg
svg id=body width=21cm height=13.5cm
viewBox=0 0 210 135 xmlns=http://www.w3.org/2000/svg;
titleExample 1/title
desc
Rectangle with red border and light blue interior.
/desc
 rect x=10 y=20 width=150 height=70
fill=#ff stroke=red stroke-width=1 /
/svg
   /section
/doc

Your XSLT file should look like:

xsl:stylesheet 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:svg=http://www.w3.org/2000/svg;
version=1.1

xsl:template match=/
!--create your pages, etc--
/xsl:template

xsl:template match=[EMAIL PROTECTED]'svg']
  fo:instream-foreign-object
xsl:copy-of select=svg:svg/
  /fo:instream-foreign-object

/xsl:template

/xsl:stylesheet

If you are going to be doing any amount of processing with XML, it
will really help you to join the Mulberry mailing list and to get a
good book on XSLT. I have *XSLT Quickly* by Bob DuCharme, which
helped me use XSLT right away, and it still serves as my main
reference. There are of course a lot of other good books.

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*


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



Re: ApacheCon EU 2006

2006-02-20 Thread Clay Leeds

A couple of ideas:
- Beginning FOP
- Beginning Batik
- How to add PDF/RTF/PS/etc. output to your web site/system

On Feb 17, 2006, at 12:46 PM, Jeremias Maerki wrote:

I've just seen the news that the ApacheCon EU 2006 will be held in
Dublin, Ireland, June 26-30. I'm planning to go there and maybe even
hold another session as I have done last year in Stuttgart.

I'd like to know what FOP-related topics you FOP users are most
interested in. What would you make attend such as FOP-related session?
These ideas would be helpful in putting together a session proposal or
two.

Thanks,
Jeremias Maerki



Clay Leeds
[EMAIL PROTECTED]

My religion is simple. My religion is kindness.
-- HH Dalai Lama of Tibet




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



Re: conditionality, leaders and page break

2006-02-20 Thread Olivier
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 I don't think it's possible to do that in XSL-FO. If you could place the
 text to be repeated on the next page in a static-content you could use
 marker/retrieve-marker. But since you want this to appear in the first
 normal content line on a page together with normal content, I think
 you're out of luck. The only thing you can do is use keep-together on
 the rows so they don't get broken over multiple pages.
 

I already use keep-together.
I'm really out of luck :-(

Thanks.


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



footnote in list-block not working

2006-02-20 Thread Sven

Hi,
I discovered a strange behaviour of FOP when using footnotes in a 
list-block. The footnote in the list-block is not rendered at the bottom 
of the page, while the the hint number in the normal text appears as 
expected. I habe attached a simple example.


Last question: Is wrapping footnotes (so some lines appear on the next 
page) corrent behaviour? I could not imagine so, because there is not 
any clue where the remainder text belongs to. Because I was using larger 
footnote texts before without experiencing this problem, I believe this 
problem depends on the one above.


Regards, Sven


?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master margin=3cm 4cm 4cm 5cm
page-width=21cm page-height=29.7cm master-name=default
fo:region-body margin-top=1cm /
fo:region-before extent=1cm /
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence country=DR language=de
master-reference=default
fo:static-content flow-name=xsl-region-before
fo:block border-bottom=solid 1px silver text-align=end
font-size=10pt font-family=Helvetica
fo:table table-layout=fixed width=100%
fo:table-column number-columns-repeated=2
column-width=50% /
fo:table-body
fo:table-row
fo:table-cell
fo:block text-align=left
fo:page-number /
/fo:block
/fo:table-cell
fo:table-cell
fo:block text-align=right
Agententechnologie
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:block
/fo:static-content
fo:static-content flow-name=xsl-footnote-separator
fo:block
fo:leader leader-length=100px leader-pattern=rule /
/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block page-break-after=avoid space-after=0.5em
space-before=1em font-weight=bold font-size=14pt
font-family=Helvetica id=N10034
2.2 Eigenschaften von Agenten
/fo:block
fo:block hyphenation-remain-character-count=4
hyphenate=true line-height-shift-adjustment=disregard-shifts
space-after=0.5em text-align=justify font-size=11pt
font-family=Times
Ausgehend von der bisherigen Definition eines Agenten
würden viele Computerprogramme als Agenten durchgehen.
Tatsächlich existiert keine allgemein anerkannte
Definition für Software-Agenten, so dass viele
Softwarehersteller auf die oben genannte für die
Informatik unzureichende Definition von (menschlichen)
Agenten zurückgreifen und von ihrer Software kurzerhand
als Agenten reden. Stan Franklin und Art Graesser fassen
in ihrer Arbeit über Klassifikationsmöglichkeiten von
Agenten die unterschiedlichen Definitionsansätze
zusammen und versuchen die Gemeinsamkeiten aller Ansätze
herauszuarbeiten. Ihrer Meinung nach definiert sich ein
Agent wie folgt:
/fo:block
fo:block margin-right=1cm margin-left=1cm
fo:block hyphenation-remain-character-count=4
hyphenate=true line-height-shift-adjustment=disregard-shifts
space-after=0.5em text-align=justify font-size=11pt
font-family=Times
An autonomous agent is a system situated within and
a part of an environment that senses that
environment and acts on it, over time, in pursuit of
its own agenda and so as to effect what it senses in
the future.
fo:inline
fo:basic-link
internal-destination=reference-FrGr96
[FrGr96]
/fo:basic-link
/fo:inline
/fo:block
/fo:block
fo:block hyphenation-remain-character-count=4
hyphenate=true line-height-shift-adjustment=disregard-shifts
space-after=0.5em text-align=justify font-size=11pt
font-family=Times
Damit gleicht ihre Definition größtenteils der von
Michael Wooldridge und Nicholas Jennings
fo:inline
fo:basic-link
internal-destination=reference-WoJe95
[WoJe95]
/fo:basic-link
/fo:inline
. Beide Definition haben die folgenden Eigenschaften
gemeinsam:
/fo:block
fo:list-block space-after=0.5em
fo:list-item
fo:list-item-label end-indent=label-end()
fo:block font-size=10pt
font-family=Symbol
•
/fo:block
/fo:list-item-label
fo:list-item-body start-indent=body-start()
fo:block
fo:block
hyphenation-remain-character-count=4 hyphenate=true
line-height-shift-adjustment=disregard-shifts
space-after=0.5em text-align=justify font-size=11pt
font-family=Times
fo:inline font-weight=bold
Autonomie
/fo:inline
bedeutet für den Agenten, dass alle
Handlungen unter seiner Kontrolle liegen
und er keinerlei Steuerung von außen
erfährt.
fo:footnote
fo:inline text-decoration=none
font-style=normal font-weight=normal font-family=Times
font-size=65% baseline-shift=25%
1
/fo:inline
fo:footnote-body
fo:list-block
fo:list-item
fo:list-item-label
end-indent=label-end()
fo:block
text-decoration=none font-style=normal
font-weight=normal font-size=9pt
font-family=Times
1
/fo:block
/fo:list-item-label
fo:list-item-body
start-indent=body-start()
fo:block
text-decoration=none font-style=normal
font-weight=normal text-align=justify font-size=9pt
font-family=Times
TEST TEST
/fo:block
/fo:list-item-body
/fo:list-item
/fo:list-block
/fo:footnote-body
/fo:footnote
/fo:block
/fo:block
/fo:list-item-body
/fo:list-item
fo:list-item
fo:list-item-label end-indent=label-end()
fo:block font-size=10pt
font-family=Symbol
•

Re: conditionality, leaders and page break

2006-02-20 Thread Olivier
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 I don't think it's possible to do that in XSL-FO. If you could place the
 text to be repeated on the next page in a static-content you could use
 marker/retrieve-marker. But since you want this to appear in the first
 normal content line on a page together with normal content, I think
 you're out of luck. The only thing you can do is use keep-together on
 the rows so they don't get broken over multiple pages.
 

Is FOP command line (0.91) always produce a good PDF ?
In error case (minor / major ?) there is no file result, even partial ?


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



Re: conditionality, leaders and page break

2006-02-20 Thread Jeremias Maerki
If there's an exception (=error) the partial file will be deleted. If
there are only warnings a good PDF will be produced but it may not
fully up to your expectations.

On 20.02.2006 19:28:43 Olivier wrote:
 Jeremias Maerki dev at jeremias-maerki.ch writes:
 
  
  I don't think it's possible to do that in XSL-FO. If you could place the
  text to be repeated on the next page in a static-content you could use
  marker/retrieve-marker. But since you want this to appear in the first
  normal content line on a page together with normal content, I think
  you're out of luck. The only thing you can do is use keep-together on
  the rows so they don't get broken over multiple pages.
  
 
 Is FOP command line (0.91) always produce a good PDF ?
 In error case (minor / major ?) there is no file result, even partial ?



Jeremias Maerki


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



Re: putting an svg element into an fo document

2006-02-20 Thread Paul Tremblay
On Mon, Feb 20, 2006 at 12:43:06PM -0500, Tracey Zellmann wrote:
 
 Thanks. Your example contained a golden nugget of advice. I see that you 
 included the svg namespace, as well as using svg:svg. I had only used an 
 unqualified svg. I have experimented with that and got some very 
 encouraging results.
 
 I did a bunch of XSLT and XPATH work last year, but I am a little rusty. I 
 have Michael Kay's XSLT 2.0 book, but no ready reference for XPATH itself. 
 I signed up for the Mulberry list yesterday, but it has been silent, other 
 than my confirmation.
 

Strange that no one resonded. I have Kay's first book, and if his
second book is anything like his first, it is not a good book to start
with--or even use except when you really need the exact technical
specifications. It is good for technical specifications and for
getting acquantied with the fine details, but this is all I use it
for.

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*


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



Re: putting an svg element into an fo document

2006-02-20 Thread Mike Ferrando
Paul T.,
Well, I agree that starting with Michael Kay's XSLT book (1.0 first
edition) is overwhelming for a beginner, but that is how I started.

One thing I liked about the book was the structure. I tend to learn
things systematically and that really worked for me.

But for most I can agree that it may be more spec than a beginner
will need or be able to use in practice.

Mike Ferrando
Library Technician
Library of Congress
Washington, DC
202-707-4454

--- Paul Tremblay [EMAIL PROTECTED] wrote:

 On Mon, Feb 20, 2006 at 12:43:06PM -0500, Tracey Zellmann wrote:
  
  Thanks. Your example contained a golden nugget of advice. I see
 that you 
  included the svg namespace, as well as using svg:svg. I had only
 used an 
  unqualified svg. I have experimented with that and got some very 
  encouraging results.
  
  I did a bunch of XSLT and XPATH work last year, but I am a little
 rusty. I 
  have Michael Kay's XSLT 2.0 book, but no ready reference for
 XPATH itself. 
  I signed up for the Mulberry list yesterday, but it has been
 silent, other 
  than my confirmation.
  
 
 Strange that no one resonded. I have Kay's first book, and if his
 second book is anything like his first, it is not a good book to
 start
 with--or even use except when you really need the exact technical
 specifications. It is good for technical specifications and for
 getting acquantied with the fine details, but this is all I use it
 for.
 
 Paul
 
 -- 
 
 
 *Paul Tremblay *
 [EMAIL PROTECTED]*
 
 

-
 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]



Re: Re: fop beta performance

2006-02-20 Thread b . ohnsorg
Hi there, first mail from me from Germany, right now I'm quite busy. Here're 
some first stats:

realusersys
0m21.679s   0m3.503s0m0.250s
0m33.323s   0m3.467s0m0.266s
0m24.552s   0m3.468s0m0.256s

0m23.106s   0m3.627s0m0.263s
0m30.597s   0m3.639s0m0.241s
0m6.114s0m3.647s0m0.236s

First part is fop-0.20.5, second is fop-0.91.beta. Bot done on a 2GHz Athlon 
Gentoo Linux, Blackdown Java and approx. 300kByte FO-document. Tomorrow I'll 
send some better stats, even from a HP-UX multiprocessor machine, running 
native SUN JDK and documents  100pages. The stats above show no difference, 
due to less complexity of source document, [past your favorite geek-talk 
here]...

I use FOP for about 3 years and I'm totally excited 'bout the new release. 
Funny gadgets are working now, esp. page links with docbook indexterms and RTF 
(yes, some still worship Micros~1 tools to copy and paste tables from manuals 
and release notes. IE 5.0 on NT 4.0 can't do nothing wrong the right way).

- original Nachricht 

Betreff: Re: fop beta performance
Gesendet: Mo 20 Feb 2006 11:42:19 CET
Von: Jeremias Maerki[EMAIL PROTECTED]

 Find out for us! :-) I did some tests a few months ago and back then the
 new code was indeed a little faster. In the meantime, new features have
 found their way in and the situation may look differently. Note also,
 that there has been no performance optimization work in the layout
 engine, yet, like it was done for 0.20.5.
 
 On 20.02.2006 11:31:57 Jimmy Dixon wrote:
  Is the new FOP beta any faster than the previous release?
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

--- original Nachricht Ende 










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



RTF and table/column widths

2006-02-20 Thread b . ohnsorg
Hi there,

besides the stats my second mail and special offer. I really like that 
RTF-thingy and it's quite sophisticated documents. My RTF-XSLs were not that 
neat. I've hacked some workaround for the proportional widths coming from 
docbook transformations, but this is not really a good sollution.

So if you don't mind, I'd like to have a look at the sources and decide, 
whether I have enough time for adding the necessary bits and bytes or not. When 
it comes to java implementation I'm quite experienced, after a few years of 
professional software development (sdk, j2ee). (Now I'm part of the management, 
operating revision control systems, that sort of thing and I'd like to return 
to the classics.)


I think it's nothing more than looking for the source of the runtime exception, 
expand that code like the PDF export and there you go (something like 
document.getWidth()*node.getWidthPercentage(), basically). Hope there's enough 
documentation 'bout that and nobody out there being faster than me. I wrote 
some very basic RTF renderer half a year ago and had to cope with fancy tables, 
spannings and so on. Maybe there'll be some free border-collapse-give-away, if 
there's enough time *g*.

Thanks so far...

-

If I can't turn it off it's a bug.

Noch allein? 1 Million Singles warten auf ein Date!
Schnell Kontakt aufnehmen bei Deutschlands beliebtester Partnerboerse
http://singles.freenet.de/index.html?pid=11512


Re: RTF and table/column widths

2006-02-20 Thread Jeremias Maerki
Hey, we certainly don't mind if you look at the sources. On the contrary,
we encourage people to look at it and to send in patches that help
improve FOP. We're certainly reviewing the stuff that comes in. If you
need any help to get started, just ask. The code-/design-level
documentation may not be as extensive as you might wish sometimes, but
there are always people around you can ask.

On 20.02.2006 21:21:39 b.ohnsorg wrote:
 Hi there,
 
 besides the stats my second mail and special offer. I really like that
 RTF-thingy and it's quite sophisticated documents. My RTF-XSLs were not
 that neat. I've hacked some workaround for the proportional widths
 coming from docbook transformations, but this is not really a good
 sollution.
 
 So if you don't mind, I'd like to have a look at the sources and decide,
 whether I have enough time for adding the necessary bits and bytes or
 not. When it comes to java implementation I'm quite experienced, after a
 few years of professional software development (sdk, j2ee). (Now I'm
 part of the management, operating revision control systems, that sort of
 thing and I'd like to return to the classics.)
 
 I think it's nothing more than looking for the source of the runtime
 exception, expand that code like the PDF export and there you go
 (something like document.getWidth()*node.getWidthPercentage(), basically).
 Hope there's enough documentation 'bout that and nobody out there being
 faster than me. I wrote some very basic RTF renderer half a year ago and
 had to cope with fancy tables, spannings and so on. Maybe there'll be
 some free border-collapse-give-away, if there's enough time *g*.
 
 Thanks so far...


Jeremias Maerki


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



Re: Fop 0.91beta and fonts

2006-02-20 Thread Jeremias Maerki
Please send me a simple FO file showing the problem along with your
configuration file (but without the fonts) off-line to my mail address.
I'll try to reproduce the problem. As long as I can't reproduce it
it doesn't help to log a Bugzilla entry.

On 20.02.2006 22:18:58 Jason R Briggs wrote:
 Yes, generating PDF (sorry should've confirmed that before).  I can't 
 see anything out-of-place myself -- and I've gone through it a couple of 
 times.  Is this something I should be lodging in Bugzilla?
snip/


Jeremias Maerki


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



Re: Fop 0.91beta and fonts

2006-02-20 Thread Andreas L Delmelle

On Feb 20, 2006, at 21:10, Jason R Briggs wrote:

Hi People,

Just a sanity check...


  fonts
font metrics-url=6999e.xml kerning=yes embed- 
url=6999e.TTF
font-triplet name=ArialMaori style=normal  
weight=normal /

/font

font metrics-url=69ec6.xml kerning=yes embed- 
url=69ec6.TTF
font-triplet name=ArialMaoriBold style=normal  
weight=bold /

/font
  /fonts

...
I've checked out and built the latest trunk from subversion and  
tried again, but still get the same error.  I've also tried using  
an absolute url for the metrics-url attribute (e.g. something like  
metrics-url=file:///home/jason/mypath/to/6999e.xml) but that  
doesn't appear to help either.


Try doing the same for the embed-url. May be the cause of your  
trouble... I'm guessing right now, FOP goes looking for it in the  
wrong place.


HTH!

Cheers,

Andreas


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



Re: Fop 0.91beta and fonts

2006-02-20 Thread Jason R Briggs
Tried that just after I sent the original message.  No luck with both 
set, or either/or.



Andreas L Delmelle wrote:

On Feb 20, 2006, at 21:10, Jason R Briggs wrote:

Hi People,

Just a sanity check...



  fonts
font metrics-url=6999e.xml kerning=yes embed- 
url=6999e.TTF
font-triplet name=ArialMaori style=normal  
weight=normal /

/font

font metrics-url=69ec6.xml kerning=yes embed- 
url=69ec6.TTF
font-triplet name=ArialMaoriBold style=normal  
weight=bold /

/font
  /fonts


...

I've checked out and built the latest trunk from subversion and  tried 
again, but still get the same error.  I've also tried using  an 
absolute url for the metrics-url attribute (e.g. something like  
metrics-url=file:///home/jason/mypath/to/6999e.xml) but that  
doesn't appear to help either.



Try doing the same for the embed-url. May be the cause of your  
trouble... I'm guessing right now, FOP goes looking for it in the  wrong 
place.


HTH!

Cheers,

Andreas


-
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: Fop 0.91beta and fonts

2006-02-20 Thread Jeremias Maerki
That's why I asked for other error messages. I think if it can't find
the TTF file it tells you. That's why I think that FOP doesn't know
about the fonts at all. Remains the question whether the configuration
is really active. Jason, try messing up one of the URLs in the font
configuration. If nothing happens, then the config isn't loaded at all.
Grasping at straws :-)

On 20.02.2006 22:44:33 Andreas L Delmelle wrote:
 On Feb 20, 2006, at 21:10, Jason R Briggs wrote:
 
 Hi People,
 
 Just a sanity check...
 
fonts
  font metrics-url=6999e.xml kerning=yes embed- 
  url=6999e.TTF
  font-triplet name=ArialMaori style=normal  
  weight=normal /
  /font
 
  font metrics-url=69ec6.xml kerning=yes embed- 
  url=69ec6.TTF
  font-triplet name=ArialMaoriBold style=normal  
  weight=bold /
  /font
/fonts
 ...
  I've checked out and built the latest trunk from subversion and  
  tried again, but still get the same error.  I've also tried using  
  an absolute url for the metrics-url attribute (e.g. something like  
  metrics-url=file:///home/jason/mypath/to/6999e.xml) but that  
  doesn't appear to help either.
 
 Try doing the same for the embed-url. May be the cause of your  
 trouble... I'm guessing right now, FOP goes looking for it in the  
 wrong place.


Jeremias Maerki


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



Re: Fop 0.91beta and fonts

2006-02-20 Thread Jason R Briggs
Seems as if the font configuration isn't active then.  I set the url in 
the font configuration to:


file://blah/6999e.xml

and also tried a completed invalid filename, with no new error messages 
output.



Jeremias Maerki wrote:

That's why I asked for other error messages. I think if it can't find
the TTF file it tells you. That's why I think that FOP doesn't know
about the fonts at all. Remains the question whether the configuration
is really active. Jason, try messing up one of the URLs in the font
configuration. If nothing happens, then the config isn't loaded at all.
Grasping at straws :-)

On 20.02.2006 22:44:33 Andreas L Delmelle wrote:


On Feb 20, 2006, at 21:10, Jason R Briggs wrote:

Hi People,

Just a sanity check...


 fonts
   font metrics-url=6999e.xml kerning=yes embed- 
url=6999e.TTF
   font-triplet name=ArialMaori style=normal  
weight=normal /

   /font

   font metrics-url=69ec6.xml kerning=yes embed- 
url=69ec6.TTF
   font-triplet name=ArialMaoriBold style=normal  
weight=bold /

   /font
 /fonts


...

I've checked out and built the latest trunk from subversion and  
tried again, but still get the same error.  I've also tried using  
an absolute url for the metrics-url attribute (e.g. something like  
metrics-url=file:///home/jason/mypath/to/6999e.xml) but that  
doesn't appear to help either.


Try doing the same for the embed-url. May be the cause of your  
trouble... I'm guessing right now, FOP goes looking for it in the  
wrong place.




Jeremias Maerki


-
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: Fop 0.91beta and fonts

2006-02-20 Thread Jason R Briggs

Doh!!  Beginners stuff.

Should've seen that one myself.

Thanks very much Jeremias.

J

Jeremias Maerki wrote:

Problem solved. :-) You sent me your Java code and here's what I found:



public class Builder {

private FOUserAgent userAgent;

public Builder() throws Exception {
File f = new File(.);

DefaultConfigurationBuilder cfgBuilder = new 
DefaultConfigurationBuilder();
Configuration cfg = cfgBuilder.buildFromFile(new 
File(fop.xconf));
FOUserAgent userAgent = new FOUserAgent();



  ^^^

needs to be: this.userAgent = new FOUserAgent();




userAgent.setUserConfig(cfg);

}



You're setting the local variable instead of the instance variable of
the class. That's why the (right) user agent never get's the
configuration.


On 20.02.2006 23:06:20 Jason R Briggs wrote:

Seems as if the font configuration isn't active then.  I set the url in 
the font configuration to:


file://blah/6999e.xml

and also tried a completed invalid filename, with no new error messages 
output.



Jeremias Maerki wrote:


That's why I asked for other error messages. I think if it can't find
the TTF file it tells you. That's why I think that FOP doesn't know
about the fonts at all. Remains the question whether the configuration
is really active. Jason, try messing up one of the URLs in the font
configuration. If nothing happens, then the config isn't loaded at all.
Grasping at straws :-)

On 20.02.2006 22:44:33 Andreas L Delmelle wrote:



On Feb 20, 2006, at 21:10, Jason R Briggs wrote:

Hi People,

Just a sanity check...



fonts
  font metrics-url=6999e.xml kerning=yes embed- 
url=6999e.TTF
  font-triplet name=ArialMaori style=normal  
weight=normal /

  /font

  font metrics-url=69ec6.xml kerning=yes embed- 
url=69ec6.TTF
  font-triplet name=ArialMaoriBold style=normal  
weight=bold /

  /font
/fonts


...


I've checked out and built the latest trunk from subversion and  
tried again, but still get the same error.  I've also tried using  
an absolute url for the metrics-url attribute (e.g. something like  
metrics-url=file:///home/jason/mypath/to/6999e.xml) but that  
doesn't appear to help either.


Try doing the same for the embed-url. May be the cause of your  
trouble... I'm guessing right now, FOP goes looking for it in the  
wrong place.




Jeremias Maerki


-
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]





Jeremias Maerki


-
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 how to embed a font programatically

2006-02-20 Thread Karl Roberts
Hi,
Did you ever manage to do this?

I need to do something similar because my embedded FOP is running in a
Webapp and the font metric file and the TTF file are hidden inside the
WEB-INF directory and so the metric-url and embed-url in my fop-config
is no good (even if they were accessible via a URL I don't know the
hostname or context path until runtime)

What would be really nice is someway to pass the fontMetric and TTF file
to the Renderer as InputSource (or InputStream). This way I can get the
font files from the hidden WEB-INF dir using

InputStream fontmetric =
serve.servlet.getServletContext().getResourceAsStream(/WEB-INF/metric.x
ml);
InputStream embed =
serve.servlet.getServletContext().getResourceAsStream(/WEB-INF/font.TTF
); 
Renderer myRenderer = new PDFRenderer();
FontInfo myFontInfo = new FontInfo();

// method needed ...(ahem)
myFontInfo.addFont(FontName, FontStyle, FontWeight, fontmetric,
embed);
 
myRenderer.setupFontInfo(myFontInfo);
userAgent.setRendererOverride(myRenderer);

Am I on the right track? Has anyone done this (or better) and mind
sharing the code?

Cheers

Karl

On 2006-01-26 16:22:42 Jeremias Maerki wrote:
 Looking at the source code, you'd need to do the following:
 - Subclass the Renderer implementation (ex. PDFRenderer) so you gain
 access to the protected fontList member variable.
 - Fill the fontList variable much like
 FontSetup.buildFontListFromConfiguration() does. This code will need
to
 run before you start the rendering run or at least before
 PrintRenderer.setupFontInfo() is called.
 - Instantiate your subclassed Renderer yourself and set it on the
 FOUserAgent using setRendererOverride().

 Have fun!

 On 26.01.2006 16:59:17 Stefan Burkard wrote:
 hi fop-users
 
 i know i can use a custom font by building an xml-file with it's 
 kerning-values and configuring a font definition in the
user-config-file.
 
 but how can i include the font programatically? i don't like to have
a 
 user-config-file at all. i found examples to set the font-directory
or 
 base-directory programatically, but i didn't found an example for 
 configuring fonts directly in java.
 
 can anybody help me?
 thanks
 stefan


NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Bank or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or act 
in reliance on this e-mail or any attachments, and should destroy all copies of 
them. Macquarie Bank does not guarantee the integrity of any emails or any 
attached files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.


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



Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta version

2006-02-20 Thread Jeremias Maerki
Nitin Shrivastava does not appear to be on the list so I put the mail
address in the CC.

In addition to Manuel's reply I want to add something to the question
further down:

If you want to have an image appear in a box of a certain size, use this
pattern:

fo:external-graphic width=5cm height=4cm
content-width=scale-to-fit content-height=scale-to-fit src=/

On 20.02.2006 12:54:30 Manuel Mall wrote:
 The white space handling for linefeed-treatment=preserve is currently 
 not correct for fop trunk. Leading spaces are incorrectly deleted.
 
 Manuel
 
 On Monday 20 February 2006 19:17, [EMAIL PROTECTED] wrote:
  Regards,
  Nitin Shrivastava
  POLARIS SOFTWARE LAB Ltd.
  Indiana Business Center
  +91-22-56482255
  -
 
 
  LUCK is what happens when PREPARATION meets OPPORTUNITY
 
 
  - Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM
  -
 
nitin.shrivastava
 To:  Jeremias
  Maerki [EMAIL PROTECTED] 02/20/2006 03:31 cc: 
  [EMAIL PROTECTED], [EMAIL PROTECTED] PM   
 Subject: Help needed for allowing spaces in PDF O/P
  using fop-0.91beta version(Document link: nitin.shrivastava)
 
 
 
 
  Hi,
 
  With FOP  0.91 beta version I was able to overlapp the data over
  image. Now the problem I am facing is w.r.t the space in the XML file
  which is getting  ignored in PDF output .
 
  My XML data between tags is as shown below
 
  |
  |
  |---|
  |
  |  AA B   CC  DD
 
  EE  |
 
  | AA  B  40041
  |
  |0
  |
  |
  |
  |---|
 
  My XSL is
 
  fo:simple-page-master master-name=cover page-height=1090pt
  page-width=714.78pt margin-top=0cm margin-bottom=0cm
  margin-left=0cm margin-right=0cm
  fo:region-body margin-top=0cm margin-bottom=0cm
  margin-left=0in margin-right=0in/
  fo:region-after extent=0cm/
  /fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=cover 
  fo:flow flow-name=xsl-region-body 
  fo:block-container
  fo:block  font-family=monospace  linefeed-treatment=preserve
  white-space-treatment=preserve white-space-collapse=false 
  xsl:apply-templates/
  /fo:block
  /fo:block-container
  /fo:flow
 
  The PDF O/P that I get is
 
  |
  |
  |---|
  |
  |AA B   CC  DD
 
  EE|
 
  |AA  B 40041
  |
  |0
  |
  |
  |
  |---|
 
  Here the sapce inbetween the data A ,B is maintained in
  the output but the intial spaces are getting neglected which
  we need to display in the PDF O/P.
 
  Can you please suggest me where am I making the mistake / or I need
  to specify any addition property in the flow/block-container/or block
  level.
  Or any other workaround to maintain these initial spaces at every
  line as maintianed in the XML file.
 
  One more query the image which I am trying the display in the PDF
  output is not kaing the absolute size as maintained .The XSL for the
  image is as below
  xsl:template match=img
fo:block-container position=absolute
fo:block
fo:external-graphic  content-height=348%  src=[EMAIL PROTECTED]/
/fo:block
/fo:block-container
/xsl:template
 
  Here if I dont specify the content-height it take its own default
  value and displays the image with diminished size.Where as in FOP
  0.20.5 the command   fo:external-graphic   src=[EMAIL PROTECTED]/  used 
  to
  display the absoluete size of image ... Please suggest me what can I
  do to dispaly the abolute
  size as content-height=auto does not work in 0.91 beta version
 
 
 
 
 
  Regards,
  Nitin Shrivastava
  POLARIS SOFTWARE LAB Ltd.
  Indiana Business Center
  +91-22-56482255
 
 
 
 
 
 
Jeremias Maerki
[EMAIL PROTECTED] To: 
  [EMAIL PROTECTED] erki.ch cc:
 Subject: Re: Help
  needed !!! 02/10/2006 03:20
PM
 
 
 
 
 
 
  I thought you couldn't use a block-container approach. And as I told
  you before fo:float isn't implemented, yet. The latest version of
  Apache FOP is 0.91beta