page breaks in table-rows

2003-12-04 Thread Timo Haberkern
Hello,
Does anyone know how to avoid a table-row to span multiple pages (when
page breaks). It happens when a column of the table row has multiple lines
of text and a page break occurs inbetwn these lines. Hence a single row is
divided accordingly in the next page.
regards
Timo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: page breaks in table-rows

2003-12-04 Thread Timo Haberkern
Hi Torsten
Will Gilbert spotted me keep-together.within-column. That works fine. I 
will test your solution too.

Thanks for ehlping
Timo
Torsten wrote:
Hello Timo,
Thursday, December 4, 2003, 2:32:35 PM, you wrote:
TH Hello,
TH Does anyone know how to avoid a table-row to span multiple pages (when
TH page breaks). It happens when a column of the table row has multiple lines
TH of text and a page break occurs inbetwn these lines. Hence a single row is
TH divided accordingly in the next page.
TH regards
TH Timo
TH -
TH To unsubscribe, e-mail: [EMAIL PROTECTED]
TH For additional commands, e-mail: [EMAIL PROTECTED]
[AFAIK] What about 'keep-together.whithin-page' as prop on the table-row?
 

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


Re: CMYK again

2003-11-21 Thread Timo Haberkern
Ben,
The President of my employer is a lawyer.  Dunno if open-source will 
happen anytime soon for that lib.  ;-)

Have you checked if the open-source Multivalent lib supports this type 
of operation?  I'll try and take a gander too, but you should check 
and see.

I will check it next week.
Thanks for the tip.
I think it should be possible to create cmyk pdf from FOP directly. So 
if you can't open-source your solution, maybe you can talk a little 
bit about how to do such a replacement, so that i can maybe hack 
something similar into FOP?

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


Re: CMYK again

2003-11-21 Thread Timo Haberkern

Then, what you will need is a regular expression, that finds any 'RG' or
'rg' color commands, to replace them with 'K' or 'k', respectively.
Of course, the expression needs to be smart enough only to replace
occurrences of 'RG' or 'rg' that is actually color commands.
Searching for occurrences of three space separated numbers followed by space
and then 'RG' or 'rg' is a hack, that might (but only might) be good enough.
 

Ok, i understood that. But i think the color values must be changed too 
or i'm wrong. I think there must be a conversion from rgb to cmyk values?!?

Then, the XRef Table needs to be rebuilt.
This tasks should be possible to do with another regular expression,
That searches for any occurrences of '[anInteger] [anotherInteger] obj' and
adds the byte offset positions of these matches into a new XRef Table, that
in the end should replace the existing XRef Table.
 

Sorry don't understand that. For what is this task?
Timo
Also, the number on the second last line of the document should be replaced
with the number of bytes written until the occurrence of the last 'endobj'
command.
There is a number of plug-ins, that can be used from within Adobe Reader to
convert the RGB colors of a PDF document into CMYK colors.
There is a tool named QuiteABoxOfTricks that can be found at
http://www.quite.com doing this.
I am sure it is possible to setup a batch processing solution as well, in
order to create a totally automated hack solution for this lack.
PitStop server is another solution.
Regards,
Dennis JD Myrén
Developer
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 21. november 2003 14:38
To: [EMAIL PROTECTED]
Subject: Re: CMYK again

Ben,
 

The President of my employer is a lawyer.  Dunno if open-source will 
happen anytime soon for that lib.  ;-)

Have you checked if the open-source Multivalent lib supports this type 
of operation?  I'll try and take a gander too, but you should check 
and see.

   

I will check it next week.
Thanks for the tip.
I think it should be possible to create cmyk pdf from FOP directly. So 
if you can't open-source your solution, maybe you can talk a little 
bit about how to do such a replacement, so that i can maybe hack 
something similar into FOP?

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

--
Grüsse
Timo Haberkern
EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.
http://www.emedia-office.com
[EMAIL PROTECTED]
Tel.: 06293/921121
Fax:  06293/921129

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


Memory consumption

2003-09-16 Thread Timo Haberkern
Hello list,
i have big problems. I use FOP embedded into a java application to 
create approx. 250 PDF Files. In each of the files are 5 or more images 
(JPGs or SVGs). The problem is that FOP consumes more and more memory. I 
run FOP like this:

