AW: checkbox

2003-07-10 Thread Müller, Markus
Hi,

First, #x means character code in hexadecimal, correct.
Second, using Windows' charmap.exe you can browse your fonts.
In Wingdings the characters 0x70 and 0x78 show an unchecked / checked checkbox.

Markus


$ -Ursprüngliche Nachricht-
$ Von: Todtenhaupt, Susann 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Donnerstag, 10. Juli 2003 10:39
$ An: '[EMAIL PROTECTED]'
$ Cc: '[EMAIL PROTECTED]'
$ Betreff: AW: checkbox
$ 
$ 
$ Hello!
$ 
$ I've never before embedded special symbols in fo. Why do you 
$ write #x?
$ Does the x mean hexadecimal? I'm wondering because I've 
$ tried to find the
$ symbol by looking for a symbol from ZapfDingbats with 274F 
$ (hex) in my
$ window-system, but couldn't find it. Can you give more 
$ support, please? :-)
$ thanx in advance!!
$ 
$ suse
$ 
$ -Ursprüngliche Nachricht-
$ Von: Torsten Erler [mailto:[EMAIL PROTECTED] 
$ Gesendet: Tuesday, July 08, 2003 9:42 AM
$ An: [EMAIL PROTECTED]
$ Betreff: RE: checkbox
$ 
$ Hi,
$ 
$ either you use the (unchecked) checkbox from ZapfDingbats Font
$ 
$ fo:inline font-family=ZapfDingbats 
$ font-size=10pt#x274F;/fo:inline
$ 
$ or draw it by yourself (svg requires batik.jar) like that:
$ 
$ !-- checked checkbox (50% scaled down) --
$ fo:instream-foreign-object width=11pt height=11pt
$   svg:svg width=22 height=22 xml:space=preserve
$ svg:g transform=scale(.5) style=fill:none; stroke:black;
$ stroke-width:2
$   svg:rect x=0 y=2 fill=black width=20 height=20
$ stroke-width=1/
$   svg:rect x=2 y=0 fill=white width=20 height=20
$ stroke-width=1/
$   svg:line x1=6 y1=10 x2=12 y2=17/
$   svg:line x1=12 y1=17 x2=20 y2=3/
$ /svg:g
$   /svg:svg
$ /fo:instream-foreign-object
$ 
$ cu Torsten
$ 
$  -Original Message-
$  From: Todtenhaupt, Susann
$  [mailto:[EMAIL PROTECTED]
$  Sent: Dienstag, 8. Juli 2003 08:39
$  To: '[EMAIL PROTECTED]'
$  Subject: checkbox
$ 
$ 
$  Hi @ all!
$ 
$  How is it possible to create with xsl:fo checkboxes in a pdf-file?
$ 
$  Thanx in advance!
$ 
$ 
$  
$ -
$  To unsubscribe, e-mail: [EMAIL PROTECTED]
$  For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 

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



AW: font embedding problem (embed-file attribute)

2003-06-30 Thread Müller, Markus
Hi,

try to NOT omit the embed-file attribute, but setting ist value to an empty
string:

font
metrics-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/ARIALUNI.XML
kerning=yes embed-file=

Markus

$ -Ursprüngliche Nachricht-
$ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 30. Juni 2003 12:46
$ An: [EMAIL PROTECTED]
$ Betreff: font embedding problem (embed-file attribute)
$ 
$ 
$ Hello,
$ 
$ I'm using fop-0.20.4 and jdk 1.4.0. I'm embedding a True 
$ Type Font into my
$ documents. Thats works great. Here is a snippet from my 
$ userconfig.xml file:
$ 
$ font
$ metrics-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/AR
$ IALUNI.XML 
$kerning=yes 
$
$ embed-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/ARIA
$ LUNI.TTF
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=normal/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=normal/
$ /font
$ 
$ 
$ But if I remove the embed-file attribute I end up with an 
$ error. What is the
$ propper way to only reference the font?
$ 
$ 
$ This is my changed userconfig.xml file:
$ 
$ font
$ metrics-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/AR
$ IALUNI.XML 
$kerning=yes 
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=normal/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=normal/
$ /font
$ 
$ 
$ This is the error message I get:
$ 
$ [INFO] FOP 0.20.4
$ [INFO] building formatting object tree
$ [ERROR] Failed to read font metrics file
$ D:/Asfr/unchangedfopsrc/fop-0.20.4/conf
$ /ARIALUNI.XML : null
$ [INFO] [1]
$ [ERROR] unknown font ArialUnicodeMS,normal,normal so 
$ defaulted font to any
$ [ERROR] unknown font ArialUnicodeMS,normal,normal so 
$ defaulted font to any
$ [ERROR] unknown font ArialUnicodeMS,normal,normal so 
$ defaulted font to any
$ [INFO] [2]
$ 
$ 
$ 
$ Please note: I only changed the userconfig.xml. The 
$ font-metrics file is
$ still there.
$ 
$ 
$ -- 
$ Thanks for any help
$ 
$ Markus Schäffler
$ --
$ 
$ +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
$ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
$ 
$ 
$ -
$ 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]



AW: Performance Question

2003-05-02 Thread Müller, Markus
Hello Ryan,

you're writing about a stylesheet-cache. How did you implement it? Do you
use XSLTC or do you reuse the InputHandler object (according to the
documentation, it can be reused).

Markus

$ -Ursprüngliche Nachricht-
$ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 2. Mai 2003 14:16
$ An: [EMAIL PROTECTED]
$ Betreff: Re: Performance Question
$ 
$ 
$ 
$ 
$ Sorry, I should have included these details also:
$ 
$ Our PDFs are produced during a batch process, meaning the 
$ JVM is started
$ once and all PDFs are then created.  This, of course, means 
$ the JVM stays
$ warm and we can take full advantage of HotSpot compilation.
$ 
$ We also have implemented a style sheet cache, so once the 
$ style sheet has
$ been used once the compiled version is reused over and over, which
$ definitely helps performance.
$ 
$ All of our XML/XSLT interfaces use JAXP, meaning we can plug 
$ in different
$ XML/XSLT processors.  We currently use Saxon 6.5.2 because it's the
$ fastest, but it appears the recently-released Xalan 2.5 has 
$ closed the gap
$ considerably.
$ 
$ Even though the computer has 1 GB RAM available, we only 
$ allocate a max
$ heap size of 512 MB.
$ 
$ 
$ 
$ 
$  
$   
$   [EMAIL PROTECTED]  
$   
$   ul.com   To:   
$ [EMAIL PROTECTED]   
$cc:   
$   
$   05/02/2003 06:58 Subject:  Re: 
$ Performance Question  
$   AM 
$   
$   Please respond to  
$   
$   fop-user   
$   
$  
$   
$  
$   
$ 
$ 
$ 
$ 
$ 
$ I have FOP running on a Pentium 4 2.54 GHz computer with 1 
$ GB memory and
$ Win2000.  I use Saxon 6.5.2 as the XML parser and XSLT 
$ engine.  It also
$ uses custom XMLReaders to produce SAX events which are 
$ processed by FOP.
$ 
$ We usually see a PDF production rate of 8-9 pages per second, and we
$ sometimes produce PDFs that are 1500+ pages.  The only real 
$ problem with
$ FOP is some of the XSL style sheet tricks necessary to 
$ insert intermittent
$ page-sequences so FOP doesn't run out of memory.
$ 
$ Hope this helps.
$ 
$ 
$ 
$ 
$   Christian
$ 
$   Neuroth To:
$ [EMAIL PROTECTED]
$   [EMAIL PROTECTED]cc:
$ 
$Subject:  Performance
$ Question
$   04/30/2003 03:30
$ 
$   AM
$ 
$   Please respond to
$ 
$   fop-user
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ In my company, we are currently using StreamServe to produce 
$ documents
$ (basically invoices).
$ 50.000 docs/day, 3.000 prints, 47.000 pdf.
$ The final document averages 3 pages (there are some 
$ exceptions with up to
$ 1000 pages - very rare, however), a document containing only 
$ one graphic
$ (logo).
$ 
$ I am puzzling whether I can shift from StreamServer to FOP. 
$ Are there any
$ people out there who apply FOP to achieve a similar volume? Is the
$ performance ok?
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 

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



AW: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2

2003-04-23 Thread Müller, Markus
Hi,

the bug (see below) described in this thread of messages 
still exists in 0.20.5rc2. So I tried with the current 
CVS version, thinking the bug is fixed there. Then the
following error occurs:

Exception in thread main java.lang.NoSuchFieldError:
java.util.Collections: field EMPTY_MAP not found at
org.apache.fop.layout.FontState.getKerning(FontState.java:142)

The error occurs in both cases, specifying a separate font metrics file and
omitting the whole userconfig.xml.

So is there a chance to get a FOP version without that bug and without other
severe bugs??



Markus


$ -Ursprüngliche Nachricht-
$ J.Pietschmann [EMAIL PROTECTED] on 04/18/2003 08:12:40
$  =first-including-carryover retrieve-boundary=page 
$ retrieve-class-name
$  =marker__manifest_id/
$ 
$ Ouch, I misread the message. You triggered a bug in 0.20.5rc2. This
$ happens if retrieve-boundary=page but no matching marker could
$ be retrieved from the page. 

$ [...]

$ The problem with the exception is fixed, but you'll still get
$ nothing instead of the desired marker. There is no good workaround
$ for this problem. You can try to use retrieve-boundary=document.
$ 


$ J.Pietschmann

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



AW: AW: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2

2003-04-23 Thread Müller, Markus
Yes, there went something wrong! I will try to find the correct sources...

Markus

$ -Ursprüngliche Nachricht-
$ Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 23. April 2003 13:12
$ An: [EMAIL PROTECTED]
$ Betreff: Re: AW: Illegal 'retrieve-boundary' value error 
$ after upgrading to 0.20.5rc2
$ 
$ 
$ In the latest maintenance branch sources access to the field 
$ EMPTY_MAP
$ is at line 197, not in line 142 as you said. Are you sure 
$ you've got the
$ right sources? The $Id$ of my FontState.java here is:
$ $Id: FontState.java,v 1.14.2.8 2003/03/02 16:55:15 pietsch Exp $
$ 
$ 
$ On 23.04.2003 12:54:18 Müller, Markus wrote:
$  the bug (see below) described in this thread of messages 
$  still exists in 0.20.5rc2. So I tried with the current 
$  CVS version, thinking the bug is fixed there. Then the
$  following error occurs:
$  
$  Exception in thread main java.lang.NoSuchFieldError:
$  java.util.Collections: field EMPTY_MAP not found at
$  org.apache.fop.layout.FontState.getKerning(FontState.java:142)
$  
$  The error occurs in both cases, specifying a separate font 
$ metrics file and
$  omitting the whole userconfig.xml.
$  
$  So is there a chance to get a FOP version without that bug 
$ and without other
$  severe bugs??
$ 
$ 
$ 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]



