As promised and I didn’t even wait for the weekend.
Below is a simple example that could be expanded through PIs or Pinpoints or
other ways to carry the information you want for the gradient.
Right now it has fixed colors and is a linear gradient but you could easily
extend this.
I will probably do a new CoolTool and do just that.
What this does – it leverages the XEPOUT format to grab all red rectangles
(an area where you want the gradient --- you could use any color and trigger
on it).
It takes those red rectangles and uses their exact dimensions and replaces
them with a linear gradient SVG rectangle.
NOTE: All things with background colors could be done as they yield a
rectangle – could be a table-cell or block or block-container.
I just used block-containers in this sample.
Now, you could certainly expand all this … use a pinpoint or a PI to carry
the actual colors and type of gradient.
Or params in the XSL if you like.
Gradient-background.fo can be formatted to XEPOUT.
You would see this:
<xep:rgb-color red="1.0" green="0.0" blue="0.0"/>
<xep:rectangle x-from="72000" y-from="376800" x-till="360000"
y-till="520800"/>
A red rectangle.
That XEPOUT can be transformed with the attached identity-gradient.xsl XSL
to make a new XEPOUT.
That XEPOUT now has this:
<xep:image src="data:image/svg+xml;utf-8,<svg
xmlns="http://www.w3.org/2000/svg" width="2in"
height="2in">
 <defs>

<linearGradient id="myLinearGradient1">

<stop offset="0" stop-color="#11908d"
stop-opacity="1"/>
 <stop
offset="1" stop-color="#646452"
stop-opacity="1"/>

</linearGradient>
 </defs>

<rect width="
 2in" height="2in"
fill="url(#myLinearGradient1)"/>

</svg>
 " base="file:/C:Temp"
type="image/svg+xml" x-from="72000" y-from="532800" scale-x="1.0"
scale-y="1.0" width="144000" height="144000"/>
Which changes the rectangle to a UTF-8 encoded inline SVG image.
NOTE – if you use XSL 2.0 you could likely do this easier than I did in the
XSL, feel free to improve!
The result:
Problem solved. No custom development required. A simple solution in a
toolchain.
Kevin Brown
(650) 327-1000 Direct
(650) 328-8008 Fax
(925) 395-1772 Mobile
skype:kbrown01
kevin@renderx.com <mailto:kevin@renderx.com>
sales@renderx.com <mailto:sales@renderx.com>
http://www.renderx.com <http://www.renderx.com/>
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of
Kevin Brown
Sent: Friday, May 11, 2018 11:41 AM
To: 'RenderX Community Support List' <xep-support@renderx.com>
Subject: [xep-support] Re: Feature request: "gradient background color"
We are looking at the solution within the context of our development path
and demand.
If there is other folks on this list that would like to see such a feature,
please let us know.
In the meantime, I believe this could be solved through XEPOUT manipulation.
I did a similar solution for background behind rx:flow-section.
I will need to examine and get back to you after the weekend.
Kevin Brown
(650) 327-1000 Direct
(650) 328-8008 Fax
(925) 395-1772 Mobile
skype:kbrown01
kevin@renderx.com <mailto:kevin@renderx.com>
sales@renderx.com <mailto:sales@renderx.com>
http://www.renderx.com <http://www.renderx.com/>
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of
Kirch Fritz
Sent: Friday, May 11, 2018 5:23 AM
To: 'RenderX Community Support List' <xep-support@renderx.com
<mailto:xep-support@renderx.com> >
Subject: [xep-support] Feature request: "gradient background color"
Dear XEP-Support team,
currently I am looking for a solution to specify gradient background images
to <fo:block> areas.
At antennahouse’s webpages I found this:
<https://www.antennahouse.com/antenna1/wp-content/uploads/2018/02/background
-image-gradient-1.pdf>
https://www.antennahouse.com/antenna1/wp-content/uploads/2018/02/background-
image-gradient-1.pdf
My question:
Can RenderX deliver a comparable functionality as described in that
antennahouse-PDF?
In what time frame can RenderX realize these features and what will be the
prize for this?
I think this would be a nice feature to increase the attractivity of RenderX
products.
Kind regards
Freundliche Grüße
Friedrich Kirch
IT2media
Nuremberg, Germany
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
This archive was generated by hypermail 2.1.8 : Fri May 11 2018 - 13:34:51 PDT