for ()
{
   org.apache.fop.apps.Driver driver = new org.apache.fop.apps.Driver();
   driver.setRenderer(org.apache.fop.apps.Driver.RENDER_PDF);
  
   String strTemp = System.getProperty(java.io.tmpdir)+ELKPUBLISH;
  
   org.apache.fop.configuration.Configuration.put(baseDir,../publish);
   File userConfigFile = new File(../publish/config.xml);
   Options options = new Options(userConfigFile);
  
  
   InputHandler inputHandler = new XSLTInputHandler(
   new File(strTemp+\\+strXMLFile),
   new File(objJob.getLayoutFile())
   );   
 
   ...  
   File newFolder = new File(strOutputFolder);
   newFolder.mkdirs();
  
   XMLReader parser = inputHandler.getParser();
 
...   
   FileOutputStream pdfStream = new 
FileOutputStream(strOutputFolder+strOutputFile);
   driver.setOutputStream(pdfStream);
   driver.render(parser, inputHandler.getInputSource());
  
   pdfStream.flush();
   pdfStream.close();
  
   driver.reset();
   driver = null;
  
   org.apache.fop.image.FopImageFactory.resetCache();

Runtime.getRuntime().gc();
}
Nothing helped? Is there no possibility to get rid of this reserverd memory?
rgds
Timo Haberkern


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


Re: Memory consumption

2003-09-16 Thread Timo Haberkern

snip/
I'm not really the expert on JVM Memory Management, but AFAICT these
declarations belong outside the 'for'-loop. (Not sure whether this is
causing memory problems, but it just seems ... more elegant. If they really
do not depend on the variables changing in the loop, that is... If behaviour
would be what I'm guessing, then these would consume memory - the total of
which would only be released on completion of the loop...)
snip/
No :-( That doesn't help anything...
Any other ideas?
   driver = null;
   

You won't be needing this. Just resetting the Driver should be ok.
 

mhmm, that was i try! I thought that it maybe helps a little bit but it 
doesn't. But it remains anyhow...

I also notice you have read this (?)
http://xml.apache.org/fop/running.html#memory
Have you tried the multiple page-sequences tip?
Every PDF File is only 2 pages long. And the memory is consumed for PDFs 
with big images...

My problem is that i can't get down the memory after rendering one PDF 
and before the next rendering...

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


Re: Memory consumption

2003-09-16 Thread Timo Haberkern

org.apache.fop.image.FopImageFactory.resetCache();
   

I am a no expert in memory mgmt too. Just wanna add to the remark
already made.
If you reset the cache, the memory has to be recreated for every
invocation. This is time consuming particularly if same set of images
needs to be used in all the 250 PDF. Also try increasing your heap size
of JVM, if that mitigates your problem !
I have done that, but the current value is 512 MB and i have the 
problem. You are right. reseting the image cache slows down the 
rendering, but that is not that critical in my case. More critical is 
the memory.

I'm thinking in move the start of the rendering in a seperate process 
(i.e. in a Batch file). I think that would slow down my the rendereing, 
but helps for memory...

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


Re: Memory consumption

2003-09-16 Thread Timo Haberkern
Aha, and how to release the handles!?! I thought a driver.reset would be 
exactly the release of all resources?

rgds
Timo
Dennis Myrén wrote:
I am not an expert in java memory handling either,
But I suggest you release all handles after each run in the loop,
And then perform a garbage collect.
Regards,
dennis.myren
-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2003 15:38
To: [EMAIL PROTECTED]

 

snip/
I'm not really the expert on JVM Memory Management, but AFAICT these
declarations belong outside the 'for'-loop. (Not sure whether this is
causing memory problems, but it just seems ... more elegant. If they really
do not depend on the variables changing in the loop, that is... If behaviour
would be what I'm guessing, then these would consume memory - the total of
which would only be released on completion of the loop...)
snip/
   

No :-( That doesn't help anything...
Any other ideas?
 

  driver = null;
  

 

You won't be needing this. Just resetting the Driver should be ok.
   

mhmm, that was i try! I thought that it maybe helps a little bit but it 
doesn't. But it remains anyhow...

 

I also notice you have read this (?)
http://xml.apache.org/fop/running.html#memory
Have you tried the multiple page-sequences tip?
   

Every PDF File is only 2 pages long. And the memory is consumed for PDFs 
with big images...

My problem is that i can't get down the memory after rendering one PDF 
and before the next rendering...

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


Re: Memory consumption

2003-09-16 Thread Timo Haberkern
That doesn't help too :-( The FOP classes don't come down of their high 
memory consumption

Timo
Ganesh wrote:
If you can afford the gc time consumption then there is a sure way of
garbage collection. This method will ensure that garbage is collected
for sure...Use the Sizeof class as given in the java world article
below. This is a sure way of garbage collection, but then it slows down
the system !
http://www.javaworld.com/javaworld/javatips/jw-javatip130.html
 


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


Re: Memory consumption

2003-09-16 Thread Timo Haberkern
But i have done that as you can see in my initial code snippet. Or am i 
wrong?

Timo
Dennis Myrén wrote:
I mean by assigning null values to the instances and then to the System.gc()
Regards dennis
-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2003 15:49
To: [EMAIL PROTECTED]

Aha, and how to release the handles!?! I thought a driver.reset would be 
exactly the release of all resources?

rgds
Timo
Dennis Myrén wrote:
 


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


Status of MIF Output

2003-08-01 Thread Timo Haberkern
Hello,
can anybody tell me the status of the MIF output renderer. I read in the 
documentation that it is not fully implemented, but whats implemented 
and what is not? Does anybody use it in a productive way?

best regards
Timo Haberkern
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can't get it work (was: Insert SVG image)

2003-02-25 Thread Timo Haberkern
Thanks for the reply, but it doesn't work as expected.
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg; 
width=113mm height=23mm
   image preserveAspectRatio=xMidYMid 
xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg 
width=113 height=23/
/svg
/fo:instream-foreign-object

Remove the width+heigth from the image element and, much more important,
provide a xmlns for the xlink prefix. 
I used the example external.fo. There is a 
xmlns:xlink=http://www.w3.org/1999/xlink; in the fo:root element. Is 
that enough??

If i remove the width and height from the image element i get the 
folowing error:

[ERROR] svg graphic could not be built: 
file:/E:/fop-0.20.5rc2/examples/fo/svg/:
-1
The attribute 'width' of the element image is required
org.apache.batik.bridge.BridgeException: 
file:/E:/fop-0.20.5rc2/examples/fo/svg/
:-1
The attribute 'width' of the element image is required
   at 
org.apache.batik.bridge.SVGImageElementBridge.getImageBounds(SVGImage
ElementBridge.java:539)
   at 
org.apache.batik.bridge.SVGImageElementBridge.createSVGImageNode(SVGI
mageElementBridge.java:343)
   at 
org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(S
VGImageElementBridge.java:288)
   at 
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(SVGI
mageElementBridge.java:138)
   at 
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:
182)
   at 
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148
)
   at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:76)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.j
