Re: SVG problem

2004-08-16 Thread Jeremias Maerki
I'm sorry it has taken so long but I finally know what's wrong (thanks
to Batik's Thomas DeWeese). Your SVG file doesn't contain a viewBox
attribute in the top-level svg element. The file seems to be created for
a 96dpi environment. In the PDF transcoder you get a 72dpi environment.
Because there's no viewBox the graphic is displayed too big. If you
manually add:
viewBox=0 0 533 266
it should come out correctly. I hope that (still) helps.

On 20.07.2004 09:13:52 Raphael Parree (Triveratech) wrote:
 I was running with the FOP 0.20.5 with the bundled Batik1.5b5
 
 I exported the image using Poseidon and than edited with Sodipodi. After
 transformation in Sodipodi, it shows the image at something close to
 400x200.
 I have tried Squiggle, and its displays the image 533x266. (Both Batik1.5b5
 and 1.5.1, Adobe SVG Viewer 3 seems to do the same).
 
 I can get around it by scaling my image, but I would like to find out were
 the problem lays (might be Sodipodi).


Jeremias Maerki


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



RE: SVG problem

2004-07-20 Thread Raphael Parree (Triveratech)
I was running with the FOP 0.20.5 with the bundled Batik1.5b5

I exported the image using Poseidon and than edited with Sodipodi. After
transformation in Sodipodi, it shows the image at something close to
400x200.
I have tried Squiggle, and its displays the image 533x266. (Both Batik1.5b5
and 1.5.1, Adobe SVG Viewer 3 seems to do the same).

I can get around it by scaling my image, but I would like to find out were
the problem lays (might be Sodipodi).










-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 22:43
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: SVG problem

What are you using to convert the SVG to PDF?
- FOP 0.20.5, embedding the SVG in an XSL-FO document?
- Batik 1.5.1 with the bundled PDF transcoder?
- FOP CVS HEAD's PDF transcoder?

I've run your file through FOP CVS HEAD and it shows your problem in the
PDF Transcoder. Batik's Squiggle Browser and FOP CVS HEAD PostScript
Transcoder, however, show your SVG correctly. It seem the be a bug in
the PDF Transcoder. But knowing exactly what would take some more time
to figure out.

On 19.07.2004 12:56:34 Raphael Parree (Triveratech) wrote:
 I seem to have a problem with SVG. Most of them work, but the ones I
 generate from the UML tool Poseidon give me some problems. In the
generated
 PDF, the size of the image does not seem to be correct. (it shows about
80%
 of my image). I have the svg attached.

 This might be a Batik question, and might very well be solved in newer
 versions of Batik, but does someone know what is wrong/not supported in my
 SVG file.


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]



SVG problem

2004-07-19 Thread Raphael Parree (Triveratech)








Hi,



I seem to have a problem with SVG. Most of them work, but
the ones I generate from the UML tool Poseidon give me some problems. In the generated
PDF, the size of the image does not seem to be correct. (it shows about 80% of
my image). I have the svg attached. 



This might be a Batik question, and might very well be
solved in newer versions of Batik, but does someone know what is wrong/not supported
in my SVG file.



Tx.,







Raphael








attachment: memberregistration-pageflow.svg-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: SVG problem

2004-07-19 Thread Jeremias Maerki
What are you using to convert the SVG to PDF?
- FOP 0.20.5, embedding the SVG in an XSL-FO document?
- Batik 1.5.1 with the bundled PDF transcoder?
- FOP CVS HEAD's PDF transcoder?

I've run your file through FOP CVS HEAD and it shows your problem in the
PDF Transcoder. Batik's Squiggle Browser and FOP CVS HEAD PostScript
Transcoder, however, show your SVG correctly. It seem the be a bug in
the PDF Transcoder. But knowing exactly what would take some more time
to figure out.

On 19.07.2004 12:56:34 Raphael Parree (Triveratech) wrote:
 I seem to have a problem with SVG. Most of them work, but the ones I
 generate from the UML tool Poseidon give me some problems. In the generated
 PDF, the size of the image does not seem to be correct. (it shows about 80%
 of my image). I have the svg attached.
 
 This might be a Batik question, and might very well be solved in newer
 versions of Batik, but does someone know what is wrong/not supported in my
 SVG file.


Jeremias Maerki


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



SVG Problem in Unix