Problem with fo:marker and keep-with-next in tables

2003-04-22 Thread Müller, Markus
Hi *,

We want to list some items on an invoice using a table. It is possible, that
not all items fit into a single page. So we allow following pages, but then
we have to print a carry over at the end and the beginning of each page. The
computation is not the problem, we do this by adding appropriate attributes
to the items' corresponding xml-elements. The carry over values then are
placed into markers. Additionaly, always 3 items (= fo:table-rows) are set
to keep together using keep-with-next=always. Doing so, retrieving the
markers fails (first-starting and last-ending). FOP returns a marker NEAR
the correct marker, sometimes even the correct one. This feature seams to be
nondeterministic.

Jochen Unger asked the same question a few weeks ago, but there were no
answers in the mailing list. 

Is there a solution for this problem???

BTW, it seems that the markers' is_first / is_last attributes are set BEFORE
the keep-xxx directives are processed.

Markus  

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



keep-with-next not working in tables bigger than two pages

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

according to the compliance document, keep-with-next is supported on table
rows. The sample file keep.fo also demonstrates keep-with-previous working.
But extending that sample in a way, that a table does not fit on two pages,
the keep-directives do not work any more. Making separate tables fitting on
max. two pages solves this problem.

Is this a known bug? Is there a workaround (NOT splitting tables)?

Markus

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



AW: Manual line breaks

2003-04-14 Thread Müller, Markus
Hi Matthias,

you can find several XSL:FO samples using a tag like br/ to specify line
breaks, using the template
...
 xsl:template match=br
   fo:block/
 /xsl:template
...
For detailed information see
http://www.biglist.com/lists/xsl-list/archives/200202/msg01290.html

MM

