You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Henriksen Niels Kristoffer <ni...@wmdata.com> on 2002/10/10 10:00:51 UTC
Printing 4x2 stickers per page - how to?
Hi everybody,
I'm facing the following interesting challenge: To output data onto labels
(stickers).
These labels measure 105x71 mm, they come on sheets of the A4-size
(210x297mm). They are arranged 2 by 4 on each sheet, with no borders between
them (edge to edge). (A short calculation shows that 297mm - (4x71mm) = 13mm
are left over; these are distributed evenly at the top and bottom of the
sheets. To be very specific, it's Xerox labes P/N 003R97404).
The challenge is to stream out data onto these rectangles so that the final
appearance of each singel label will be the same. It it to be done with FOP:
XML -> PDF. It is clear that controlling the exact position of the output on
the page is an issue.
It is desirable to print to the rectangles/labels in this order (portrait
sheet): top-left first, top-right next, then left label of second row, then
right label of second row and so on.
I've just started to write this style-sheet. Is there anybody out there, who
has done anything like this, who could provide some tips&tricks or redirect
me to som e useful resources?
Thaks a lot in advance.
Kind regards
Niels K. Henriksen
WM-data Systemudvikling DK
Hermodsvej 22
DK-8230 Åbyhøj
(+45) 8744 4404
Re: Printing 4x2 stickers per page - how to?
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
Hi Kristoffer,
>. . .
> It is clear that controlling the exact position of the
> output on the page is an issue.
>. . .
The first idea that comes to mind is using fo:table to position your labels,
with each table cell mapped to one label.
>. . .
> It is desirable to print to the rectangles/labels in this order (portrait
> sheet): top-left first, top-right next, then left label of second row, then
> right label of second row and so on.
>. . .
I think you will have to handle this at the XSL-FO generation stage (in your
XSLT transform if you're using one), placing the contents of each label in
the right table-cell.
Hope this helps!
-Bertrand
Re: Printing 4x2 stickers per page - how to?
Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- Henriksen Niels Kristoffer <ni...@wmdata.com>
wrote:
> Hi everybody,
>
> I'm facing the following interesting challenge: To
> output data onto labels
> (stickers).
>
> These labels measure 105x71 mm, they come on sheets
> of the A4-size
> (210x297mm). They are arranged 2 by 4 on each sheet,
> with no borders between
> them (edge to edge). (A short calculation shows that
> 297mm - (4x71mm) = 13mm
> are left over; these are distributed evenly at the
> top and bottom of the
> sheets. To be very specific, it's Xerox labes P/N
> 003R97404).
>
> The challenge is to stream out data onto these
> rectangles so that the final
> appearance of each singel label will be the same. It
> it to be done with FOP:
> XML -> PDF. It is clear that controlling the exact
> position of the output on
> the page is an issue.
>
> It is desirable to print to the rectangles/labels in
> this order (portrait
> sheet): top-left first, top-right next, then left
> label of second row, then
> right label of second row and so on.
>
> I've just started to write this style-sheet. Is
> there anybody out there, who
> has done anything like this, who could provide some
> tips&tricks or redirect
> me to som e useful resources?
I think putting them in the table should help.
regards,
=====
Konstantin Priblouda ( ko5tik ) Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com