Greetings everybody,

I'd like to contribute to Batik and propose the following:

Situation:
I'm currently working on a project where SVG is being used to define
layouts for labels that are being printed via Batik's PrintTranscoder.
We define labels as individual SVGs and position them as embedded SVGs
on a layout SVG which exactly has the dimensions of a DIN A4 page.

Problems with current Batik:
(1) The PrintTranscoder _always_ centers the SVG on the page (thus
disregarding the MARGIN_LEFT and MARGIN_TOP settings provided by the
user).
(2) The PrintTranscoder _always_ scales the SVG, either to max out the
paper size or by using the PIXEL_UNIT_TO_MM key.

Since we define _exactly_ where we want to print on the page it is
undesirable in our situation that the PrintTranscoder does not follow
our margin settings and in addition scales the image. This results in a
printout that is different from the layout SVG.

Solution:
I consider (1) a bug and propose the patch attached as "margin.diff" (in
diff -u format)

I consider (2) merely an annoyance and thus propose to introduce a new
boolean key DISALLOW_SCALING which skips the scaling alltogether. I
attached the patch as "scaling.diff" (in diff -u format).


I'm very interested in your opinion, please let me know if something is
wrong with the patches.

Thanks,
-Maik

Attachment: margin.diff
Description: Binary data

Attachment: scaling.diff
Description: Binary data

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

Reply via email to