$ -Ursprüngliche Nachricht-
$ Von: Matthias Brunner [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 14. April 2003 10:37
$ An: [EMAIL PROTECTED]
$ Betreff: Manual line breaks
$ 
$ 
$ Hello!
$ 
$ In a perfect XML world content is always separatable from 
$ presentation. Unfortunately, there are cases (at least in 
$ publishing) when this is simply not possible. For example, we need 
$ to provide the possibility to insert manual breaks into text 
$ (especially titles).
$ 
$ Web research tells me that whitespace-treatment=preserve is a 
$ solution to this, yet unimplemented by FOP.
$ The only workaround I have found so far is to sorround the position 
$ at which the line should be broken with non-break spaces.
$ (Example: this#xA0;is#xA0;a#xA0;test !-- intended break position 
$ -- this#xA0;is#xA0;a#xA0;test.)
$ 
$ Has anyone found a better solution to this?
$ 
$ Cheers,
$ Matthias Brunner
$ 
$ -
$ 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]



AW: Chinese character in bold

2003-04-14 Thread Müller, Markus
Hi,

AFAIK you have to generate different XML font metrics files for different
font styles / weigths, so your userconfig.xml should look like this:

font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
 font-triplet name=MingLiU style=normal weight=normal/
/font
font metrics-file=D:\fop\fop-0.20.4\conf\MingLiUBold.xml
embed-file=[dont know] kerning=yes
 font-triplet name=MingLiU style=normal weight=bold/
/font
and so on.

Markus

$ -Ursprüngliche Nachricht-
$ Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 14. April 2003 11:32
$ An: '[EMAIL PROTECTED]'
$ Betreff: Chinese character in bold
$ 
$ 
$ Hi all,
$ 
$ I have problem showing chinese characters in bold.  I have 
$ generated the
$ MingLiU.xml file with the TTFReader utility from the 
$ mingliu.ttc file and
$ here's what I put inside my userconfig.xml
$ 
$  font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
$ embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
$ font-triplet name=MingLiU style=normal weight=normal/
$ font-triplet name=MingLiU style=normal weight=bold/
$ font-triplet name=MingLiU style=italic weight=normal/
$ font-triplet name=MingLiU style=italic weight=bold/
$  /font
$ 
$ The resulting PDF file can shows Chinese character when the 
$ font-family is
$ set to MingLiU.  However, when I set the weight=bold, the 
$ character is
$ still show as normal.
$ 
$ Is there anything that I'm doing wrong or missing out?
$ 
$ Regards,
$ Fergus Lee
$ 

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



AW: Chinese character in bold

2003-04-14 Thread Müller, Markus
Hi,

I think you generate the font metrics file in the right way. MS Word can
display fonts in bold, even when there is no special font file available,
that's right. Sorry, I don't know, if there is a solution in FOP to create a
bold font xml without the appropriate font file. 

== Does anybody else in this mailing list know, how to do that ???

The FOP website does not tell anything about this...

MM

$ -Ursprüngliche Nachricht-
$ Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 14. April 2003 11:49
$ An: '[EMAIL PROTECTED]'
$ Betreff: RE: Chinese character in bold
$ 
$ 
$ Hi Markus,
$ 
$ Thanks for your timely response.
$ Unlike other fonts which have different files for different 
$ weight/style
$ (like arialb.ttf, ariali.ttf for Arial), I can only find one file
$ mingliu.ttc for the MingLiU font.  Furthermore, MS Word is 
$ able to show
$ MingLiU in bold.
$ 
$ Is there any special parameters that I should use in 
$ generating the metrics
$ file for bold?  The following is what I've done:
$ 
$ java -cp build/fop.jar org.apache.fop.fonts.apps.TTFReader -ttcname
$ MingLiU C:\winnt\fonts\mingliu.ttc MingLiU.xml
$ 
$ Fergus
$ 
$ -Original Message-
$ From: Muller, Markus [mailto:[EMAIL PROTECTED]
$ Sent: Monday, April 14, 2003 5:38 PM
$ To: [EMAIL PROTECTED]
$ Subject: AW: Chinese character in bold
$ 
$ 
$ Hi,
$ 
$ AFAIK you have to generate different XML font metrics files 
$ for different
$ font styles / weigths, so your userconfig.xml should look like this:
$ 
$ font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
$ embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
$  font-triplet name=MingLiU style=normal weight=normal/
$ /font
$ font metrics-file=D:\fop\fop-0.20.4\conf\MingLiUBold.xml
$ embed-file=[dont know] kerning=yes
$  font-triplet name=MingLiU style=normal weight=bold/
$ /font
$ and so on.
$ 
$ Markus
$ 
$ $ -Urspr?gliche Nachricht-
$ $ Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$ $ Gesendet: Montag, 14. April 2003 11:32
$ $ An: '[EMAIL PROTECTED]'
$ $ Betreff: Chinese character in bold
$ $ 
$ $ 
$ $ Hi all,
$ $ 
$ $ I have problem showing chinese characters in bold.  I have 
$ $ generated the
$ $ MingLiU.xml file with the TTFReader utility from the 
$ $ mingliu.ttc file and
$ $ here's what I put inside my userconfig.xml
$ $ 
$ $  font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
$ $ embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
$ $ font-triplet name=MingLiU style=normal weight=normal/
$ $ font-triplet name=MingLiU style=normal weight=bold/
$ $ font-triplet name=MingLiU style=italic weight=normal/
$ $ font-triplet name=MingLiU style=italic weight=bold/
$ $  /font
$ $ 
$ $ The resulting PDF file can shows Chinese character when the 
$ $ font-family is
$ $ set to MingLiU.  However, when I set the weight=bold, the 
$ $ character is
$ $ still show as normal.
$ $ 
$ $ Is there anything that I'm doing wrong or missing out?
$ $ 
$ $ Regards,
$ $ Fergus Lee
$ $ 
$ 
$ -
$ 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]



AW: [ERROR] -2

2003-04-11 Thread Müller, Markus
You should put your static text inside fo:block/fo:block tags.

Perhaps this helps,
Markus


$ -Ursprüngliche Nachricht-
$ Von: Todtenhaupt, Susann 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 11. April 2003 12:46
$ An: '[EMAIL PROTECTED]'
$ Betreff: AW: [ERROR] -2
$ 
$ 
$ I get an ArrayOutOfBoundsException. But I can't retrace my 
$ fault... As
$ attachment I'm sending my fo-file. Anybody is kindly asked 
$ to have a look.
$ :-)
$ 
$ Million thanx!
$ suse
$ 
$ -Ursprüngliche Nachricht-
$ Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 11. April 2003 12:16
$ An: [EMAIL PROTECTED]
$ Betreff: Re: [ERROR] -2
$ 
$ I don't know. Run FOP on the command-line with the -d 
$ (debug) option.
$ You'll get a stacktrace that will be more informative.
$ 
$ On 11.04.2003 11:44:06 Todtenhaupt, Susann wrote:
$  While processing with fop I get the error [ERROR] -2. 
$ What does it mean?
$ 
$ 
$ 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]



AW: Page end

2003-04-10 Thread Müller, Markus
Title: Nachricht



Hi,

you 
can set a marker for that purpose. The value of the marker is the item count, so 
each appearance of the item increments the count (=sets a new marker, each of 
the same type). For displaying the item count, retrieve the first and last 
marker in the (current) page, compute the difference and you have, what you are 
looking for.