2003-07-09 Thread Miltos Margetis
Hi,
I am trying to create a pdf with an svg, using the xsl code below:
fo:static-content flow-name=xsl-region-before
  xsl:if test=data/ContractTO/statusId= '6000'
 fo:block
fo:instream-foreign-object xmlns:svg=http://www.w3.org/2000/svg;
  svg:svg width=40in height=40in
  svg:g transform=translate(150,150)
	svg:g transform=rotate(45)
	svg:g style=fill:none; stroke:gray;stroke-width:1
   svg:text x=35 y=100 
style=font-size:100;font-family:TimesNewRomanDRAFT  /svg:text
   /svg:g
  /svg:g
 /svg:g
   /svg:svg
 /fo:instream-foreign-object
   /fo:block
   /xsl:if

While this works perfectly in Win NT ,there are some problems in Unix 
creating the svg(the body of the pdf is OK but there is no svg).

Does anyone has an idea about this?
_
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]


RE: SVG Problem in Unix

2003-07-09 Thread Morrison, John
I'm not sure, but is your unix box 'headless'?  If so, batik has
a problem (AWT related I believe) under particular versions of the
JVM.  Either install X or upgrade to 1.4.xx (whatever is the latest).

J.

 -Original Message-
 From: Miltos Margetis [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 9 July 2003 1:34 pm
 To: [EMAIL PROTECTED]
 Subject: SVG Problem in Unix
 
 
 
 Hi,
 
 I am trying to create a pdf with an svg, using the xsl code below:
 
 fo:static-content flow-name=xsl-region-before
xsl:if test=data/ContractTO/statusId= '6000'
   fo:block
  fo:instream-foreign-object 
 xmlns:svg=http://www.w3.org/2000/svg;
svg:svg width=40in height=40in
svg:g transform=translate(150,150)
   svg:g transform=rotate(45)
   svg:g style=fill:none; stroke:gray;stroke-width:1
 svg:text x=35 y=100 
 style=font-size:100;font-family:TimesNewRomanDRAFT  /svg:text
 /svg:g
/svg:g
   /svg:g
 /svg:svg
   /fo:instream-foreign-object
 /fo:block
 /xsl:if
 
 While this works perfectly in Win NT ,there are some problems in Unix 
 creating the svg(the body of the pdf is OK but there is no svg).
 
 Does anyone has an idea about this?
 
 _
 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]
 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.
Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF


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



Fop 0.20.5rc and external-graphic SVG problem

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


SVG and XML-fo included in this mail.

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 

Re: Fop 0.20.5rc and external-graphic SVG problem

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

SVG and XML-fo included in this mail.
Please, don't include 100K+ files into mail body, attach they to the mail 
message instead.

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
Are you sure file:/Temp/testfont001.svg is valid path to the file?
I have tried your fo + svg in fop0.20.5 and it gave me many exception lines 
about some wrong glyphindex=-1, but produced pdf ok. Batik itself seems to be 
able to handle your svg well, so it sounds like a bug, file it to the bugzilla 
(again, *attach* svg to the bug entry, not copy-n-pase it as is, please).

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


Re: Fop 0.20.5rc and external-graphic SVG problem

2002-12-18 Thread Oleg Tkachenko
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
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)
Looks like your svg document is broken, make sure batik able to render it.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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}

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]



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: external-graphic SVG problem ...

2002-04-13 Thread J.Pietschmann
RAYMOND Romain wrote:
Is there a problem to fix a SVG heigth in an external-graphic 
I cannot dot it.
Can you post a shoret, self contained sample which
demonstrates the problem?
J.Pietschmann




external-graphic SVG problem ...

2002-04-11 Thread RAYMOND Romain

Is there a problem to fix a SVG heigth in an external-graphic 
I cannot dot it.


thanks.


Re: SVG Problem with FOP

2002-01-31 Thread ewitness - Ben Fowler
Title: Re: SVG Problem with FOP


At 10:43 am -0500 25/1/02, Scott Moore wrote:
I'm trying to embed the following SVG
into my XSL-FO and run it thru
FOP (0.20.3rc). Although the SVG looks fine using Adobe's SVG
viewer and Batik's viewer, I get an
error (below) from FOP. Apparently, it doesn't like the url()
reference
to the radialGradient. How can I get this to work?

Thanks for any help,
Scott


svg width=3.5in height=1in
viewBox=0 0 680 200 xmlns=
http://www.w3.org/2000/svg
http://www.w3.org/2000/svg