ava:513)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:
472)
   at org.apache.fop.svg.SVGArea.render(SVGArea.java:58)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRend
erer.java:456)
   at 
org.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectAr
ea.java:46)
   at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRendere
r.java:481)
   at org.apache.fop.layout.LineArea.render(LineArea.java:320)
   at 
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRender
er.java:442)
   at org.apache.fop.layout.BlockArea.render(BlockArea.java:78)
   at 
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRe
nderer.java:408)
   at org.apache.fop.layout.ColumnArea.render(ColumnArea.java:29)
   at 
org.apache.fop.render.AbstractRenderer.renderSpanArea(AbstractRendere
r.java:57)
   at org.apache.fop.layout.SpanArea.render(SpanArea.java:52)
   at 
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Abstra
ctRenderer.java:325)
   at 
org.apache.fop.layout.BodyAreaContainer.render(BodyAreaContainer.java
:98)
   at 
org.apache.fop.render.AbstractRenderer.renderRegions(AbstractRenderer
.java:494)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:837
)
   at 
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:813)
   at 
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:258)

   at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:68)
   at 
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:
359)
   at 
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:29
0)
   at 
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
   at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
   at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.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)
[INFO] Parsing of document complete, stopping renderer

The problem is that i will need a working solution tommorow and i can't 
get it working. Any help is appreciated...

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


Re: Can't get it work (was: Insert SVG image)

