[xep-support] Re: Feature request: "gradient background color"

From: Kevin Brown <kevin_at_ADDRESS_REMOVED>
Date: Fri May 11 2018 - 13:36:16 PDT

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"


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,&lt;svg
xmlns=&#34;http://www.w3.org/2000/svg&#34; width=&#34;2in&#34;
height=&#34;2in&#34;&gt;&#xA; &lt;defs&gt;&#xA;
&lt;linearGradient id=&#34;myLinearGradient1&#34;&gt;&#xA;
&lt;stop offset=&#34;0&#34; stop-color=&#34;#11908d&#34;
stop-opacity=&#34;1&#34;/&gt;&#xA; &lt;stop
offset=&#34;1&#34; stop-color=&#34;#646452&#34;
&lt;/linearGradient&gt;&#xA; &lt;/defs&gt;&#xA;
&lt;rect width=&#34;&#xA; 2in&#34; height=&#34;2in&#34;
&lt;/svg&gt;&#xA; " 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


Kevin Brown

(650) 327-1000 Direct

(650) 328-8008 Fax

(925) 395-1772 Mobile


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


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:

My question:
Can RenderX deliver a comparable functionality as described in that
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

Kind regards
Freundliche Grüße

Friedrich Kirch

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

Received on Fri May 11 13:34:46 2018

This archive was generated by hypermail 2.1.8 : Fri May 11 2018 - 13:34:51 PDT