preserveAspectRatio=none
g
 defs
 radialGradient id=PurpleToWhite
gradientUnits=objectBoundingBox
cx=.5 cy=.5 r=.5
 stop offset=5%
stop-color=white/
 stop offset=100%
stop-color=rgb(100,0,100)/
 /radialGradient
 /defs
 rect fill=black stroke=black
x=0 y=0 width=680
height=200/
 circle r=80 cx=270
cy=100 fill=url(#PurpleToWhite)/
 text font-family=Times
font-size=135pt x=213 y=160
fill=whiteD/text
/g
/svg


An I/O error occured while processing the URI
'file:D:/Projects/Dev/#PurpleToWhite'
specified on the element circle

Are you sure that file that you have requested exists? You might
be
able to step through the code in a debugger and get a clearer
idea
of exactly what I/O error occured. Also check the bug lists as
it is
possible that FOP has special requirements for specifying
URIs.

Ben.



RE: SVG Problem with FOP

2002-01-31 Thread Scott Moore
Title: Re: SVG Problem with FOP



Thanks 
for the reply.

The 
file does not exist, except in memory. I create the XSL-FO from a 
transformation and then directly feed that Document to FOP in my servlet (I'm 
not using the command-line version of FOP). The SVG is contained in the 
document and the url reference is local to the document.

Scott


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, January 30, 2002 
  8:01 PMTo: [EMAIL PROTECTED]Subject: Re: SVG 
  Problem with FOP
  At 10:43 am -0500 25/1/02, Scott Moore wrote:
  I'm trying to embed the following SVG into my 
XSL-FO and run it thruFOP (0.20.3rc). Although the SVG looks fine 
using Adobe's SVG viewer and Batik's viewer, I get anerror (below) from 
FOP. Apparently, it doesn't like the url() referenceto the 
radialGradient. How can I get this to 
work?Thanks for any 
help,Scottsvg width="3.5in" height="1in" 
viewBox="0 0 680 200" xmlns="http://www.w3.org/2000/svg http://www.w3.org/2000/svg 
"preserveAspectRatio="none"g 
defs radialGradient id="PurpleToWhite" 
gradientUnits="objectBoundingBox"cx=".5" cy=".5" 
r=".5" stop offset="5%" 
stop-color="white"/ stop offset="100%" 
stop-color="rgb(100,0,100)"/ 
/radialGradient /defs rect 
fill="black" stroke="black" x="0" y="0" 
width="680"height="200"/ circle r="80" cx="270" 
cy="100" fill="url(#PurpleToWhite)"/ text 
font-family="Times" font-size="135pt" x="213" 
y="160"fill="white"D/text/g/svgAn 
I/O error occured while processing the URI
  'file:D:/Projects/Dev/#PurpleToWhite' specified 
on the element circle
  
  Are you sure that file that you have requested exists? You might be
  able to step through the code in a debugger and get a clearer idea
  of exactly what I/O error occured. Also check the bug lists as it 
is
  possible that FOP has special requirements for specifying URIs.
  
  Ben.


RE: SVG Problem with FOP

2002-01-31 Thread ewitness - Ben Fowler
Title: RE: SVG Problem with FOP


At 5:41 am -0500 31/1/02, Scott Moore wrote:
Thanks for the
reply.

The file does not
exist, except in memory. I create the XSL-FO from a
transformation and then directly feed that Document to FOP in my
servlet (I'm not using the command-line version of FOP). The
SVG is contained in the document and the url reference is local to
the document.

Note: It takes time and effort to attempt to undo the formatting
and
to wrap your mail, and I haven't yet worked out how to remove
the
blue colouring.

See
URL: http://www.arsdigita.com/asj/mime/ 
URL: http://www.geocities.com/nnqweb/nquote.html

URL: http://www.firstpr.com.au/sys-admin/HTML-email/ 
URL: http://freshmeat.net/articles/view/173/ 
URL: http://www.lemis.com/email.html 
URL: http://www.icomm.ca/~dragon/posting.htm 
URL: http://networknews.vnunet.com/ReadersToTheRescue/16674 
URL: http://www.wired.com/news/technology/0,1282,41608,00.html 

The other answer you received subsumes mine, it is correct
in every respect and more detailled. You should work along
the lines lines suggested there, to wit, you need to adjust
your code so that the URI looks something like:

 url(file:///c:/refstuff/grad.svg#PurpleToWhite)

Ben.