2003-02-25 Thread Timo Haberkern
Hi,
yes i tried this, but the same result. Maybe there is something wrong 
with my SVG file? I have attached the latest version of the SVG file and 
the FO-file (The fo:instream-foreign-object is on line 115). Maybe 
that helps...

best regards
Timo
Raimo Manninen wrote:
have you tested this without path? Like it's in external-fo example. (Move
image to right directory.)
xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg
-
xlink:href=file:Kanaele.svg
 

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; 
xmlns:xlink=http://www.w3.org/1999/xlink;
  fo:layout-master-set
fo:simple-page-master
  margin-right=1.5cm
  margin-left=1.5cm
  margin-bottom=2cm
  margin-top=1cm
  page-width=21cm
  page-height=29.7cm
  master-name=first
  fo:region-body margin-top=1cm margin-bottom=1.5cm/
  fo:region-before extent=1cm/
  fo:region-after extent=1.5cm/
/fo:simple-page-master
  /fo:layout-master-set

  fo:page-sequence master-reference=first
fo:static-content flow-name=xsl-region-before
  fo:block line-height=14pt font-size=10pt
text-align=endExternal SVG examples/fo:block
/fo:static-content
fo:static-content flow-name=xsl-region-after
  fo:block line-height=14pt font-size=10pt
text-align=endPage fo:page-number//fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body

  fo:block text-align=center font-weight=bold font-size=14pt 
space-before.optimum=3pt space-after.optimum=15pt
  External SVG
  /fo:block

  fo:block space-before.optimum=3pt space-after.optimum=20pt


  /fo:block

  fo:block text-align=center
Some examples of how to reference external SVG images in your FO documents
  /fo:block

  fo:block break-before=page space-after.optimum=10pt 
font-weight=bold font-size=12pt
Introduction
  /fo:block

  fo:block
This document shows some examples of how an SVG document can be in an external 
svg file
which is referenced using the fo:external-graphic.
  /fo:block

  fo:block
  /fo:block

  fo:block space-after.optimum=10pt font-weight=bold font-size=12pt
Examples
  /fo:block

  fo:block
The following svg document is obtained from an external file using the 
fo:external-graphic.
  /fo:block

  fo:block
fo:external-graphic src=url(boxes.svg)/
  /fo:block

  fo:block
This svg document (fo:external-graphic src=url(multi.svg)/) is also 
obtained from
an external file using the fo:external-graphic. It has another svg image inside 
and references
part of another svg image.
  /fo:block

  fo:block
This inline svg document (
fo:instream-foreign-object
svg xmlns=http://www.w3.org/2000/svg; width=60 height=40 
xml:space=preserve
  g style=fill:none;stroke:yellow
 rect x=0 y=0 width=25 height=25/
 image xlink:href=file:boxes.svg x=10 y=10 width=20 height=20/
  /g
  g
use xlink:href=file:ref.svg#FOP transform=scale(1.5) x=12 y=25/
  /g
/svg
/fo:instream-foreign-object
) has an external svg image inside and references part of another svg image.
  /fo:block

  fo:block
Apart from this external svg images should behave in the same way that other 
types of
external graphics do.
  /fo:block

  fo:block space-before.optimum=10pt
The following example shows how you could scale an external svg file.
  /fo:block

  fo:block
fo:instream-foreign-object
svg xmlns=http://www.w3.org/2000/svg; width=20mm height=20mm 
xml:space=preserve
  svg viewBox=0 0 20 20 preserveAspectRatio=none
 image xlink:href=file:boxes.svg x=0 y=0 width=20mm height=20mm/
  /svg
/svg
/fo:instream-foreign-object
and
fo:instream-foreign-object
svg xmlns=http://www.w3.org/2000/svg; width=20mm height=20mm 
xml:space=preserve
  g transform=scale(3.7)
 image xlink:href=file:boxes.svg x=0 y=0 width=20mm height=20mm/
  /g
/svg
/fo:instream-foreign-object
and
fo:instream-foreign-object
svg xmlns=http://www.w3.org/2000/svg; 
xmlns:xlink=http://www.w3.org/1999/xlink;
image x=0 y=0 
xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg 
width=401.433 height=84.623/
/svg
/fo:instream-foreign-object

  /fo:block

  fo:block space-before.optimum=10pt
This example is an svg from an external image:
fo:external-graphic src=url(view.svg)/
it has a viewbox that resizes the contents.
  /fo:block

