RE: Border confusion

2003-06-19 Thread Mike Trotman
Thanks - I'll check on this.

I thought FOP only supported border-collapse='collapse'd tables - but may be
getting this confused with 'fixed' layout.
(And had also forgotten that the collapsed borders model DOES centre borders
on the border rectangle edge.)
I've had a few surprises with table borders in the past which might be why
I've stuck with the collapsed model for so long.

I think the problem was that using separated borders required a lot more
specification of attributes to get the appearance I wanted.

If I make all my borders the same colour and style then I can ignore the
rendering order problem for the moment.

I'm re-reading the border+space behaviours and precedence settings now.

Thanks again.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2003 20:47
To: [EMAIL PROTECTED]
Subject: Re: Border confusion


Mike Trotman wrote:
 I also thought that borders would be non-overlapping for table-cells - if
 not is there a way to achieve this?

There's a collapse=false for this purpose (look up the correct name
in the spec). Broders on table cells can still yeild a few surprises
though.

J.Pietschmann



-
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: block with table spanning different page-masters

2003-06-19 Thread Torsten Straube
J.Pietschmann wrote
Torsten Straube wrote:
I have a document with a first page that is different ( other header) 
from the other pages.
Everything is fine until I put a block on the first page
that contains a table that is to big to fit onto that first page.

FOP places the header of the first page on the following pages
until it reaches a page that ist not generated from this block
( the one containing the table).

