[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: Mark Barratt <markb@xxxxxxxxxxxxxxx>, sverre.ola.medalen@xxxxxxxxxxxxx
Subject: Re: Scaling of graphics in XML documents upon import to FrameMaker
From: "Lynne A. Price" <lprice@xxxxxxxxxxxx>
Date: Fri, 10 Sep 2004 08:43:12 -0700
Delivered-to: jeremyg-freeframers:org-ffarchiv@freeframers.org
In-reply-to: <4141B382.1070702@textmatters.com>
References: <3067AEBE50A75A47B1621612588543FE021276@kda-beexc-06.kda.kongsberg.com><4141B382.1070702@textmatters.com>
Sender: owner-framers@xxxxxxxxx
sverre.ola.medalen@xxxxxxxxxxxxx wrote:
The graphics comes with the attributes "contentwidth" and "contentdepth" set to a pixel value. As the size of the graphics varies from a width in the area of 220px and up to 1276px the above scaling rule is not good enough. The maximum width of a graphic must be 16cm to fit into our document template. With the variation in width of the graphics, the rule must scale the graphics with a width > 16cm down to exactly 16cm width, and the graphics with a width < 16cm to a width suitable for good readability.
This would be straightforward to do as a preprocessing script in Perl or XSLT (or, presumably, most other script languages). I don't *think* you can do math in read-write rules.
** To unsubscribe, send a message to majordomo@xxxxxxxxx ** ** with "unsubscribe framers" (no quotes) in the body. **