/fo:flow
  /fo:page-sequence
/fo:root

inline: Kanaele.svg-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Can't get it work (was: Insert SVG image)

2003-02-25 Thread Timo Haberkern
Hmm, you are partly right. If i take another svg image (for example the 
batiklogo.svh from batik) this works correct. The mystirious is that 
Batik-Squiggle and my Internet Explorer (SVG Viewer Plugin V3) can open 
my SVG without problems and if i use fo:external-image there seems no 
problem with the image at all.

I used Illustrator 10 to write the SVGs.
Timo
Myriam Delperier wrote:
yes i tried this, but the same result. Maybe there is something wrong
with my SVG file? I have attached the latest version of the SVG file and
the FO-file (The fo:instream-foreign-object is on line 115). Maybe
   

do you have the same pb with other images? Because I can't open your svg
file well with Internet Explorer...
 


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


Can't get it work (was: Insert SVG image)

2003-02-24 Thread Timo Haberkern
Hello again,
i can't sort out my problem with inserting external SVG images. Is there 
somebody who can help me? It is very urgent!
I still have the same problem. If i embedd a SVG image with fo:external-graphic 
it is included correctly, but wrong scaled.
If i use:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg; 
xml:space=preserve
image xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg width=113 
height=23/
/svg
/fo:instream-foreign-object
i dont see my image at all.
I am using the current RC2.
Somebody has an idea whats going wrong? I have attached my SVG image.
Best regards
Timo
Timo Haberkern wrote:

Hello all,
i have a problem inserting a SVG image. First i tried it with:
fo:external-graphic src=file.svg width=10cm but it seems there is 
a bug. The SVG image is shown correctly but isn't scaled as i wished (to 
be exactly- The image allways has the full width of the region-body!).

After a look in the examples i saw, that there is used the following:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg; http://www.w3.org/2000/svg width=20mm 
height=20mm xml:space=preserve
image preserveAspectRatio=xMidYMid xlink:href=file:file.svg x=0 
y=0 width=10mm height=10mm/
/svg
/fo:instream-foreign-object

I tried to adapt this. But now there is the standard-Error-Image of 
batik shown. If i insert the boxes.svg from the samples instead of 
file.svg everything was fine.

Is there a problem with my file (but it was shown correctly with 
external-graphic and batiks squiggle)??

Thanks for any help...

inline: Kanaele.svg-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Can't get it work (was: Insert SVG image)

2003-02-24 Thread Timo Haberkern
That doesn't work too. Now i get the batik image for broken-image (see 
attached pdf page 2). I use now:

fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg; 
width=113mm height=23mm
   image preserveAspectRatio=xMidYMid 
xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg 
width=113 height=23/
/svg
/fo:instream-foreign-object

Timo
Myriam Delperier wrote:
I don't know if it's the only problem but I think
you have to put the attributes width  height in your svg element
here is an exemple which works for me
fo:block
fo:instream-foreign-object
svg id=svg-root width=32 height=50
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns=http://www.w3.org/2000/svg; 
title id=test-titleImage svg test/title
desc id=test-descTest/desc
g id=test-body-content
image id=image1JPEG x=0 y=0 width=32 height=50
xlink:href=../../production/lyon2/2000/dieng_sa/xml/ressources/gif.gif/
/g
/svg
/fo:instream-foreign-object
/fo:block
- Original Message -
From: Timo Haberkern [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:00 AM
Subject: Can't get it work (was: Insert SVG image)
 

Hello again,
i can't sort out my problem with inserting external SVG images. Is there
   

somebody who can help me? It is very urgent!
 

I still have the same problem. If i embedd a SVG image with
   

fo:external-graphic it is included correctly, but wrong scaled.
 

If i use:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg;
   

xml:space=preserve
 

image xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg
   

width=113 height=23/
 

/svg
/fo:instream-foreign-object
i dont see my image at all.
I am using the current RC2.
Somebody has an idea whats going wrong? I have attached my SVG image.
Best regards
Timo
Timo Haberkern wrote:

Hello all,
i have a problem inserting a SVG image. First i tried it with:
fo:external-graphic src=file.svg width=10cm but it seems there is
a bug. The SVG image is shown correctly but isn't scaled as i wished (to
be exactly- The image allways has the full width of the region-body!).
After a look in the examples i saw, that there is used the following:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg;
   

