invalid XML character

2002-12-17 Thread Mehmet zdemir
Hi All,

I create a text file with FOP in my program and send it to the printer.
But I want to use the printer's properties that controls the page's
format functions. For ex : ctrl+O compresses the page horizontally.
So I want to write the ctrl+O (\u0015) at the beginning of the text file.
But after create the FOP file, FOP can not render the specified character.
Error message is ;

org.apache.fop.apps.FOPException: An invalid XML character (Unicode: 0x15)
was found in the element content of the document.

Is it interesting with FOP version?
I can't understand. How can I solve this problem?

Thanks in advance.

Regards

Mehmet zdemir
Software Engineer


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



Exception using xsl:define-constant

2002-12-17 Thread Joannes Capitanio




Dear,

I'd like to use xsl constant definition into a fop 
code... here a piece...

xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"

!-- constant --xsl:define-constant 
name="images-dir" value="c:/idea-2_6/fop/images"/

xsl:template 
match="/"fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"

fo:layout-master-setfo:simple-page-master 
master-name="first"page-height="29.7cm"page-width="24cm"margin-top="0.5cm"margin-bottom="0.5cm"margin-left="1cm"margin-right="1cm"fo:region-body 
margin-top="2.5cm"/fo:region-before 
extent="4cm"/fo:region-after 
extent="5.5cm"//fo:simple-page-master

the compiler response was:
FOP exception org.apache.fop.apps.FOPException: 
javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: 
javax.xml.transform.TransformerException: xsl:define-constant is not allowed in 
this position in the stylesheet!

could someone help me?

thanks in advance

joannes


Fop and external-graphic SVG problem

2002-12-17 Thread Eric Prevost

I am trying to integrate an SVG file with embedded text and when i try to
use it in FOP

I am working on W2K SP1, JDK 1.3, FOP 0.20.4rc ,Batik 1.1.1 or Batik
1.5

fop produce This result  :

[INFO] FOP 0.20.4rc
[INFO] building formatting object tree
[INFO] [1]
Exception in thread main java.lang.NoSuchMethodError
at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown
Source)
at org.apache.fop.image.analyser.SVGReader.verifySignature(Unknown
Source)
at org.apache.fop.image.analyser.ImageReaderFactory.Make(Unknown
Source)
at org.apache.fop.image.FopImageFactory.Make(Unknown Source)
at org.apache.fop.fo.flow.ExternalGraphic.layout(Unknown Source)
at org.apache.fop.fo.flow.Block.layout(Unknown Source)
at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:559)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:853)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:643)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2978)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:918)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
at org.apache.fop.apps.Driver.render(Unknown Source)
at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
at org.apache.fop.apps.Fop.main(Unknown Source)

XSL-FO
?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  !-- defines page layout --
  fo:layout-master-set
!-- layout for the first page --
fo:simple-page-master master-name=only
  page-height=297mm
  page-width=210mm
  margin-top=0mm
  margin-bottom=0mm
  margin-left=0mm
  margin-right=0mm
  fo:region-body
margin-top=10mm margin-bottom=10mm
column-count=1 column-gap=0.25in/
  fo:region-before extent=10mm/
  fo:region-after extent=10mm/
/fo:simple-page-master
  /fo:layout-master-set
  !-- actual layout --
  fo:page-sequence master-reference=only
fo:static-content flow-name=xsl-region-before
  fo:blockEric Prevost Demo/fo:block
  /fo:static-content
  fo:static-content flow-name=xsl-region-after
  fo:blockPage fo:page-number//fo:page-number-citation
ref-id=Terminator//fo:block
  /fo:static-content
fo:flow flow-name=xsl-region-body
  !-- Block 0 --
fo:block
fo:external-graphic src='testfont001.svg'/
/fo:block
fo:block id=Terminator/fo:block
/fo:flow
  /fo:page-sequence
/fo:root




SVG file :
?xml version=1.0 standalone=no?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 20001102//EN
http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd;
svg width=210.0mm height=297.0mm
  viewBox=0 0 2381 3368 preserveAspectRatio=xMinYMin kerning=0
xml:space=preserve
  xmlns=http://www.w3.org/2000/svg;
  xmlns:xlink=http://www.w3.org/1999/xlink;
  xmlns:svgmaker=http://www.svgmaker.com/svgns;
svgmaker:init width=210.0mm height=297.0mm viewBox=0 0 2381 3368
view=one2one
  crop=none cropWidth=193.0mm cropHeight=292.4mm cropBox=0 1 2188
3315/
titleMicrosoft Word - AD-1600.doc/title
desc
  Generated by SVGmaker Version 1.10.2A31.32
  Evaluation Version
  DEC-16-2002, 08:06
/desc