Hope, 
this helps and is not too abstract,
Markus

  
  -Ursprüngliche Nachricht-Von: Prabhat Kumar (IT) 
  [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 
  2003 16:02An: [EMAIL PROTECTED]Betreff: Page 
  end
  Hello, 
  Is there a way by which I can figure out the end of 
  a page. I am generating a PDF file from an XML and need to print out item 
  totals at the bottom of a page. For instance if there are 10 items on the 
  first and 7 on the next. The first page should print out "Number of items on 
  this page = 10"..
  TIA 
  Prabhat 


Specifying exact table/row height

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

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

Thanks all in advance,
Markus

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



AW: Specifying exact table/row height

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

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

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



AW: xpath question

2003-03-31 Thread Müller, Markus
sum expects a node set, neither count(..) nor an addition return this.
Try replacing + by ,, perhaps that works:
xsl:when test=13=sum(count(./elections),count(./dependents))
It could also be possible that the less than sign makes trouble; replace
=13 by gt;12

Markus

$ -Ursprüngliche Nachricht-
$ Von: Partridge, Michael [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 31. März 2003 17:15
$ An: [EMAIL PROTECTED]
$ Betreff: RE: xpath question
$ 
$ 
$ Thanks for the speedy reply, but the XSL processor built into XML Spy
$ replies:
$ 
$ [ERROR] Can not convert #NUMBER to a NodeList!
$ 
$ Mike
$ 
$ -Original Message-
$ From: [EMAIL PROTECTED] 
$ [mailto:[EMAIL PROTECTED]
$ 
$ Sent: Monday, March 31, 2003 9:11 AM
$ To: [EMAIL PROTECTED]
$ Subject: Re: xpath question
$ 
$ 
$ 
$ try
$ 
$ xsl:when test=13=sum(count(./elections)+count(./dependents))
$ 
$ and it should work
$ 
$ 
$ greets
$ 
$ 
$ Jochen Maes
$ ICT Development
$ 
$ 
$ KBC Securities (kbcsecurities.com)
$ Havenlaan 12 Avenue du Port SIF 8683
$ B-1080 Brussels
$ Belgium
$ 
$  Tel:  +32 2 429 96 81  
$ 
$  GSM:  +32 496 57 90 99 
$ 
$  E-mail :  [EMAIL PROTECTED] 
$ 
$ 
$ 
$ 
$ 
$ This message and any attachments hereto are for the named 
$ person's use
$ only. It may contain confidential, proprietary or legally privileged
$ information. You may not, directly or indirectly, use, disclose,
$ distribute, print, or copy any part of this message if you 
$ are not the
$ intended recipient. If you have received this e-mail message without
$ being
$ the intended recipient, please notify KBC Securities 
$ promptly and delete
$ this e-mail. Any views expressed in this message are those of the
$ individual sender, except where the message states otherwise and the
$ sender
$ is authorised to state them to be the views of KBC Securities. KBC
$ Securities reserves the right to monitor all e-mail communications
$ through
$ its networks and any messages addressed to, received or sent by KBC
$ Securities or its employees are deemed to be professional in 
$ nature. The
$ sender or recipient of any messages to or of KBC Securities 
$ agrees that
$ those may be read by other employees of KBC Securities than 
$ the stated
$ recipient or sender in order to ensure the continuity of work-related
$ activities and allow supervision thereof. KBC Securities 
$ does not accept
$ liability for the correct and complete transmission of the 
$ information,
$ nor
$ for any delay or interruption of the transmission, nor for damages
$ arising
$ from the use of, or reliance on, the information.
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 

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



AW: Right aligned text flutters (continued)

2003-03-28 Thread Müller, Markus
Hi,

There's no difference between kerning on and kerning off.
But when drawing a solid (white) border around each table cell,
the right alignment gets much better...

Thanks all,
Markus

$ -Ursprüngliche Nachricht-
$ Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 28. März 2003 07:41
$ An: [EMAIL PROTECTED]
$ Betreff: Re: Right aligned text flutters (continued)
$ 
$ 
$ Try switching off kerning if it's enabled.
$ 
$ On 27.03.2003 22:39:44 Müller, Markus wrote:
$  The problem still exists in FOP 0.20.5rc. But it is not a 
$ general problem of
$  FOP, the fluttering only occurs when using our corporate 
$ font. The font
$  metrics file is generated as described in the FOP 
$ manual. What can be
$  wrong 
$ 
$ 
$ 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]



Right aligned text flutters

2003-03-27 Thread Müller, Markus
Hi foopers,

Using FOP 0.20.4rc (ok, that's not the current version ;-)) I generate an
invoice having a table with invoice items like this:

INVOICE

Books   2000,00
Mice50,00
Couch  600,00
Quietscheentchen   5,00
...

Since we live in the 21th century, we do not use fixed fonts :-) 
The right most column has the attribute xxxalign=end. When displaying the
document, the amounts are right aligned, but not really exactly. The right
border flutters in the range of about 1/2 mm. How can I stop this
fluttering???

Thanks for help in advance,
Markus

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



Right aligned text flutters (continued)

2003-03-27 Thread Müller, Markus
Hi again,

The problem still exists in FOP 0.20.5rc. But it is not a general problem of
FOP, the fluttering only occurs when using our corporate font. The font
metrics file is generated as described in the FOP manual. What can be
wrong 

Any suggestions welcome,
Markus

$ -Ursprüngliche Nachricht-
$ Von: Müller, Markus 
$ Gesendet: Donnerstag, 27. März 2003 21:13
$ An: [EMAIL PROTECTED]
$ Betreff: Right aligned text flutters
$ 
$ 
$ Hi foopers,
$ 
$ Using FOP 0.20.4rc (ok, that's not the current version ;-)) 
$ I generate an
$ invoice having a table with invoice items like this:
$ 
$ INVOICE
$ 
$ Books2000,00
$ Mice50,00
$ Couch  600,00
$ Quietscheentchen5,00
$ ...
$ 
$ Since we live in the 21th century, we do not use fixed fonts :-) 
$ The right most column has the attribute xxxalign=end. When 
$ displaying the
$ document, the amounts are right aligned, but not really 
$ exactly. The right
$ border flutters in the range of about 1/2 mm. How can I stop this
$ fluttering???
$ 
$ Thanks for help in advance,
$ Markus
$ 
$ -
$ 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]



AW: messages in fop

2003-03-20 Thread Müller, Markus
Title: Nachricht



Hi,

you can use the following to 
make your transformation verbose:
xsl:message 
terminate="no"My Messagexsl:value-of 
select="foo"/[eom]/xsl:message
The messages appear at the 
console output of fop.

Markus

  
  -Ursprüngliche Nachricht-Von: Myriam Delperier 
  [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 20. März 
  2003 09:49An: [EMAIL PROTECTED]Betreff: messages 
  in fop
  hi
  i'd like to know if there's a way to get messages when 
  transforming fo to pdf with fop.
  something like an element fo:messagexsl:value-of 
  select=""//fo:message
  As i've got problems with some arrays it would help me to 
  know on which table my problem is for example
  thanks


AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Müller, Markus
Hi,

You get this message when you have the wrong encoding in your XML file
?xml version=1.0 encoding=wrongone?. The XML parser then gets a wrong
input, not the required ?xml

Markus

$ -Ursprüngliche Nachricht-
$ Von: Dipl.-Oec. Harald Meyer [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 19. März 2003 15:39
$ An: [EMAIL PROTECTED]
$ Betreff: AW: Upgrade 0.20.3 to 0.20.5rc
$ 
$ 
$  I think you have avalon-framework-4.0 in your classpath. 
$ This file has
$  changed.
$  It is now called avalon-framework-cvs... and was part of my source
$  distribution.
$  Serach for such a file and change the classpath. This 
$ should fix your
$  problem.
$ 
$ 
$ Thanks, but now I get another error and I need some help ... ;-)
$ 
$ C:\fopjava -cp
$ build\fop.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\x
$ alan-2.4.1.jar;
$ lib\batik.jar;lib\avalon-framework-cvs-20020806.jar;lib\jimi-
$ 1.0.jar;lib\jai
$ _core.jar;lib\jai_codec.jar org.apache.fop.apps.Fop -d -xml
$ C:\Inetpub\honeywell\quotation\xml\200443.xml -xsl C:\Inetpub\honeywe
$ ll\quotation\xml2pdf.xsl 
$ C:\Inetpub\honeywell\quotation\pdf\200443.pdf
$ [DEBUG] Input mode:
$ [DEBUG] xslt transformation
$ [DEBUG] xml input file: C:\Inetpub\honeywell\quotation\xml\200443.xml
$ [DEBUG] xslt stylesheet: C:\Inetpub\honeywell\quotation\xml2pdf.xsl
$ [DEBUG] Output mode:
$ [DEBUG] pdf
$ [DEBUG] output file: C:\Inetpub\honeywell\quotation\pdf\200443.pdf
$ [DEBUG] OPTIONS
$ [DEBUG] no user configuration file is used [default]
$ [DEBUG] debug mode on
$ [DEBUG] dump configuration
$ [DEBUG] quiet mode on
$ [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
$ [INFO] base directory: file:/C:/Inetpub/honeywell/quotation/xml/
$ [INFO] FOP 0.20.5rc
$ [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
$ [ERROR] Content is not allowed in prolog.
$ org.apache.fop.apps.FOPException: Content is not allowed in prolog.
$ at org.apache.fop.apps.Driver.render(Driver.java:462)
$ at
$ org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$ .java:69)
$ at org.apache.fop.apps.Fop.main(Fop.java:19)
$ 
$ -
$ 
$ org.xml.sax.SAXParseException: Content is not allowed in prolog.
$ at 
$ org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
$ at 
$ org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
$ at org.apache.fop.apps.Driver.render(Driver.java:457)
$ at
$ org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$ .java:69)
$ at org.apache.fop.apps.Fop.main(Fop.java:19)
$ 
$ -
$ 
$ org.xml.sax.SAXParseException: Content is not allowed in prolog.
$ at 
$ org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
$ at 
$ org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
$ at org.apache.fop.apps.Driver.render(Driver.java:457)
$ at
$ org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$ .java:69)
$ at org.apache.fop.apps.Fop.main(Fop.java:19)
$ 
$ 
$ 
$ -
$ 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]