http://www.w3.org/2000/svg width=20mm
 

height=20mm xml:space=preserve
image preserveAspectRatio=xMidYMid xlink:href=file:file.svg x=0
y=0 width=10mm height=10mm/
/svg
/fo:instream-foreign-object
I tried to adapt this. But now there is the standard-Error-Image of
batik shown. If i insert the boxes.svg from the samples instead of
file.svg everything was fine.
Is there a problem with my file (but it was shown correctly with
external-graphic and batiks squiggle)??
Thanks for any help...

   




 

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

--
Grüsse
Timo Haberkern
EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.
http://www.emedia-office.com
[EMAIL PROTECTED]
Tel.: 06293/921121
Fax:  06293/921129


out.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Can't get it work (was: Insert SVG image)

2003-02-24 Thread Timo Haberkern
Hmm, that doen't work too :-( I removed it completely. But The 
broken-image is still visible instead of the correct SVG image.

Timo
Myriam Delperier wrote:
maybe there is a porblem between the size of your image and
viewBox=0 0 20 20
- Original Message -
From: Timo Haberkern [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:20 AM
Subject: Re: Can't get it work (was: Insert SVG image)
 

That doesn't work too. Now i get the batik image for broken-image (see
attached pdf page 2). I use now:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg;
width=113mm height=23mm
   image preserveAspectRatio=xMidYMid
xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg
width=113 height=23/
/svg
/fo:instream-foreign-object
Timo
Myriam Delperier wrote:
   

I don't know if it's the only problem but I think
you have to put the attributes width  height in your svg element
here is an exemple which works for me
fo:block
fo:instream-foreign-object
svg id=svg-root width=32 height=50
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns=http://www.w3.org/2000/svg; 
title id=test-titleImage svg test/title
desc id=test-descTest/desc
g id=test-body-content
image id=image1JPEG x=0 y=0 width=32 height=50
 

xlink:href=../../production/lyon2/2000/dieng_sa/xml/ressources/gif.gif/
   

/g
/svg
/fo:instream-foreign-object
/fo:block
- Original Message -
From: Timo Haberkern [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:00 AM
Subject: Can't get it work (was: Insert SVG image)

 

Hello again,
i can't sort out my problem with inserting external SVG images. Is there
   

somebody who can help me? It is very urgent!
 

I still have the same problem. If i embedd a SVG image with
   

fo:external-graphic it is included correctly, but wrong scaled.
 

If i use:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg;
   

xml:space=preserve
 

image xlink:href=file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg
   

width=113 height=23/
 

/svg
/fo:instream-foreign-object
i dont see my image at all.
I am using the current RC2.
Somebody has an idea whats going wrong? I have attached my SVG image.
Best regards
Timo
Timo Haberkern wrote:

Hello all,
i have a problem inserting a SVG image. First i tried it with:
fo:external-graphic src=file.svg width=10cm but it seems there is
a bug. The SVG image is shown correctly but isn't scaled as i wished (to
be exactly- The image allways has the full width of the region-body!).
After a look in the examples i saw, that there is used the following:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg;
   

http://www.w3.org/2000/svg width=20mm
 

height=20mm xml:space=preserve
image preserveAspectRatio=xMidYMid xlink:href=file:file.svg x=0
y=0 width=10mm height=10mm/
/svg
/fo:instream-foreign-object
I tried to adapt this. But now there is the standard-Error-Image of
batik shown. If i insert the boxes.svg from the samples instead of
file.svg everything was fine.
Is there a problem with my file (but it was shown correctly with
external-graphic and batiks squiggle)??
Thanks for any help...


   

 

---
   

-
 



 

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

 

--
Grüsse
Timo Haberkern
EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.
http://www.emedia-office.com
[EMAIL PROTECTED]
Tel.: 06293/921121
Fax:  06293/921129
   




 

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

--
Grüsse
Timo Haberkern
EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.
http://www.emedia-office.com
[EMAIL PROTECTED]
Tel.: 06293/921121
Fax:  06293/921129

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


Insert SVG image

2003-02-18 Thread Timo Haberkern
Hello all,
i have a problem inserting a SVG image. First i tried it with:
fo:external-graphic src=file.svg width=10cm but it seems there is 
a bug. The SVG image is shown correctly but isn't scaled as i wished (to 
be exactly- The image allways has the full width of the region-body!).

