RE: Embeded svg files

2006-10-19 Thread Barry Whiting
Hi Pascal

Thanks very much for your response and I'm sorry for the delay.

Here is an example for you.

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master
master-name=directory page-height=791px page-width=595px
fo:region-body
region-name=xsl-region-body margin-left=26px margin-right=26px
margin-top=160px margin-bottom=83px column-count=3
column-gap=4mm background-repeat=no-repeat
background-image=url('http://www.londontown.com/DirectoryV2/w3c/images/
page_body.svg')/
fo:region-before
region-name=xsl-region-before extent=150px
background-repeat=no-repeat
background-image=url('http://www.londontown.com/DirectoryV2/w3c/images/
page_top.svg') /
fo:region-after
region-name=xsl-region-after extent=73px
background-repeat=no-repeat
background-image=url('http://www.londontown.com/DirectoryV2/w3c/images/
page_bottom.svg') /--
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=directory
fo:static-content
flow-name=xsl-region-before
fo:block
font-size=16pt color=#205285 padding-top=36px margin-left=40px
font-weight=bold
TEST HEADER
/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body

fo:block id=pageBlock
span=all
TEST BODY
/fo:block
/fo:flow
/fo:page-sequence
/fo:root

The images are in the regions to make it easier for use to display the
text over the image.

The body image divides the page up into 3 columns with a blue line
between each column.

Kind regards

Barry

-Original Message-
From: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Sent: 18 October 2006 12:22
To: fop-users@xmlgraphics.apache.org
Subject: RE: Embeded svg files

 -Original Message-
 From: Barry Whiting [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 17, 2006 5:31 PM
 
 I am able to embed jpg files with no problems at all in my fo 
 file using http://someserver.com/images/someimage.jpg but 
 when I try to embed a svg file it doesn't work at all but I 
 don't get any errors at all
 
 Im using fop 0.20.5
 
 Thanks for any help any one can give
 
 Regards
 
 Barry

Barry,
Can you post a simple XSL-FO file that demonstrate your problem, please?
If you use external SVG file, can you post it too?

Pascal

-
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: Embeded svg files

2006-10-19 Thread J.Pietschmann

Barry Whiting wrote:

fo:region-before
region-name=xsl-region-before extent=150px
background-repeat=no-repeat
background-image=url('http://www.londontown.com/DirectoryV2/w3c/images/
page_top.svg') /


IIRC in 0.20.5 SVG images don't work properly as region background
images. This is probably due to how the viewport dimensions are
calculated.
If the SVG images don't have width and height set on the root svg
element, you might try adding these, although I doubt this would work

You can try putting the images in absolutely positioned block
containers, this should work.

J.Pietschmann

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



RE: Embeded svg files

2006-10-18 Thread Barry Whiting








Hi Louis



Thanks for the response but this wont work
for me Im afraid.



First the image is set in the region-body
and its a vector graphic that we use for a background.



Sorry for the confusion thats my fault.



Kind regards



Barry











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 17 October 2006 16:38
To:
fop-users@xmlgraphics.apache.org
Subject: Re: Embeded svg files






I do this in 0.20.3 for all of our images. Here
is a sample code block that puts a basic shipping mark on a report:



   fo:block text-align=center


   fo:instream-foreign-object
xmlns:svg=http://www.w3.org/2000/svg 

  
svg:svg width=96.4 height=51 

   
   svg:g stroke=black 

   
   svg:line x1=2
y1=37.8 x2=94.4 y2=37.8
stroke-width=1/ 

   
   svg:line
x1=94.4 y1=37.8 x2=81.8 y2=0
stroke-width=1/ 

   
   svg:line
x1=81.8 y1=0 x2=14.6 y2=0
stroke-width=1/ 

   
   svg:line
x1=14.6 y1=0 x2=2 y2=37.8
stroke-width=1/ 

   
   svg:text x=22
y=20 font-family=sans-serif font-size=7pt
style=fill:blackSee Instructions/svg:text


   
   /svg:g 

  
/svg:svg 

  
/fo:instream-foreign-object 

   /fo:block 

This
renders fine in PDF, but to see something like this in IE 5/6, you will need a
plugin (go to Adobe). 

-Lou



~~
LOG-NET, Inc.
The Logistics Network Management System
~~
230 Half Mile Road
Third Floor
Red Bank, NJ
 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~
CONFIDENTIAL  PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content, the
information contained herein is privileged and confidential information/work
product. The communication is intended for the use of the individual or entity
named above. If the reader of this transmission is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the sender immediately by
telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and
destroy any copies, electronic, paper or otherwise, which you may have of this communication.
Thank you.
~~ 




 
  
  Barry
   Whiting [EMAIL PROTECTED] 
  10/17/2006 11:31 AM 
  
   

Please
respond to
fop-users@xmlgraphics.apache.org

   
  
  
  
  
  
   

To


fop-users@xmlgraphics.apache.org


   
   

cc




   
   

Subject


Embeded svg files

   
  
  
  
   






   
  
  
  
 





Hi 


I
wondered if someone could help please. 


I am
able to embed jpg files with no problems at all in my fo file using http://someserver.com/images/someimage.jpg but when I
try to embed a svg file it doesnt work at all but I dont get any errors at
all 


Im
using fop 0.20.5 


Thanks
for any help any one can give 


Regards



Barry









RE: Embeded svg files

2006-10-18 Thread Pascal Sancho
 -Original Message-
 From: Barry Whiting [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 17, 2006 5:31 PM
 
 I am able to embed jpg files with no problems at all in my fo 
 file using http://someserver.com/images/someimage.jpg but 
 when I try to embed a svg file it doesn't work at all but I 
 don't get any errors at all
 
 Im using fop 0.20.5
 
 Thanks for any help any one can give
 
 Regards
 
 Barry

Barry,
Can you post a simple XSL-FO file that demonstrate your problem, please?
If you use external SVG file, can you post it too?

Pascal

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