AW: Embedding fonts!

2003-03-17 Thread Müller, Markus
Sorry, if this is a duplicate mail, but it seems the original one was
dropped anywhere out there ...

Hi,

How did you create your font metrics file? Did you use the option -enc
ansi and set the font name explicitly?
What system are you using?

Markus

$ -Ursprüngliche Nachricht-
$ Von: Uwe Klosa [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 17. März 2003 13:16
$ An: [EMAIL PROTECTED]
$ Betreff: SV: Embedding fonts!
$ 
$ 
$ No, that is not correct, after what my tests with word and 
$ acrobat showed.
$ If I embed Times New Roman the name in the PDF file is TimesNewRoman.
$ Perhaps should I have a look at the source and try out something.
$ 
$ Mvh Uwe
$ 
$ -Ursprungligt meddelande-
$ Från: Dennis Myrén [mailto:[EMAIL PROTECTED] 
$ Skickat: den 17 mars 2003 12:24
$ Till: [EMAIL PROTECTED]; Klosa Uwe
$ Ämne: RE: Embedding fonts!
$ 
$ I think Acrobat itself stores embedded fonts in this way.
$ The document should already be fully editable in Acrobat.
$ 
$ MVH Dennis
$ 
$ 
$ 
$ -Original Message-
$ From: Uwe Klosa [mailto:[EMAIL PROTECTED] 
$ Sent: 17. mars 2003 12:10
$ To: [EMAIL PROTECTED]
$ Subject: SV: Embedding fonts!
$ 
$ But how to create pdf files that are editable with Acrobat then?
$ 
$ Regards,
$ Uwe
$ 
$ -Ursprungligt meddelande-
$ Från: Dennis Myrén [mailto:[EMAIL PROTECTED] 
$ Skickat: den 17 mars 2003 11:57
$ Till: [EMAIL PROTECTED]; Klosa Uwe
$ Ämne: RE: Embedding fonts!
$ 
$ That is the correct behavior.
$ I am not sure, but I think these six leading characters are 
$ placed in front
$ of the font name to ensure the embedded font will be used in 
$ the document,
$ and not the font installed on the machine with the same name.
$ 
$ Regards,
$ Dennis
$ 
$ -Original Message-
$ From: Uwe Klosa [mailto:[EMAIL PROTECTED] 
$ Sent: 17. mars 2003 11:33
$ To: fop-dev@xml.apache.org; [EMAIL PROTECTED]
$ Subject: Embedding fonts!
$ 
$ Hi,
$ 
$ I'm using embedded fonts in fop. That is working fine. But 
$ if I want to edit
$ the resulting pdf files with Acrobat, the font names aren't 
$ correct in the
$ file. I'm getting 1Eec24TimesNewRoman or 2Ef1d7TimesNewRoman 
$ where it should
$ be TimesNewRoman. Why creates fop theses font names? Has 
$ anyone tried do
$ edit the resulting pdf files?
$ 
$ Regards Uwe
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 

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



AW: FOP in production app (clienside)

2003-03-12 Thread Müller, Markus
Hi,

You have to consider the additional JARs used by FOP (Xalan, Avalon, ...).
IMHO you get somewhat around 5 MB of JARs. It will take a long time for your
users to download so much stuff (at least the first time they use the
applet). This was the reason for us to have FOP on the server and send PDF
from there to the client.

Markus

$ -Ursprüngliche Nachricht-
$ Von: Van Camp, Kenneth (Exchange) [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 12. März 2003 14:56
$ An: '[EMAIL PROTECTED]'
$ Betreff: RE: FOP in production app
$ 
$ 
$ I saw a number of posted responses to David's query but it 
$ seems like most
$ respondents are using FOP on the server side.  Is there much 
$ experience in
$ using FOP on the client side, say inside of an applet?  I am 
$ interested in
$ streaming XSLT to the user's browser and having an applet 
$ transform it into
$ a PDF, then invoke Acrobat reader to render it on the desktop.
$ 
$ Is this a common application?  It is related to this thread 
$ in that I am
$ concerned about production support in such an environment.
$ 
$ Is there a better way?  Thanks.
$ 
$ Ken Van Camp [EMAIL PROTECTED]
$ 
$ -Original Message-
$ From: Holk, David A [mailto:[EMAIL PROTECTED] 
$ Sent: Monday, March 10, 2003 12:37 PM
$ To: '[EMAIL PROTECTED]'
$ Subject: FOP in production app
$ 
$ 
$ Is anyone using FOP in a production app? 
$ 
$ Should I expect a commercial product like XEP or 
$ XSLFormatter to be more
$ robust in a production application?
$ 
$ Any experiences/comments appreciated.
$ 
$ David Holk
$ 
$ 
$ LEGAL NOTICE
$ Unless expressly stated otherwise, this message is 
$ confidential and may be
$ privileged. It is intended for the addressee(s) only. Access 
$ to this E-mail
$ by anyone else is unauthorized. If you are not an addressee, 
$ any disclosure
$ or copying of the contents of this E-mail or any action 
$ taken (or not taken)
$ in reliance on it is unauthorized and may be unlawful. If 
$ you are not an
$ addressee, please inform the sender immediately.
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ 
$ *
$ **
$ Bear Stearns is not responsible for any recommendation, 
$ solicitation, 
$ offer or agreement or any information about any transaction, 
$ customer 
$ account or account activity contained in this communication.
$ *
$ **
$ 
$ 
$ -
$ 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]



AW: analogy to table frame=void

2003-02-28 Thread Müller, Markus
Hi,

you could use the border properties like in the following 
snippet posted earlier in this list. For more information 
about these properties have a look at 
http://www.w3.org/TR/xsl/slice7.html#common-border-padding-and-background-pr
operties

-- snip.. --
fo:block
  fo:table table-layout=fixed
fo:table-column column-width=150mm/
fo:table-body
  fo:table-row line-height=2pt  
  fo:table-cell 
border-bottom-style=solid 
border-bottom-color=black 
border-bottom-width=0.5pt
fo:block 
  font-size=10pt 
  color=white_
/fo:block
  /fo:table-cell
/fo:table-row
fo:table-row line-height=10pt   
 fo:table-cell 
   border-top-style=solid 
   border-top-color=black 
   border-top-width=0.5pt
   fo:block font-size=10pt color=white_
   /fo:block  
 /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
   /fo:block
-- ..snip --

Greez,
Markus


# -Ursprüngliche Nachricht-
# Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 28. Februar 2003 07:38
# An: [EMAIL PROTECTED]
# Betreff: analogy to table frame=void
# 
# I have simple table with 2 cells, 1 row . I want a simple 
# vertical line
# between them , no other borders.
# 
# Does exist some analogy to HTML's table  frame=void   ?  
# Or any other
# way ?
# 
# Thanks.
# 
# 
# 
# 
# -
# 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]



AW: Pages counting.

2003-02-14 Thread Müller, Markus
Have a look at FOP.FAQ at http://xml.apache.org/fop/faq.html (FO) How do I
print the total number of pages, like in page 1 of 12.
Hope this is what you mean.

Markus



# -Ursprüngliche Nachricht-
# Von: [EMAIL PROTECTED] 
# [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 14. Februar 2003 16:07
# An: [EMAIL PROTECTED]
# Betreff: Pages counting.
# 
# Hi people!
# I have this time a simple question. How can I know the 
# numbers of pages that
# FOP will render ? 
# I need this because I have to write the information on the 
# bottom of the
# page(with something like :
#  
# Page fo:page-number/ , xsl:value-of select=$nbpages /
#  
# Thanks
# Frédéric
# 
# -
# 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]



TTFReader and different font styles

2003-01-29 Thread Müller, Markus
Hi all,

I noticed a strange behaviour when using TTFReader to generate some font
metrics files for a corporate font. The font is available in normal, italic,
bold and italic+bold style. Since we run our application mainly on the
Windows platform, I use the -enc ansi option in the commandline. TTFReader
generates one XML-file for each font style based on the different TTF-files.
That's absolutely correct. BUT when using these, AcrobatReader does use the
*normal* style font for all possible styles. Manipulating the font metrics
file solves the problem, by appending ,Bold resp ,Italic ... to the
font's display name. Is there a way that TTFReader generates this appendix
to the name? Or is the font file a little corrupt?

Thanks in advance,
Markus

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



AW: TTFReader and different font styles

2003-01-29 Thread Müller, Markus
Nope, the userconfig.xml is correct. For each font style there is a single
entry, setting the correct triple. As I have written, the problem is solved
when we manually modify the font metrics files _without_ chaning the
userconfig.xml, of course.

# -Ursprüngliche Nachricht-
# Von: Jeremias Maerki [mailto:[EMAIL PROTECTED]
# Gesendet am: Mittwoch, 29. Januar 2003 14:17
# An: [EMAIL PROTECTED]
# Betreff: Re: TTFReader and different font styles
# 
# You've probably simply got an error in your userconfig.xml. 
# You need to
# make sure that you've got an entry for each style. See the sample
# userconfig.xml that comes with FOP. There's an example for the Arial
# font that does exactly that. No need to edit the generated 
# XML files IMO.
# 
# On 29.01.2003 14:00:54 Müller, Markus wrote:
#  I noticed a strange behaviour when using TTFReader to 
# generate some font
#  metrics files for a corporate font. The font is available 
# in normal, italic,
#  bold and italic+bold style. Since we run our application 
# mainly on the
#  Windows platform, I use the -enc ansi option in the 
# commandline. TTFReader
#  generates one XML-file for each font style based on the 
# different TTF-files.
#  That's absolutely correct. BUT when using these, 
# AcrobatReader does use the
#  *normal* style font for all possible styles. Manipulating 
# the font metrics
#  file solves the problem, by appending ,Bold resp 
# ,Italic ... to the
#  font's display name. Is there a way that TTFReader 
# generates this appendix
#  to the name? Or is the font file a little corrupt?
# 
# 
# 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]



PDF 7-bit format supported by FOP?

2003-01-23 Thread Müller, Markus
Hi there,

is it possible to generate PDFs with FOP that use the 7-bit encoding, which
is described in the PDF specification?

Thanks,
Markus

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



AW: PDF Printing

2003-01-20 Thread Müller, Markus
Why not using AcrobatReader with the commandline option for printing?

Markus

# -Ursprüngliche Nachricht-
# Von: Mirko Sertic [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 20. Januar 2003 10:43
# An: Fop-User
# Betreff: PDF  Printing
# 
# Hello Folks!
# 
# I'm trying to print a generated pdf. I knew i could use the 
# PrintRenderer
# from the PrintStarter class.
# The only problem is that my pdf is not fopped in real - time. It was
# generated some time ago and was
# stored in out application pdf database for later use. So the 
# problem is how
# can i print that pdf?
# 
# Cheers
# 
# Mirko Sertic
# 
# 
# 
# -
# 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]



AW: AW: PDF Printing

2003-01-20 Thread Müller, Markus
On my RedHat AcrobatReader runs pretty good!

# -Ursprüngliche Nachricht-
# Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 20. Januar 2003 11:22
# An: [EMAIL PROTECTED]
# Betreff: Re: AW: PDF  Printing
# 
# Mirko Sertic wrote:
# 
#  It should work on my linux server.
# Does Acrobat for linux exist?
# 
# -- 
# Oleg Tkachenko
# eXperanto team
# Multiconn Technologies, Israel
# 
# 
# -
# 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]



AW: ERROR Divided by zero

2003-01-13 Thread Müller, Markus
I just have a guess, but is this correct: 
[snip] -xml evalu.html ???

I remember having the same problem when exchanging the xml file for the xsl
file.

Greets,
Markus


# -Ursprüngliche Nachricht-
# Von: Laura Ameijide Garcia [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 13. Januar 2003 11:53
# An: [EMAIL PROTECTED]
# Betreff: Re: ERROR Divided by zero
# 
# If I execute it in the comand thats the result:  It's for my version?
# 
# .Laura
# 
# C:\fop\fop-0.20.3java -cp
# build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;
# lib\avalon-framework 4.0.jar;lib\logkit1.0.jar;lib\jimi-1.0.jar
# org.apache.fop.apps.Fop -d -xml evalu.html -xsl evalu.xsl evalu.pdf
# 
# [DEBUG]: Input mode:
# [DEBUG]: xslt transformation
# [DEBUG]: xml input file: evalu.html
# [DEBUG]: xslt stylesheet: gastronofo.xsl
# [DEBUG]: Output mode:
# [DEBUG]: pdf
# [DEBUG]: output file: evalu.pdf
# [DEBUG]: OPTIONS
# [DEBUG]: no user configuration file is used [default]
# [DEBUG]: debug mode on
# [DEBUG]: dump configuration
# [DEBUG]: quiet mode on
# [DEBUG]: base directory: file:/C:/fop/fop-0.20.3/
# [INFO]: FOP 0.20.3
# [DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
# [INFO]: building formatting object tree
# [DEBUG]: setting up fonts
# [INFO]: Parsing of document complete, stopping renderer
# [DEBUG]: Initial heap size: 978Kb
# [DEBUG]: Current heap size: 801Kb
# [DEBUG]: Total memory used: -177Kb
# [DEBUG]:   Memory use is indicative; no GC was performed
# [DEBUG]:   These figures should not be used comparatively
# [DEBUG]: Total time used: 250ms
# [DEBUG]: Pages rendererd: 0
# [INFO]: Parsing of document complete, stopping renderer
# [ERROR]: / by zero
# org.apache.fop.apps.FOPException: / by zero
# at org.apache.fop.apps.Driver.render(Driver.java:486)
# at
# org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
# at org.apache.fop.apps.Fop.main(Fop.java:19)
# 
# -
# 
# javax.xml.transform.TransformerException: / by zero
# at
# org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:137)
# at org.apache.fop.apps.Driver.render(Driver.java:481)
# at
# org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
# at org.apache.fop.apps.Fop.main(Fop.java:19)
# 
# -
# 
# javax.xml.transform.TransformerException: / by zero
# at
# org.apache.xalan.transformer.TransformerImpl.transformNode(Tra
# nsformerImpl.j
# ava:1212)
# at
# org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
# pl.java:2894)
# at java.lang.Thread.run(Thread.java:479)
# -
# java.lang.ArithmeticException: / by zero
# at
# org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer
# .java:171)
# at
# org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:205)
# at
# org.apache.xalan.transformer.ResultTreeHandler.endDocument(Res
# ultTreeHandler
# .java:180)
# at
# org.apache.xalan.transformer.TransformerImpl.transformNode(Tra
# nsformerImpl.j
# ava:1194)
# at
# org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
# pl.java:2894)
# at java.lang.Thread.run(Thread.java:479)
# 
# 
# 
# 
# **
# **
# ***
# - Original Message -
# From: Jeremias Maerki [EMAIL PROTECTED]
# To: [EMAIL PROTECTED]
# Sent: Monday, January 13, 2003 10:46 AM
# Subject: Re: ERROR Divided by zero
# 
# 
#  This indicates an arithmetic error like: 13 / 0 = illegal. 
# You know that
#  from school.
# 
#  Somewhere in FOP something wanted to divide some value by zero. The
#  question now is: where and why?
# 
#  The first thing you can do is calling FOP from the command line and
#  using the -d parameter which enables more debug output. 
# That way, we
#  will get a stacktrace which helps you/us find the location 
# of the error.
#  If the information you will get then doesn't help you, send another
#  email and copy the whole output from FOP and attach the 
# xhtml and your
#  xsl so we can reproduce the error.
# 
#  What FOP version do you use?
# 
#  On 13.01.2003 10:06:26 Laura Ameijide Garcia wrote:
#   Hello,
#   I'm beginner in this area. I'm trying to convert a simple 
# html using a
# xsl  but the fop always says me:
#   [ERROR]: / by zero.
#  
#   Somebody can help me? What's the meaning of this error?
# 
# 
#  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]
# 

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



AW: FOP on Mainframe

2002-11-22 Thread Müller, Markus
Hi,

try to omit the encoding parameter of the ?xml..? tag OR set the correct
encoding. When you transferred the file from Windows to OS/390, ensure that
the right character conversion in ftp is set.

Markus

# -Ursprüngliche Nachricht-
# Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 22. November 2002 15:43
# An: [EMAIL PROTECTED]
# Betreff: FOP on Mainframe
# 
# 
# Hello,
# 
# I'm trying to run FOP 0.20.4 on an IBM OS/390 mainframe, 
# running under Unix
# System Services.  I also use Saxon as the XML parser and XSL 
# transformer.
# I get this error:
# 
# Error at byte 3 of
# file:/u/tsryana/LMR/StandardRpts/xsl/StandardReportsPDF.xsl:
#   Error reported by XML parser: invalid UTF-8 byte (check the XML
# declaration) (
# code: 0xa7)
# 
# 
# I also tried Xerces and Xalan, and got this message fragment 
# (the whole
# message is too long to cut and paste):
# 
# 
# ÝFatal Error¨ StandardReportsPDF.xsl:1:39: Content is not allowed in
# prolog.
# javax.xml.transform.TransformerConfigurationException:
# javax.xml.transform.Trans
# formerException: org.xml.sax.SAXParseException: Content is 
# not allowed in
# prolog
# ..
# at
# org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
# ormerFactoryImpl.java:995)
# at
# com.stpaul.xsl.StylesheetCache.getTemplates(StylesheetCache.java:79)
# at com.stpaul.pdf.PDFGenerator.renderPDF(PDFGenerator.java:72)
# at
# com.stpaul.totalclient.lmrstdrpts.control.StandardRptBatchController.
# renderPDF(StandardRptBatchController.java:448)
# at
# com.stpaul.totalclient.lmrstdrpts.control.StandardRptBatchController.
# createPdfForResult(StandardRptBatchController.java:95)
# at
# com.stpaul.totalclient.lmrstdrpts.control.StandardRptBatchController.
# run(StandardRptBatchController.java:504)
# at java.lang.Thread.run(Thread.java:512)
# -
# 
# Here's the start of the XML declaration of the style sheet:
# 
# ?xml version=1.0 encoding=UTF-8?
# 
# 
# So both XML/XSL parsers are complaining about style sheet.  
# The run the
# same exact process on a Windows 2000 machine and it works flawlessly.
# 
# I remember that when 0.20.4 came out, one of the changes was 
# that it now
# works on EBCIDC machines.  But, I still get this error.
# 
# Does anybody know if this is an FOP problem or some sort of 
# problem with
# the XML/XSL processors, or with the encoding of the style sheet on the
# mainframe?  Ideas for fixes?
# 
# Any help is appreciated.
# 
# Thanks!!
# 
# 
# 
# 
# 
# -
# 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]



AW: Viewing PDF without AcrobatReader or FOP??

2002-11-18 Thread Müller, Markus
Hi Oleg,

when viewing PDFs with embedded fonts, you will see differences between the
platform specific and the Java version of AcrobatReader. The Java-version
does some ugly character spacing, embedded fonts are not displayed properly.
That's really not a *good* thing. And the fact that it has not been updated
since 1998 shows, that adobe is not interested in providing a real solution
for java.

Markus

# -Ursprüngliche Nachricht-
# Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
# Gesendet am: Samstag, 16. November 2002 18:41
# An: [EMAIL PROTECTED]
# Betreff: Re: Viewing PDF without AcrobatReader or FOP??
# 
# Müller, Markus wrote:
# 
#  we're just testing FOP to generate PDF on a host, then 
# sending the PDF
#  document in a way we don't know yet to some clients. The 
# clients should be
#  able to view (and perhaps to print) the document. Is this 
# possible without
#  AcrobatReader? The AcroRead for Java is not really a good thing,
# btw, what's wrong with it? I've been told it's ok despite the 
# fact that 
# it was not updated long time.
# 
#   and using
#  FOP only to display a file isn't a solution, too (since 
# it's too large). Has
#  anybody a little hint?
# If wanna high-quality pdf preview, I believe using Acrobat is 
# the only 
# way. Surely client must have Acrobat Reader installed, but 
# it's free and 
# absence of it can be detected in javascript.
# 
# -- 
# Oleg Tkachenko
# eXperanto team
# Multiconn Technologies, Israel
# 


Viewing PDF without AcrobatReader or FOP??

2002-11-15 Thread Müller, Markus
Hi there,

we're just testing FOP to generate PDF on a host, then sending the PDF
document in a way we don't know yet to some clients. The clients should be
able to view (and perhaps to print) the document. Is this possible without
AcrobatReader? The AcroRead for Java is not really a good thing, and using
FOP only to display a file isn't a solution, too (since it's too large). Has
anybody a little hint?

Markus


AW: FOP TrueType

2002-11-15 Thread Müller, Markus
Yes, ant is the tool you need. I think, it's described in the documentation.
MM

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 13:37
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# How can I build my C:\fop-0.20.4\build\fop.jar with the new 
# Font? Using ant? 
# 
# I don't have a clue!
# 
# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten 
# Gesendet: Freitag, 15. November 2002 13:31
# An: [EMAIL PROTECTED]
# Cc: Wyonacms-Users (E-Mail)
# Betreff: AW: FOP TrueType
# 
# 
# Hi Markus, 
# I found this page (combined with what u have written):
# http://xml.apache.org/fop/fonts.html
# 
# I did (there is a error if you use the original 
# [...C:\myfonts\arial.ttf C:\myfonts\arial.ttf arial.xml]):
# java -cp 
# build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xa
# lan-2.3.1.jar;lib\batik.jar 
# org.apache.fop.fonts.apps.TTFReader C:\myfonts\arial.ttf 
# C:\myfonts\arial.xml 
# 
# Now I have:
# TTF Reader v1.1.1
# 
# Reading C:\myfonts\arial.ttf...
# 
# Number of glyphs in font: 1296
# Creating xml font file...
# 
# Creating CID encoded metrics
# Writing xml font file C:\myfonts\arial.xml...
# 
# This font contains no embedding license restrictions
# 
# Then I did:
# Register the fonts within FOP
# Edit conf/userconfig.xml and add entries for the font if the 
# fonts section, ie:
#  font metrics-file=arial.xml kerning=yes embed-file=arial.ttf
# font-triplet name=Arial style=normal weight=normal/
# font-triplet name=ArialMT style=normal weight=normal/
#  /font
# 
# BUT I am using FOP as servlet (Tomcat and cocoon). I now have 
# to compile a fop.jar with my userconfig.xml, or not?
# Then I have to replace the old fop.jar 
# @tomcat\webapps\cocoon\WEB-INF\lib. And then I have Arial 
# within fo, or not
# 
# Thanks for the help
# 
# -Ursprüngliche Nachricht-
# Von: Müller, Markus [mailto:[EMAIL PROTECTED]
# Gesendet: Freitag, 15. November 2002 12:55
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# 
# Hi,
# 
# you have to specify the class-libaries needed by fop. You can 
# do this in
# your commandline like this:
# 
# java -cp [path and name of jar-file] 
# org.apache.fop.fonts.apps.TTFReader
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# The JAR files you need I don't know exactly, but fop.jar will 
# be one of
# them. Take a look at fop.bat, from there you can copy the -cp 
#  part.
# 
# Hope, this will help you
# 
# Markus
# 
# # -Ursprüngliche Nachricht-
# # Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# # Gesendet am: Freitag, 15. November 2002 12:10
# # An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# # Betreff: FOP TrueType
# # 
# # Hello group,
# # 
# # I would like to do the following:
# # http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# # ocs/examples/advanced/cid-fonts.pdf
# # 
# # I want to add Arial to my reports I do that:
# # java org.apache.fop.fonts.apps.TTFReader 
# # c:\WINNT\Fonts\arial.ttf arial.xml
# # 
# # I have that:
# # Exception in thread main java.lang.NoClassDefFoundError: 
# # org/apache/fop/fonts/
# # apps/TTFReader
# # 
# # I am the absolute newbie in java!
# # 
# # Thanks for the help!
# # 
# #  Mit freundlichem Gruss,
# #  
# #  Thorsten Scherler
# #  Marketing / Telefonmarketing
# #  
# #  Weidmüller GmbH  Co.
# #  P.O. Box 2807
# #  33058 Paderborn
# #  Tel.:+ 49 - 5252-960-350
# #  Fax:+ 49 - 5252-960-116
# #  eMail: [EMAIL PROTECTED]
# #  http://www.weidmueller.de
# #  
# #  
# # 
# 


How to determine page position of current and last table-row?

2002-11-15 Thread Müller, Markus
Hi,
is it possible to determine if the current table row is the first one a new
page? 
Yours, Markus


Problem reading userconfig.xml on UNIX

2002-11-11 Thread Müller, Markus
Hi there,

I have trouble using the userconfig.xml on UNIX. FOP generates these
messages:
-- some lines omitted --
[DEBUG] OPTIONS
[DEBUG] user configuration file: /u/BSK27/fop0.20.4/conf/userconfig.xml
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] reading user configuration file
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[ERROR] Could not load user configuration file
/u/BSK27/fop0.20.4/conf/userconfig.xml - error: Content is not allowed in
prolog.
[ERROR] using default values
-- snip --

Who has problems with my config file? SAX2? FOP? What's wrong? The
userconfig.xml looks like this (and works fine on Windows):

-- begin --
!--!DOCTYPE configuration SYSTEM config.dtd--
!-- 
 this file contains templates which allow an user easy 
 configuration of Fop. Actually normally you don't need this
configuration 
 file, but if you need to change configuration, you should
 always use this file and *not* config.xml. 
 Usage: java org.apache.fop.apps.Fop -c userconfig.xml -fo fo-file -pdf
pdf-file
--
-- ... --

Suggestions welcome...

Markus