After a look in the examples i saw, that there is used the following:
fo:instream-foreign-object
svg viewBox=0 0 20 20 xmlns=http://www.w3.org/2000/svg; width=20mm 
height=20mm xml:space=preserve
image preserveAspectRatio=xMidYMid xlink:href=file:file.svg x=0 
y=0 width=10mm height=10mm/
/svg
/fo:instream-foreign-object

I tried to adapt this. But now there is the standard-Error-Image of 
batik shown. If i insert the boxes.svg from the samples instead of 
file.svg everything was fine.

Is there a problem with my file (but it was shown correctly with 
external-graphic and batiks squiggle)??

Thanks for any help...
Timo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Scaling external SVG graphics

2002-12-13 Thread Timo Haberkern
Mhmm, it doesn't work here, even if i put the external-graphic in a 
table-cell that has i.e. the size 4cm the SVG is scaled to the full body 
width. But i found out something interesting:

The height of the table cell (with the svg image) is calculated 
correctly. The height of the cell is the expected height of the svg 
image. So fop seems to calculate the width and height of the image 
correctly, only the svg has the wrong size...

BTW: There is no difference between 0.20.5rc and 0.20.4...
Is it possible that the problem is the SVG image itself???
Timo
J.Pietschmann wrote:
Timo Haberkern wrote:
i try to embedd an external svg graphic to my pdf file.I used the 
following lines in my stylesheet:

fo:external-graphic space-before=0.1cm width=5cm
   xsl:attribute name=src
  xsl:value-of select=eo_256/  !-- file name of the svg 
image --
   /xsl:attribute
   xsl:attribute name=width5cm/xsl:attribute
  /fo:external-graphic

The result is not as expected. It seems FOP ignores the width 
attribute. The embedded SVG image is scaled to the maximum width 
(xsl-region-body-width). Any solutions for scaling an external svg 
graphic?? What did i wrong?

Code like the above works for me. THere are however some issues
with SVG image scaling. the easiest way to control them is to
use both the same height and width in an absolute measurement
on both the fo:external-graphics aand the svg:svg element:
 fo:external-graphic width=5cm height=2cm src=foo.svg/
and
 svg:svg width=5cm height=2cm xmlns:svg=...
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
--
Grüsse
Timo Haberkern
EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.
http://www.emedia-office.com
[EMAIL PROTECTED]
Tel.: 06293/921121
Fax:  06293/921129

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


Scaling external SVG graphics

2002-12-11 Thread Timo Haberkern
Hello list,
i try to embedd an external svg graphic to my pdf file.I used the 
following lines in my stylesheet:

fo:external-graphic space-before=0.1cm width=5cm
   xsl:attribute name=src
  xsl:value-of select=eo_256/  !-- file name of the svg image --
   /xsl:attribute
   xsl:attribute name=width5cm/xsl:attribute
  
/fo:external-graphic

The result is not as expected. It seems FOP ignores the width attribute. 
The embedded SVG image is scaled to the maximum width 
(xsl-region-body-width). Any solutions for scaling an external svg 
graphic?? What did i wrong?

--
regards
Timo Haberkern

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


Re: Unicode special chars