style type=text/css![CDATA[
path {fill-rule:nonzero; stroke-linecap:round; stroke-linejoin:round}
rect {stroke-linejoin:miter}
text.t1 {font-family:'Svg Arial';font-size:40;fill:#00}
text.t2 {font-family:'Svg Arial';font-size:24;fill:#00}
text.t3 {font-family:'Svg Times New Roman Bold';font-size:72;fill:
#00;font-weight:700}
text.t4 {font-family:'Svg Times New Roman Bold';font-size:46;fill:
#00;font-weight:700}

Which TIFF format is used in batik? How can I get TIFF Type 1?

2002-12-17 Thread Leonid Kleiner




Hi, all.

I try to transform XML using FOP to one of the following formats:

- TIFF Type 1

- TIFF Type 2

- TIFF Type 3

- TIFF Type 4

- TIFF PackBits

Which TIFF format is used in batik?

How can I get one of thepreviously listedformats?

Any ideas?






Best regards,
Leonid Kleiner


Re: Fop and external-graphic SVG problem

2002-12-17 Thread Keiron Liddle
On Tue, 2002-12-17 at 10:46, Eric Prevost wrote:
 I am trying to integrate an SVG file with embedded text and when i try to
 use it in FOP
 
 I am working on W2K SP1, JDK 1.3, FOP 0.20.4rc ,Batik 1.1.1 or Batik
 1.5
 
 fop produce This result  :

You must use the batik that comes with fop.



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



Align tables

2002-12-17 Thread Miguel Angel Medina Lopez
Hi all:

I'm newbie in FOP. I want to align a table at right of the page but I can't.
I follow several examples from the list and other resources that should
centered the tables (to modify it after), but the examples doesn't work. How
can I align the table?

Thank you in advanced

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España




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



Antwort: Which TIFF format is used in batik? How can I get TIFF Type 1?

2002-12-17 Thread reto . blunschi

Hi Leonid,

I am using the special renderer from Oleg to produce the TIFFs. You can
find it at

http://www.tkachenko.com/fop/tiffrenderer.html

It produces several of the formats you asked for and works nicely. The only
problem I have is that I cannot change the resolution, it defaults to 72
dpi, which is not enough for my application.

cheers,
Reto

___

CSS Versicherung
Reto Blunschi EXTERNE
Rösslimattstrasse 40
CH-6002 Luzern
Telefon  ++41 (0)41 369 1236
Telefax  ++41 (0)41 369 1212
[EMAIL PROTECTED]
www.css.ch




Leonid Kleiner [EMAIL PROTECTED] on 17.12.2002 11:01:20

Bitte antworten an [EMAIL PROTECTED]

An:  [EMAIL PROTECTED]
Kopie:

Thema:   Which TIFF format is used in batik? How can I get TIFF Type 1?

Hi, all.

I try to transform XML using FOP to one of the following formats:
- TIFF Type 1
- TIFF Type 2
- TIFF Type 3
- TIFF Type 4
- TIFF PackBits

Which TIFF format is used in batik?

How can I get one of the previously listed formats?

Any ideas?


Best regards,
Leonid Kleiner







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



Re: multiple sequence how-to??

2002-12-17 Thread Fabrizio Tringali
FOPException: page-sequence must be child of root, not fo:flow

Any other ideas or I have to change other lines ??

thanks


- Original Message -
From: Oleg Tkachenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 15, 2002 12:23 PM
Subject: Re: multiple sequence how-to??


 Fabrizio Tringali wrote:
  According to http://xml.apache.org/fop/faq.html#faq-N1011A Use multiple
  page sequences I have to span across multiple sequences my flow.
 
  Can anyone show me a simple example to include in a xsl file to
implement
  multiple sequences ??

 Follow this pattern:

 xsl:template match=chapter
 fo:page-sequence.
 xsl:apply-templates/
 /fo:page-sequence
 /xsl:template

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



Re: Exception using xsl:define-constant

2002-12-17 Thread Oleg Tkachenko
Joannes Capitanio wrote:
xsl:define-constant name=images-dir value=c:/idea-2_6/fop/images/
Wow! xsl:define-constant instruction was removed from xslt back in 1998, 
sounds like your xslt manual is a litle bit obsolete.
Use
xsl:variable name=images-dir select=c:/idea-2_6/fop/images/

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: multiple sequence how-to??

2002-12-17 Thread Oleg Tkachenko
Fabrizio Tringali wrote:
FOPException: page-sequence must be child of root, not fo:flow
Any other ideas or I have to change other lines ??
The same idea, but apply templates to chapters not from within fo:flow, but 
from within fo:root, something like this:

xsl:template match=/
fo:root
xsl:call-temaplte name=layout-builder/
xsl:apply-temapltes select=chapter/
/fo:root
/xsl:temaplte
xsl:template match=chapter
fo:page-sequence ...
fo:flow ...
fo:blockxsl:value select=@title//fo:block
xsl:apply-temapltes/
/fo:flow
/fo:page-sequence
/xsl:chapter
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: invalid XML character

2002-12-17 Thread Oleg Tkachenko
Mehmet zdemir wrote:
I create a text file with FOP in my program and send it to the printer.
But I want to use the printer's properties that controls the page's
format functions. For ex : ctrl+O compresses the page horizontally.
So I want to write the ctrl+O (\u0015) at the beginning of the text file.
But after create the FOP file, FOP can not render the specified character.
Error message is ;
org.apache.fop.apps.FOPException: An invalid XML character (Unicode: 0x15)
was found in the element content of the document.
Control characters like 0x15 is not allowed in xml (well, at least in xml 
1.0). If you want to get some new specific behaviour from TXTRenderer you can 
extend it as usual java class. Then provide it to FOP by 
driver.setRenderer(new MyTXTRenderer());

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Align tables

2002-12-17 Thread Oleg Tkachenko
Miguel Angel Medina Lopez wrote:
I'm newbie in FOP. I want to align a table at right of the page but I can't.
I follow several examples from the list and other resources that should
centered the tables (to modify it after), but the examples doesn't work. How
can I align the table?
At the moment probably the only way to center or to right table in FOP is 
blind table approach, have you tried it?

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Which TIFF format is used in batik? How can I get TIFF Type 1?

2002-12-17 Thread Oleg Tkachenko
Leonid Kleiner wrote:
I try to transform XML using FOP to one of the following formats:
- TIFF Type 1
- TIFF Type 2
- TIFF Type 3
- TIFF Type 4
- TIFF PackBits
 
Which TIFF format is used in batik?
 
How can I get one of the previously listed formats?
Am I right, that you want tiff image at FOP output, instead of pdf?
FOP doesn't support tiff as output format (see 
http://xml.apache.org/fop/output.html). As workaround you can either use my 
TIFFRenderer (see Reto's answer) or convert pdf or ps to tiff using ImageMagic 
tool.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Align tables

2002-12-17 Thread Miguel Angel Medina Lopez
Hi Oleg:

First of all thank you for your response. Before the right align I tried to
center the table using the next code:

fo:table
  fo:table-column column-width=16cm/
  fo:table-body
  fo:table-row height=23.7cm
  fo:table-cell display-align=center
  fo:block
fo:table
!-- Here the table I want to align --
/fo:table
  /fo:block
  /fo:table-cell
  /fo:table-row
  /fo:table-body
/fo:table
/xsl:template

That you see I render a table with the same width of the page, but this code
doesn't work. What is the blid aproach to align the table right, with an
absolute position? I thought about that, but I'd like to build the PDF in a
structurated form. Can you show me an example of that approach?

Thank you

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España



- Original Message -
From: Oleg Tkachenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 1:00 PM
Subject: Re: Align tables


 Miguel Angel Medina Lopez wrote:

  I'm newbie in FOP. I want to align a table at right of the page but I
can't.
  I follow several examples from the list and other resources that should
  centered the tables (to modify it after), but the examples doesn't work.
How
  can I align the table?
 At the moment probably the only way to center or to right table in FOP is
 blind table approach, have you tried it?

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



Re: Antwort: Which TIFF format is used in batik? How can I get TIFF Type 1?

2002-12-17 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I am using the special renderer from Oleg to produce the TIFFs. You can
find it at
http://www.tkachenko.com/fop/tiffrenderer.html
It produces several of the formats you asked for and works nicely. The only
problem I have is that I cannot change the resolution, it defaults to 72
dpi, which is not enough for my application.
I'm afraid that's FOP's restriction at the moment.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Different borders in PDF

2002-12-17 Thread Jiri_Nejedly

I have on my XSLs simple a header (stored in one *.ent file)  which
consists of simple table (report name, date)

fo:block space-before.optimum=0cm font-family=Arial hyphenate=true
language=cs
fo:table width=100% border-top-width=0.5pt border-top-style
=solid border-bottom-width=0.5pt
 border-bottom-style=solid
  fo:table-column/
 fo:table-column/
 fo:table-body
fo:table-row height=30pt
 fo:table-cell display-align=center
   fo:block text-align=left font-size=15pt  font-family
=Arial font-weight=bold
   xsl:value-of select=REPORT/Header/Name/
   /fo:block
 /fo:table-cell
 fo:table-cell display-align=center
   fo:block text-align=right font-size=8pt font-family
=Arial
   xsl:value-of select=REPORT/Header/Date/
   /fo:block
 /fo:table-cell
   /fo:table-row
 /fo:table-body
  /fo:table
  /fo:block


On result PDF is clearly visible, that bottom border line is much thicker
( 2 or 3 times) than top border line. Why ?
(I still use version 0.20.3).



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



Fop 0.20.5rc and external-graphic SVG problem

2002-12-17 Thread Eric Prevost
I am trying to integrate an SVG file with embedded text and when i try to
use it in FOP

I am working on W2K SP1, JDK 1.3

With FOP 0.20.5rc the result is :
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5rc
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[ERROR] Could not load external SVG: null
[ERROR] Error while creating area : No ImageReader for this type of image
(file:/Temp/testfont001.svg)
[INFO] Parsing of document complete, stopping renderer

If i use FOP 0.20.4 with same files the result is 5000 lines of java error.

XSL-FO
?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  !-- defines page layout --
  fo:layout-master-set
!-- layout for the first page --
fo:simple-page-master master-name=only
  page-height=297mm
  page-width=210mm
  margin-top=0mm
  margin-bottom=0mm
  margin-left=0mm
  margin-right=0mm
  fo:region-body
margin-top=10mm margin-bottom=10mm
column-count=1 column-gap=0.25in/
  fo:region-before extent=10mm/
  fo:region-after extent=10mm/
/fo:simple-page-master
  /fo:layout-master-set
  !-- actual layout --
  fo:page-sequence master-reference=only
fo:static-content flow-name=xsl-region-before
  fo:blockEric Prevost Demo/fo:block
  /fo:static-content
  fo:static-content flow-name=xsl-region-after
  fo:blockPage fo:page-number//fo:page-number-citation
ref-id=Terminator//fo:block
  /fo:static-content
fo:flow flow-name=xsl-region-body
  !-- Block 0 --
fo:block
fo:external-graphic src='file:/Temp/testfont001.svg'/
/fo:block
fo:block id=Terminator/fo:block
/fo:flow
  /fo:page-sequence
/fo:root




SVG file :
?xml version=1.0 standalone=no?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 20001102//EN
http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd;
svg width=210.0mm height=297.0mm
  viewBox=0 0 2381 3368 preserveAspectRatio=xMinYMin kerning=0
xml:space=preserve
  xmlns=http://www.w3.org/2000/svg;
  xmlns:xlink=http://www.w3.org/1999/xlink;
  xmlns:svgmaker=http://www.svgmaker.com/svgns;
svgmaker:init width=210.0mm height=297.0mm viewBox=0 0 2381 3368
view=one2one
  crop=none cropWidth=193.0mm cropHeight=292.4mm cropBox=0 1 2188
3315/
titleMicrosoft Word - AD-1600.doc/title
desc
  Generated by SVGmaker Version 1.10.2A31.32
  Evaluation Version
  DEC-16-2002, 08:06
/desc

style type=text/css![CDATA[
path {fill-rule:nonzero; stroke-linecap:round; stroke-linejoin:round}
rect {stroke-linejoin:miter}
text.t1 {font-family:'Svg Arial';font-size:40;fill:#00}
text.t2 {font-family:'Svg Arial';font-size:24;fill:#00}
text.t3 {font-family:'Svg Times New Roman Bold';font-size:72;fill:
#00;font-weight:700}
text.t4 {font-family:'Svg Times New Roman Bold';font-size:46;fill:
#00;font-weight:700}
text.t5 {font-family:'Svg Times New Roman';font-size:44;fill:#00}
text.t6 {font-family:'Svg Times New Roman Bold';font-size:56;fill:
#00;font-weight:700}
text.t7 {font-family:'Svg Times New Roman';font-size:48;fill:#00}
text.t8 {font-family:'Svg Times New Roman Bold';font-size:48;fill:
#00;font-weight:700}
text.t9 {font-family:'Svg Times New Roman Bold';font-size:44;fill:
#00;font-weight:700}
text.t10 {font-family:'Svg Times New Roman';font-size:40;fill:#00}
text.t11 {font-family:'Svg Times New Roman Italic';font-size:32;fill:
#00;font-style:italic}
]]/style
defs
font horiz-adv-x=904
 font-face font-family=Svg Arial units-per-em=2048 panose-1=2 11 6 4
2 2 2 2 2 4 ascent=1854 descent=434 alphabetic=0/
 missing-glyph horiz-adv-x=1536 d=M 256,0 l 0,1280 1024,0 0,-1280
-1024,0 z m 32,32 l 960,0 0,1216 -960,0 0,-1216 z/
 glyph unicode=  horiz-adv-x=569 d=/
 glyph unicode=- horiz-adv-x=682 d=M 65,440 l 0,181 553,0 0,-181
-553,0 z/
 glyph unicode=. horiz-adv-x=569 d=M 186,0 l 0,205 205,0 0,-205
-205,0 z/
 glyph unicode=0 horiz-adv-x=1139 d=M 85,723 q 0,260 53.5,418.5
53.5,158.5 159,244.5 105.5,86 265.5,86 118,0 207,-47.5 89,-47.5 147,-137
58,-89.5 91,-218 33,-128.5 33,-346.5 0,-258 -53,-416.5 -53,-158.5 -158.5,
-245 -105.5,-86.5 -266.5,-86.5 -212,0 -333,152 -145,183 -145,596 z m 185,0
q 0,-361 84.5,-480.5 84.5,-119.5 208.5,-119.5 124,0 208.5,120 84.5,120
84.5,480 0,362 -84.5,481 -84.5,119 -210.5,119 -124,0 -198,-105 -93,-134
-93,-495 z/
 glyph unicode=1 horiz-adv-x=1139 d=M 763,0 l -180,0 0,1147 q -65,-62
-170.5,-124 -105.5,-62 -189.5,-93 l 0,174 q 151,71 264,172 113,101 160,196
l 116,0 0,-1472 z/
 glyph unicode=3 horiz-adv-x=1139 d=M 86,387 l 180,24 q 31,-153
105.5,-220.5 74.5,-67.5 181.5,-67.5 127,0 214.5,88 87.5,88 87.5,218 0,124
-81,204.5 -81,80.5 -206,80.5 -51,0 -127,-20 l 20,158 q 18,-2 29,-2 115,0
207,60 92,60 92,185 0,99 -67,164 -67,65 -173,65 -105,0 -175,-66 -70,-66
-90,-198 l -180,32 q 33,181 150,280.5 117,99.5 291,99.5 120,0 

RE: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?

2002-12-17 Thread Clay Leeds
Ronald and the rest of you cool cats,
I was having a similar problem: when I'd print the logo for my company (a 
JPG), it would come out pixelated when printed. The way I resolved the 
issue, was to use *HI-RES* JPG images. Instead of using a 72-dpi JPG image, 
I used a 300dpi JPG image, and it came out clean and crisp. I don't know if 
this was a factor as well, but I believe I also placed the image in a 
table-cell which scaled the image 50%. BTW, I couldn't see changes when I 
modified the content-width  height (it didn't seem to have any effect).

I don't know if this'll help you, but it worked for me!
Web Maestro Clay
At 06:28 AM 12/17/2002, you wrote:
I've looked at the code in the AWTRenderer where a BufferedImage is created
to paint the page on(defaults to 72 dpi)
Out of curiosity, how can we create a high res image / graphics context ?
I would be happy to tinker with the code and post any solutions if I find
any , but I am not very familiar with 2D.
Thanks,
Ronald
-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 7:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Antwort: Which TIFF format is used in batik? How can I get
TIFF Type 1?
[EMAIL PROTECTED] wrote:
 I am using the special renderer from Oleg to produce the TIFFs. You can
 find it at

 http://www.tkachenko.com/fop/tiffrenderer.html

 It produces several of the formats you asked for and works nicely. The
only
 problem I have is that I cannot change the resolution, it defaults to 72
 dpi, which is not enough for my application.
I'm afraid that's FOP's restriction at the moment.
--
Oleg Tkachenko
- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 

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


Re: Align tables

2002-12-17 Thread Clay Leeds
Miguel,
I'm a newbie, and I noticed a few things:
1. it looks to me like you've got to modify your table element like this:
  fo:table table-layout=fixed
Also, I'm not sure I've seen the table-row and height combination value 
yet.

At 04:18 AM 12/17/2002, you wrote:
Hi Oleg:
First of all thank you for your response. Before the right align I tried to
center the table using the next code:
fo:table
  fo:table-column column-width=16cm/
  fo:table-body
  fo:table-row height=23.7cm
  fo:table-cell display-align=center
  fo:block
fo:table
!-- Here the table I want to align --
/fo:table
  /fo:block
  /fo:table-cell
  /fo:table-row
  /fo:table-body
/fo:table
/xsl:template
That you see I render a table with the same width of the page, but this code
doesn't work. What is the blid aproach to align the table right, with an
absolute position? I thought about that, but I'd like to build the PDF in a
structurated form. Can you show me an example of that approach?
Miguel Ángel Medina López
- Original Message -
From: Oleg Tkachenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 1:00 PM
Subject: Re: Align tables
 Miguel Angel Medina Lopez wrote:

  I'm newbie in FOP. I want to align a table at right of the page but I
can't.
  I follow several examples from the list and other resources that should
  centered the tables (to modify it after), but the examples doesn't work.
How
  can I align the table?
 At the moment probably the only way to center or to right table in FOP is
 blind table approach, have you tried it?

 --
 Oleg Tkachenko
- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 

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


RE: Font problem

2002-12-17 Thread Peter Sparkes



font-weight, font-style, and 
font-size are authomaticcaly inherited, 
They only have to be included when their values are changed. Remove 
all
"font-weight="inherit" font-style="inherit" 
font-size="inherit" and your fo works OK

Peter 


  -Original Message-From: Henrik Olsson 
  [mailto:[EMAIL PROTECTED]Sent: 17 December 2002 
  12:57To: [EMAIL PROTECTED]Subject: Font 
  problemHi im trying to 
  use inherit in attributes font-weight, font-style, as I understand it's 
  supposed to be allowed. But im 
  getting this error when I'm tryuing to render anything and the wrong font 
  turns up [ERROR] defaulted font to 
  any,normal,normal [ERROR] unknown font 
  Times,inherit,inherit so defaulted font to any Is this a bug or am I doing some thing wrong? 
  Example: fo:root 
  xmlns:fo="http://www.w3.org/1999/XSL/Format" text-decoration="none" 
  font-weight="normal" font-style="normal" font-size="12.0pt" 
  font-family="Times" fo:layout-master-set font-weight="inherit" font-style="inherit" 
  font-size="inherit" color="#00" background-color="#ff" 
  fo:page-sequence-master 
  master-name="vldt-sequence" font-weight="inherit" font-style="inherit" 
  font-size="inherit" fo:repeatable-page-master-reference master-reference="repeat-page" 
  font-weight="inherit" font-style="inherit" font-size="inherit"/ 
  /fo:page-sequence-master 
  fo:simple-page-master page-width="29.7cm" 
  page-height="21.0cm" master-name="repeat-page" margin-top="0.2cm" 
  margin-right="1.0cm" margin-left="1.0cm" margin-bottom="0.2cm" margin="2.0cm" 
  font-weight="inherit" font-style="inherit" font-size="inherit" 
  fo:region-body 
  region-name="xsl-region-body" margin-top="3.0cm" margin-bottom="1.0cm" 
  font-weight="inherit" font-style="inherit" font-size="inherit"/ 
  fo:region-before 
  region-name="repeat-page-head" font-weight="inherit" font-style="inherit" 
  font-size="inherit" extent="3.0cm"/ fo:region-after region-name="repeat-page-foot" 
  font-weight="inherit" font-style="inherit" font-size="inherit" 
  extent="1.0cm"/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference="vldt-sequence" 
  initial-page-number="1" font-weight="inherit" font-style="inherit" 
  font-size="inherit" fo:static-content font-weight="inherit" font-style="inherit" 
  font-size="inherit" flow-name="repeat-page-head" fo:block-container width="2.17593335cm" 
  white-space-collapse="false" top="0.5cm" position="absolute" left="3.0cm" 
  height="0.5842cm" font-weight="inherit" font-style="inherit" 
  font-size="inherit" border-style="none" fo:block white-space-collapse="false" font-weight="inherit" 
  font-style="inherit" font-size="inherit"Calc fact/fo:block 
  /fo:block-container /fo:static-content fo:static-content font-weight="inherit" 
  font-style="inherit" font-size="inherit" 
  flow-name="repeat-page-foot"/ fo:flow font-weight="inherit" font-style="inherit" 
  font-size="inherit" flow-name="xsl-region-body" fo:block id="lastPage"/ /fo:flow /fo:page-sequence /fo:root


Re: Align tables

2002-12-17 Thread Clay Leeds
Miguel,
(SORRY for the double-post, I guess I had an itchy SEND button  sent it 
too soon)

I'm a newbie, and I noticed a few things:
1. it looks to me like you've got to modify your table element like this:
  fo:table table-layout=fixed
2. Also, I'm not sure I've seen the table-row and height combination 
value yet (although I don't know if that's an issue.

3. Most importantly, according to the excellent XSL-FO book XSL-FO: Making 
XML Look Good in Print from O'Reilly, 'display-align=center' will do a 
vertical alignment of center within a cell.

Unfortunately, the horizontal alignment is a bit misleading. According to 
the book, if you want it aligned horizontally, you need to use 
'text-align=right' (since you want to right-align the contents).

I think that's misleading, because it's not just text you're trying to 
align. Someone please correct me if I'm wrong.

Web Maestro Clay
At 04:18 AM 12/17/2002, you wrote:
Hi Oleg:
First of all thank you for your response. Before the right align I tried to
center the table using the next code:
fo:table
  fo:table-column column-width=16cm/
  fo:table-body
  fo:table-row height=23.7cm
  fo:table-cell display-align=center
  fo:block
fo:table
!-- Here the table I want to align --
/fo:table
  /fo:block
  /fo:table-cell
  /fo:table-row
  /fo:table-body
/fo:table
/xsl:template
That you see I render a table with the same width of the page, but this code
doesn't work. What is the blid aproach to align the table right, with an
absolute position? I thought about that, but I'd like to build the PDF in a
structurated form. Can you show me an example of that approach?
Thank you
-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España

- Original Message -
From: Oleg Tkachenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 1:00 PM
Subject: Re: Align tables
 Miguel Angel Medina Lopez wrote:

  I'm newbie in FOP. I want to align a table at right of the page but I
can't.
  I follow several examples from the list and other resources that should
  centered the tables (to modify it after), but the examples doesn't work.
How
  can I align the table?
 At the moment probably the only way to center or to right table in FOP is
 blind table approach, have you tried it?

 --
 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]
- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 

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


Re: Changing Headers -Reply

2002-12-17 Thread JEFF HARMAN
Ok,

The page master resolution would be difficult as there are an arbitrary
number of sections.  And the content to the subsequent headers id
derived from the current content.

Can you point me to a good source of information about the use of
markers?  I haven't used them yet.

Thanks,
-Jeff Harman

 Oleg Tkachenko [EMAIL PROTECTED] 12/16/02 03:28pm 
Jeff Harman wrote:

 Here is what I need to do:
 
 On the first page of a PDF I need the header to be:
 
 A
 B
 C
 Body
 
  on the next page I need
 
 A
 C
 Body Cont
 
  on an arbitrary subsequent page I need
 D
 E
 New Body
 
 I can't use a page header because then the B element appears on
 subsequent pages and I need to change the header when the body
 chenges to new content.

I'm aware of at least 2 solutions:
1. Use different page masters for the first page (ABC header) and the 
rest pageas (AC header). Whenever new body is created, start new 
page-sequence with third page-master (DE header).
2. Use markers, that looks like regular running header.

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



RE: Font problem

2002-12-17 Thread Henrik Olsson

Ok that works.
But I guess its still a bug that you cant put inherit into font-weight, font-style attributes?
Since it messes things up for the FontInfo.

/Henrik








Peter Sparkes [EMAIL PROTECTED]
2002-12-17 16:35
Please respond to fop-user


To:[EMAIL PROTECTED]
cc:
Subject:RE: Font problem



font-weight,font-style, and font-sizeare authomaticcaly inherited, They only have to be included when their values are changed. Remove all
font-weight=inherit font-style=inherit font-size=inherit and your fo works OK

Peter 
-Original Message-
From: Henrik Olsson [mailto:[EMAIL PROTECTED]
Sent: 17 December 2002 12:57
To: [EMAIL PROTECTED]
Subject: Font problem



Hi im trying to use inherit in attributes font-weight, font-style, as I understand it's supposed to be allowed. 

But im getting this error when I'm tryuing to render anything and the wrong font turns up 

[ERROR] defaulted font to any,normal,normal 
[ERROR] unknown font Times,inherit,inherit so defaulted font to any 

Is this a bug or am I doing some thing wrong? 

Example: 


fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format text-decoration=none font-weight=normal font-style=normal font-size=12.0pt font-family=Times 
fo:layout-master-set font-weight=inherit font-style=inherit font-size=inherit color=#00 background-color=#ff 
fo:page-sequence-master master-name=vldt-sequence font-weight=inherit font-style=inherit font-size=inherit 
fo:repeatable-page-master-reference master-reference=repeat-page font-weight=inherit font-style=inherit font-size=inherit/ 
/fo:page-sequence-master 
fo:simple-page-master page-width=29.7cm page-height=21.0cm master-name=repeat-page margin-top=0.2cm margin-right=1.0cm margin-left=1.0cm margin-bottom=0.2cm margin=2.0cm font-weight=inherit font-style=inherit font-size=inherit 
fo:region-body region-name=xsl-region-body margin-top=3.0cm margin-bottom=1.0cm font-weight=inherit font-style=inherit font-size=inherit/ 
fo:region-before region-name=repeat-page-head font-weight=inherit font-style=inherit font-size=inherit extent=3.0cm/ 
fo:region-after region-name=repeat-page-foot font-weight=inherit font-style=inherit font-size=inherit extent=1.0cm/ 
/fo:simple-page-master 
/fo:layout-master-set 
fo:page-sequence master-reference=vldt-sequence initial-page-number=1 font-weight=inherit font-style=inherit font-size=inherit 
fo:static-content font-weight=inherit font-style=inherit font-size=inherit flow-name=repeat-page-head 
fo:block-container width=2.17593335cm white-space-collapse=false top=0.5cm position=absolute left=3.0cm height=0.5842cm font-weight=inherit font-style=inherit font-size=inherit border-style=none 
fo:block white-space-collapse=false font-weight=inherit font-style=inherit font-size=inheritCalc fact/fo:block 
/fo:block-container 
/fo:static-content 
fo:static-content font-weight=inherit font-style=inherit font-size=inherit flow-name=repeat-page-foot/ 
fo:flow font-weight=inherit font-style=inherit font-size=inherit flow-name=xsl-region-body 
fo:block id=lastPage/ 
/fo:flow 
/fo:page-sequence 
/fo:root



RE: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?

2002-12-17 Thread Francis, Ronald
Thanks Clay, but unfortunately the problem here is different. 
This is what I think is happening, Oleg could probably correct me if I'm
wrong:

The TIFFRenderer, which is a subclass of the AWTRenderer works by first
rendering the entire fo page (not just images embedded /referenced in the
page) but the whole page into an Image.This image is then encoded into TIFF.
The problem is that java creates a Buffered Image  with a resolution of
72dpi, so the page is already poor in resolution by the time it gets to the
TIFFEncoder.

What I'm looking for is a way to create an Image (Buffered, Rendered..)
where we can specify the resolution.

I'm not very familiar with the Java2D API ,so if anybody out there knows how
to, please let me know.

Thanks,
Ronald

  

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: RE: Antwort: Which TIFF format is used in batik? How can I get
TI FF Type 1?


Ronald and the rest of you cool cats,

I was having a similar problem: when I'd print the logo for my company (a 
JPG), it would come out pixelated when printed. The way I resolved the 
issue, was to use *HI-RES* JPG images. Instead of using a 72-dpi JPG image, 
I used a 300dpi JPG image, and it came out clean and crisp. I don't know if 
this was a factor as well, but I believe I also placed the image in a 
table-cell which scaled the image 50%. BTW, I couldn't see changes when I 
modified the content-width  height (it didn't seem to have any effect).

I don't know if this'll help you, but it worked for me!

Web Maestro Clay

At 06:28 AM 12/17/2002, you wrote:
I've looked at the code in the AWTRenderer where a BufferedImage is created
to paint the page on(defaults to 72 dpi)
Out of curiosity, how can we create a high res image / graphics context ?
I would be happy to tinker with the code and post any solutions if I find
any , but I am not very familiar with 2D.
Thanks,
Ronald

-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 7:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Antwort: Which TIFF format is used in batik? How can I get
TIFF Type 1?

[EMAIL PROTECTED] wrote:
  I am using the special renderer from Oleg to produce the TIFFs. You can
  find it at
 
  http://www.tkachenko.com/fop/tiffrenderer.html
 
  It produces several of the formats you asked for and works nicely. The
only
  problem I have is that I cannot change the resolution, it defaults to 72
  dpi, which is not enough for my application.
I'm afraid that's FOP's restriction at the moment.

--
Oleg Tkachenko

- Clay Leeds
- Web Developer
- [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]



hyphen umlaut

2002-12-17 Thread Kurt Spescha
Title: Nachricht



have a problem with hyphenation on german umlaut on 
0.20.4. If the last syllable in the line is ending with ö or ä or ü (o dieresis, 
a dieresis, u dieresis) and should therefore be hyphenated, is goes totally 
wrong.

ex. Gefässexplosion 
- result in pdf

ssex-
Gefäplosion

Testingwith the class LineArea, I've seen that the 
lines in the method addText, are separated just on the 
umlaut:

addText: usserung 
wie Sprengstoff-, Gas-, Staub- oder GefaddText: äaddText: 
ssexploss
addText: plosion. 
Vulkanische Eruption ist keine Explosion im Sinne dieses 
Vertrages.

in 
fo:

fo:block space-before="0.0cm" 
space-after="0.5cm"Unter 
Explosion versteht man eine auf dem Ausdehnungsbestreben von Gasen oder Dämpfen 
beruhende, plötzlich verlaufende Kraftäusserung wie Sprengstoff-, Gas-, Staub- 
oder Gefässexplosion. Vulkanische Eruption ist keine Explosion im Sinne dieses 
Vertrages./fo:block 

rgrds 
Kurt



Re: Align tables

2002-12-17 Thread Miguel Angel Medina Lopez
Hi Chris:

Thank you.

It's a very good solution, It works fine. However, I thoght FOP had a
solution using the attribute text-align, but I see that I was wrong.

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España


- Original Message -
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 3:06 PM
Subject: Re: Align tables


 Hi Miguel,

 the blind table approach involves using a table with no borders, so that
it
 cant be seen (hence the term blind) to contain an inner table

 To acheive what you want, you need to add extra columns to the outer
table.
 For centering you should have 3 columns, but for right alignment only 2
are
 required. Ive adapted your sample below to work for centre alignment.


 From: Miguel Angel Medina Lopez [EMAIL PROTECTED]
 
 Hi Oleg:
 
 First of all thank you for your response. Before the right align I tried
to
 center the table using the next code:
 
 fo:table
fo:table-column column-width=5.33cm/
 fo:table-column column-width=5.33cm/
 fo:table-column column-width=5.33cm/
fo:table-body
fo:table-row height=23.7cm
 fo:table-cell/
fo:table-cell
fo:block
  fo:table
  !-- Here the table I want to align --
  /fo:table
/fo:block
/fo:table-cell
 fo:table-cell/
/fo:table-row
/fo:table-body
 /fo:table
 /xsl:template
 

 I hope this helps,

 Chris

 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


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