This should not happen. Can you post a small sample code demonstrating
this behaviour?
Well the sample code is not really small :-(,
but it followes here:
?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:output encoding=ISO-8859-1/
xsl:param name=locale /
!-- Druckdatum des Lieferscheins --
xsl:param name=print_date /
!-- note_type fuer Lieferschein oder Verwendungsnachweis --
xsl:param name=note_typedelivery-note/xsl:param
!-- Parameter für die Seitengroesse der ersten Seite --
xsl:param name=first-page-height  297mm/xsl:param
xsl:param name=first-page-width   210mm/xsl:param
xsl:param name=first-page-margin-left  20mm/xsl:param
xsl:param name=first-page-margin-right 20mm/xsl:param
xsl:param name=first-page-margin-top   12mm/xsl:param
xsl:param name=first-page-margin-bottom6mm/xsl:param
xsl:param name=first-page-header-extend32mm/xsl:param
xsl:param name=first-page-footer-extend10mm/xsl:param
xsl:param name=ruler-one98mm/xsl:param
xsl:param name=ruler-two57mm/xsl:param
!-- Parameter für die Seitengroesse der anderen Seiten --
xsl:param name=page-height  297mm/xsl:param
xsl:param name=page-width   210mm/xsl:param
xsl:param name=margin-left  30mm/xsl:param
xsl:param name=margin-right 25mm/xsl:param
xsl:param name=margin-top   15mm/xsl:param
xsl:param name=margin-bottom6mm/xsl:param
xsl:param name=header-extend15mm/xsl:param
xsl:param name=footer-extend10mm/xsl:param
!-- Parameter für den statischen Text --
xsl:param name=static-font-familyHelvetica/xsl:param
xsl:param name=static-font-size10pt/xsl:param
xsl:param name=static-line-height12pt/xsl:param
xsl:param name=static-space-before.optimum6pt/xsl:param
xsl:param name=static-space-after.optimum6pt/xsl:param
!-- Parameter für Text --
xsl:param name=text-font-familyHelvetica/xsl:param
xsl:param name=text-font-size10pt/xsl:param
xsl:param name=text-line-height12pt/xsl:param
xsl:param name=text-space-before.optimum0pt/xsl:param
xsl:param name=text-space-after.optimum5pt/xsl:param
!-- Parameter für Tabelle --
xsl:param name=table-indent60px/xsl:param
xsl:param name=table-row-space-before.optimum0pt/xsl:param
xsl:param name=table-row-space-after.optimum6pt/xsl:param
xsl:param name=table-header-font-familyHelvetica/xsl:param
xsl:param name=table-header-font-size12pt/xsl:param
xsl:param name=table-header-line-height14pt/xsl:param
xsl:param name=table-cell-font-familyHelvetica/xsl:param
xsl:param name=table-cell-font-size10pt/xsl:param
xsl:param name=table-cell-line-height12pt/xsl:param
xsl:param name=usage-list-cell-line-height60pt/xsl:param
xsl:param name=table-column-width-position10mm/xsl:param
xsl:param name=table-column-width-article_id20mm/xsl:param
xsl:param name=table-column-width-info125mm/xsl:param
xsl:strip-space elements=customerorderitem name title/
xsl:decimal-format
name=price-format
decimal-separator=,
grouping-separator=./
xsl:template match=customerorder
xsl:param name=note-type-stringtext here/xsl:param
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=first
page-height={$first-page-height}
page-width={$first-page-width}
margin-top={$first-page-margin-top}
margin-bottom={$first-page-margin-bottom}
margin-left={$first-page-margin-left}
margin-right={$first-page-margin-right}
padding-after=0mm
end-indent=0mm
fo:region-before
region-name=xsl-region-before-first
extent={$first-page-header-extend}/
!-- fo:region-start
region-name=xsl-region-start-first/ --
fo:region-body
region-name=xsl-region-body-first
margin-top = {$first-page-header-extend}
margin-bottom = {$first-page-footer-extend}
/
fo:region-after
region-name=xsl-region-after

Adding an image to the end of a tiff file:

2003-06-19 Thread Rob Stote
Title: Adding an image to the end of a tiff file:






Hello:


 Oleg this should probably be directed at you I was wondering if you could provide a snippet of code for adding extra images to the result of the TIFFRenderer. I notice that the Renderer can be configured to append or pre-pend images to the tiff produced. I understand form code how to set this parameter.

 Where I am stumped is, if I have an image file on disk (lets say it is a tiff as well), How do I get the contents of the file, into the Iterator as a RenderedImage. I am not that familiar with the imaging API. Or more succinctly, how do I create a BufferedImage from a file on disk. Once I have this I know how to put that into the Iterator.


Example of what I have:


TIFFRendererParams params = new TIFFRendererParams();
params.setCompression(TIFFRendererParams.COMPRESSION_GROUP4);
params.setWriteTiled(false);
Params.setExtraImages(//Iterator of images, EXTRA_IMAGES_AFTER);.



Rob





RE: Border confusion

2003-06-19 Thread Mike Trotman
Hi.

I tried border-collapse='separate' and - while this worked OK for a simple
table
It doesn't work for tables with cells spanning rows (see attached - which
also has border-separation='1pt').

I think this could qualify as a bug.

Mike

-Original Message-
From: Mike Trotman [mailto:[EMAIL PROTECTED] 
Sent: 19 June 2003 14:36
To: [EMAIL PROTECTED]
Subject: RE: Border confusion


Thanks - I'll check on this.

I thought FOP only supported border-collapse='collapse'd tables - but may be
getting this confused with 'fixed' layout.
(And had also forgotten that the collapsed borders model DOES centre borders
on the border rectangle edge.)
I've had a few surprises with table borders in the past which might be why
I've stuck with the collapsed model for so long.

I think the problem was that using separated borders required a lot more
specification of attributes to get the appearance I wanted.

If I make all my borders the same colour and style then I can ignore the
rendering order problem for the moment.

I'm re-reading the border+space behaviours and precedence settings now.

Thanks again.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2003 20:47
To: [EMAIL PROTECTED]
Subject: Re: Border confusion



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

Printer Tray selection

2003-06-19 Thread bhaskar ramasamy
Hai All, Iam using an FOP to generate a PS file.This PS file will be send to printer.Currently It works fine without any problem. But now my current requirement is, this PS file has to be printed using two different trays.I tried to place the PCL commands in XSL.But all my efforts gets failed.Can I pass printer PCL commands from FOP?
Can u suggest me How to print a single PS/PDF file into two different trays? For example Take my PS file contains 10 pages.6 pages has to printed from first Tray.And the remaining 4 pages has to be printed from second Tray.  Thanks and Regards, Bhaskar
SMS using the Yahoo! 
Messenger;

Download latest version.

RE: Border confusion

2003-06-19 Thread Mike Trotman
A correction to my last e-mail.

The border collisions using border-collapse='separate' only seem to occur
when the contents of the cells is empty.
The attached exampled has a '-' in each formerly empty cell - and renders
correctly!

(Interestingly - if the content is empty it looks as if the left and right
hand borders can get switched around).

So - I think I might be able to solve most of my immediate problems by using
a zero-width space or something similar.

Thanks.



-Original Message-
From: Mike Trotman [mailto:[EMAIL PROTECTED] 
Sent: 19 June 2003 19:33
To: [EMAIL PROTECTED]
Subject: RE: Border confusion


Hi.

I tried border-collapse='separate' and - while this worked OK for a simple
table
It doesn't work for tables with cells spanning rows (see attached - which
also has border-separation='1pt').

I think this could qualify as a bug.

Mike

-Original Message-
From: Mike Trotman [mailto:[EMAIL PROTECTED] 
Sent: 19 June 2003 14:36
To: [EMAIL PROTECTED]
Subject: RE: Border confusion


Thanks - I'll check on this.

I thought FOP only supported border-collapse='collapse'd tables - but may be
getting this confused with 'fixed' layout.
(And had also forgotten that the collapsed borders model DOES centre borders
on the border rectangle edge.)
I've had a few surprises with table borders in the past which might be why
I've stuck with the collapsed model for so long.

I think the problem was that using separated borders required a lot more
specification of attributes to get the appearance I wanted.

If I make all my borders the same colour and style then I can ignore the
rendering order problem for the moment.

I'm re-reading the border+space behaviours and precedence settings now.

Thanks again.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2003 20:47
To: [EMAIL PROTECTED]
Subject: Re: Border confusion



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

RE: Printer Tray selection

2003-06-19 Thread Rob Stote










 Printer
tray selection can not be placed into a document using xsl-fo. I had the same
problem, for a client, we wrote a small app that inserted/embedded the
appropriate information into the PS file right before it was spooled to the
printer. Search for %%Page and insert the command immediately preceding it. There
is a standard PS command to select a printer tray:



Right before each %%Page: we did this:



statusdict begin 0 setpapertray end

%%Page: 1 1



...removed for brevity...



statusdict begin 0 setpapertray end

%%Page: 2 2



...removed for brevity...



statusdict begin 1 setpapertray end

%%Page: 3 3



The following line would sent the first sheet (pg 1 and 2) to the tray 0 and the
second sheet to tray 1 (pg 3)



Some printers are zero based others are
one based. 

Use @ your own risk, this may not work on
all printers. 



Rob



-Original Message-
From: bhaskar ramasamy
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 19, 2003 3:50
PM
To: [EMAIL PROTECTED]
Subject: Printer Tray selection



Hai All,

Iam using an FOP to generate a PS file.This PS file will be send to

printer.Currently It works fine without any problem.

But now my current requirement is, this PS file has to be printed using 
two different trays.I tried to place the PCL commands in XSL.But all my 
efforts gets failed.

Can I pass printer PCL commands from FOP?

Can u suggest me How to print a single PS/PDF file
into two different 
trays?

For example Take my PS file contains 10 pages.6 pages has to printed 
from first Tray.And the remaining 4 pages has to be printed from second 
Tray.


Thanks and Regards,

Bhaskar

SMS using the Yahoo! Messenger; Download latest
version.








Re: block with table spanning different page-masters

2003-06-19 Thread J.Pietschmann
Torsten Straube wrote:
Well the sample code is not really small :-(,
but it followes here:
A stylesheet is often quite useless without the input XML.
Can you actually run the transformation, then trim down the
resulting FO document to a reasonable size while still
showing the problem and post it? Don't forget to remove
the graphics.
J.Pietschmann

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


Please Explain This Table Error

2003-06-19 Thread Michael Duffy
This is my second day with FOP, so be gentle.  ;)

I have an FO file with a table in it - 3 rows, 6
columns fixed.  A snippet follows:

fo:table table-layout=fixed

fo:table-column column-width=1.0in/
fo:table-column
column-width=proportional-column-width(1)/
fo:table-column column-width=1.0in/
fo:table-column
column-width=proportional-column-width(1)/
fo:table-column column-width=1.0in/
fo:table-column
column-width=proportional-column-width(1)/
  
fo:table-body

!-- One of 3 rows total --
fo:table-row
fo:table-cellOne of six in this row/fo:table-cell
/fo:table-row

/fo:table-body
/fo:table

When I run it through FOP, I get this error:

[ERROR] At least one of minimum, optimum, or maximum
IPD must be specified on table.

What causes this error, and what must I fix?  Thanks -
MOD



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Please Explain This Table Error

2003-06-19 Thread J.Pietschmann
Michael Duffy wrote:
When I run it through FOP, I get this error:
[ERROR] At least one of minimum, optimum, or maximum
IPD must be specified on table.
What causes this error, and what must I fix?  Thanks -
Usually FOP calculates the table width from the column widths.
However, you use proportional-column-width(), therefore you
have to specify a width for the table explicitely.
Add width=100% or whatever suits your needs to the fo:table
element.
J.Pietschmann

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


Problem rendering SVG graphic

2003-06-19 Thread Howard Miller
Hi,
I am new to fop (and SVG) so I hope this isn't a stupid question...
I am trying to embed an external SVG graphic file into a fop document.  
I am simply using
fo:external-graphic src=url(image.svg) 

when I run fop it falls over with a Java excecution trace. The first  
few lines look like...

can somebody point me in the right direction here (I checked and batik  
is in the fop lib directory! )

Thanks!
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5rc3a
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] [1]
Exception in thread main java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at  
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron 
ment.java:62)
at  
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053)
at  
org.apache.fop.svg.PDFGraphics2D.init(PDFGraphics2D.java:1401)
at  
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java 
:638)
at  
org.apache.fop.render.pdf.PDFRenderer.drawImageScaled(PDFRenderer.java:3 
80)
at  
org.apache.fop.render.AbstractRenderer.renderImageArea(AbstractRenderer. 
java:326)
at org.apache.fop.image.ImageArea.render(ImageArea.java:107)
at  
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.j 
ava:516)
at org.apache.fop.layout.LineArea.render(LineArea.java:519)
at  
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer. 
java:485)
at org.apache.fop.layout.BlockArea.render(BlockArea.java:117)

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


Re: Problem rendering SVG graphic

2003-06-19 Thread J.Pietschmann
Howard Miller wrote:
Exception in thread main java.lang.NoClassDefFoundError
...
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron 
ment.java:62)
Looks like you got a headless server. See
 http://xml.apache.org/fop/faq.html#svg-headless
J.Pietschmann

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