2002-12-09 Thread Timo Haberkern
That works! Thanks, often you can`t see the most obvious solution ;-)
Timo
J.Pietschmann wrote:
Timo Haberkern wrote:
i have a little problem with unicode special characters. If i write 
the Unicode-Newline from my Java Application (with XercesJ) to XML it 
escapes #x2028; to amp;#x2028;. FOP seems to ignore the 
amp;#x2028; and works only as expected if there is a #x2028;

There is a difference between an XML file read by a parser and
strings supplied through a Java interface for XML. Use the
Java syntax for representing Unicode characters: \u2028
in Java strings.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
--
Grüsse
Timo Haberkern
EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.
http://www.emedia-office.com
[EMAIL PROTECTED]
Tel.: 06293/921121
Fax:  06293/921129

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


Re: Images in region-start?

2002-12-06 Thread Timo Haberkern
Does nobody have a hint or a solution for my problem. It's a very urgent 
problem for me and i would be very happy to hear from someone who can 
help me...

Timo
Timo Haberkern wrote:
hello,
I'm trying to place an image (JPEG) on the left and right side of my 
page that runs the
allmost the whole length of the page inside the region-start and 
region-end.
But best it will ever get is approx. 3/4 of the length of the page.

I've tried everything! can someone tell me what i'm doing wrong?
My stylesheet:
?xml version='1.0' encoding=ISO-8859-1?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0
!--
**
*** root rule. Defines the general site layout
**
--
xsl:template match=/
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
!-- Layout of the first site --
fo:simple-page-master master-name=First 
page-height=29.7cm page-width=21cm
fo:region-body  region-name=first-body 
margin-left=3.4cm margin-right=3.4cm margin-top=7cm/
fo:region-before  precedence=false 
extent=3.4cm region-name=PucaroLeftGradientSideBar/
fo:region-after precedence=false extent=1.5cm/
fo:region-start extent=7cm 
region-name=PucaroHeader/
fo:region-end extent=2.4cm 
region-name=PucaroRightProductSideBar/
   
/fo:simple-page-master
   
!-- Layout of all following sites --
fo:simple-page-master master-name=Following 
page-height=29.7cm page-width=21cm
fo:region-start extent=7cm 
region-name=PucaroHeader/
fo:region-before extent=29.7cm 
region-name=PucaroLeftGradientSideBar/
fo:region-body region-name=first-body 
margin-bottom=1.8cm margin-left=2cm margin-right=0cm 
margin-top=2cm/
/fo:simple-page-master
   
!-- The page sequence master --
fo:page-sequence-master master-name=PucaroSchema
fo:single-page-master-reference 
master-reference=First/
fo:repeatable-page-master-reference 
master-reference=Following/
/fo:page-sequence-master
/fo:layout-master-set
   
fo:page-sequence master-reference=PucaroSchema
!-- static sequences: Pucaro left gradient sidebar --
fo:static-content flow-name=PucaroLeftGradientSideBar
fo:block-container border-color=black 
border-style=solid border-width=0.5pt height=27cm width=0.65cm 
top=2cm left=2cm position=absolute
fo:block
fo:external-graphic width=0.65cm 
height=25.9cm 
src=file:../elk/develop/Layouts/Pucaro/pdf/leftgradient.gif/
/fo:block
/fo:block-container
/fo:static-content
   
!-- static sequences: Pucaro right product sidebar --
fo:static-content flow-name=PucaroRightProductSideBar
fo:block-container border-color=black 
border-style=solid border-width=0.5pt height=27cm width=2.4cm 
top=2cm left=0cm position=absolute
fo:block
fo:external-graphic scaling=non-uniform 
width=24mm height=259mm 
src=file:../elk/develop/Layouts/Pucaro/pdf/rightproducts.gif/
/fo:block
/fo:block-container
/fo:static-content
   
!-- static sequences: Pucaro header --
fo:static-content flow-name=PucaroHeader
fo:block-container border-color=black 
border-style=solid border-width=0.5pt height=5cm padding=0 
width=14.2cm top=2cm left=3.4cm position=absolute
xsl:apply-templates 
select=ELKDocument/eo_51ba8178-02cc-11d7-a9ff-8012d336c952/ !-- 
Block_Kopfbereich_Motoren --
xsl:apply-templates 
select=ELKDocument/eo_/ !-- Block_Kopfbereich_Trafo --
/fo:block-container
/fo:static-content
   
fo:flow flow-name=first-body
fo:block background-color=rgb(211,231,188)
xsl:apply-templates select=ELKDocument/
/fo:block   
/fo:flow
/fo:page-sequence
/fo:root
/xsl:template

!--
**
*** ELK document rule
**
--
xsl:template match=ELKDocument
fo:blockHello World/fo:block
/xsl:template

!-- Block_Kopfbereich_Motoren --
xsl:template match

Different background colors for first and following pages

2002-12-04 Thread Timo Haberkern
hello again,
I'm new to fop/XSL-Fo and have some problems with my first stylesheet. I 
want to use different background-colors in the region-body for the first 
and the following pages. The first page should have a backgroundcolor X 
and all following pages the background-color Y.

Is there a posible solution?
--
regards
Timo Haberkern
EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.
http://www.emedia-office.com
[EMAIL PROTECTED]
Tel.: 06293/921121
Fax:  06293/921129

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