Rendering remote images with librsvg

"Harper, Allen (AHARPER)" <AHARPER-Iw1l/[email protected]> Mon, 3 Apr 2017 21:44:46 +0000
Newsgroups gmane.comp.gnome.lib.librsvg.devel
Message-ID <[email protected]>
--===============7214101761233547034==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_1DA3D940F4439D478616D1E7C6B126A76BA0147FEXANPMB1arincco_"

--_000_1DA3D940F4439D478616D1E7C6B126A76BA0147FEXANPMB1arincco_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am attempting to render an SVG document in a remote ( web url ) image imb=
edded in the <image> node of the document. See below. I really need a lot o=
f help pulling together all the gnome projects to pull this off.
Rendering local files is not a problem, but we have a new customer that has=
 started embedding a WEB URL.

Can anyone please help.


SVG#1#<?xml version=3D'1.0' encoding=3D'utf-8'?><!DOCTYPE svg PUBLIC '-//W3=
C//DTD SVG 20000802//EN'       'http://www.w3.org/TR/2000/CR-SVG-20000802/D=
TD/svg-20000802.dtd'><svg xmlns=3D'http://www.w3.org/2000/svg'  xmlns:xlink=
=3D'http://www.w3.org/1999/xlink' width=3D'203mm' height=3D'82mm' text-rend=
ering=3D'optimizeLegibility'> <style type=3D'text/css' >      <![CDATA[text=
 {font-family: Arial;}          text.white_bold {  fill: white;    font-wei=
ght: bold;    font-size: 2.5mm;        }        text.white {  fill: white; =
   font-size: 3.0mm;} text.black_bold {          fill: black;            fo=
nt-weight: bold;            font-size: 2.5mm;                }text.black_6_=
upper {font-size: 6.0mm;text-transform:uppercase;font-weight: bold; }text.b=
lack_5_upper {font-size: 5.0mm;text-transform:uppercase;font-weight: bold; =
}text.black_4_upper {font-size: 4.0mm;text-transform:uppercase;font-weight:=
 bold; }text.black_3_upper {font-size: 3.0mm;text-transform:uppercase;font-=
weight: bold; }text.black_2_3_upper {font-size: 2.3mm;text-transform:upperc=
ase;font-weight: bold; }text.black_2_5_upper {font-size: 2.5mm;text-transfo=
rm:uppercase;font-weight: bold; }      ]]>    </style><g transform=3D'trans=
late(0,0)'>
<!-- latam logo -->
<image x=3D'107mm' y=3D'2mm' width=3D'30mm' height=3D'10mm' xlink:href=3D'L=
ATAM-logo-BP-BIG.png' preserveAspectRatio=3D'none' />
<image x=3D'177mm' y=3D'3.5mm' width=3D'18mm' height=3D'6mm' xlink:href=3D'=
LATAM-logo-BP-BIG.png' preserveAspectRatio=3D'none' />

<!-- one world logo -->
<image x=3D'149mm' y=3D'4mm' width=3D'6mm' height=3D'6mm' xlink:href=3D'one=
world.png' preserveAspectRatio=3D'none' />

<!-- Barcode -->
<image x=3D'2mm' y=3D'10mm' width=3D'25mm' height=3D'55mm' xlink:href=3D'ht=
tp://epaxbeta.lanchile.cl/cusskiosk/dynamicQueries.do?actionName=3Dbarcode&=
amp;logStream=3DM1PEREZ%2FJUAN++++++++++ECKBATE+SCLIQQLA+0162+048Y038A0001+=
048%3E2180++++++B++++++++++++++++2A045++++++++++0++++++++++++++++++++++++++=
+8&amp;orientation=3D90&amp;moduleWitdh=3D0.4&amp;resolution=3D300&amp;colu=
mnCount=3D6'/><!-- Left part -->


Thanks Al Harper

--_000_1DA3D940F4439D478616D1E7C6B126A76BA0147FEXANPMB1arincco_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Rockwell;
	panose-1:2 6 6 3 2 2 5 2 4 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Rockwell","serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">I am attempting to render an SVG document in a remote ( web =
url ) image imbedded in the &lt;image&gt; node of the document. See below. =
I really need a lot of help pulling together all the gnome projects
 to pull this off.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">Rendering local files is not a problem, but we have a new cu=
stomer that has started embedding a WEB URL.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">Can anyone please help.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">SVG#1#&lt;?xml version=3D'1.0' encoding=3D'utf-8'?&gt;&lt;!D=
OCTYPE svg PUBLIC '-//W3C//DTD SVG 20000802//EN'&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; 'http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd'&=
gt;&lt;svg xmlns=3D'http://www.w3.org/2000/svg'&nbsp;
 xmlns:xlink=3D'http://www.w3.org/1999/xlink' width=3D'203mm' height=3D'82m=
m' text-rendering=3D'optimizeLegibility'&gt; &lt;style type=3D'text/css' &g=
t;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;![CDATA[text {font-family: Arial;}&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text.white_bold {&nbsp; =
fill: white;&nbsp;&nbsp;&nbsp; font-weight: bold;&nbsp;&nbsp;&nbsp; font-si=
ze: 2.5mm;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text.white {&nbsp; fill: white=
;&nbsp;&nbsp;&nbsp; font-size: 3.0mm;} text.black_bold {&nbsp;&nbsp; &nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fill: black;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-weight: bold;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-size: 2.5mm;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; }text.black_6_upper {font-size: 6.0mm;text-transform:uppercase;font=
-weight: bold; }text.black_5_upper
 {font-size: 5.0mm;text-transform:uppercase;font-weight: bold; }text.black_=
4_upper {font-size: 4.0mm;text-transform:uppercase;font-weight: bold; }text=
.black_3_upper {font-size: 3.0mm;text-transform:uppercase;font-weight: bold=
; }text.black_2_3_upper {font-size:
 2.3mm;text-transform:uppercase;font-weight: bold; }text.black_2_5_upper {f=
ont-size: 2.5mm;text-transform:uppercase;font-weight: bold; }&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; ]]&gt;&nbsp;&nbsp;&nbsp; &lt;/style&gt;&lt;g transform=3D'=
translate(0,0)'&gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">&lt;!-- latam logo --&gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">&lt;image x=3D'107mm' y=3D'2mm' width=3D'30mm' height=3D'10m=
m' xlink:href=3D'LATAM-logo-BP-BIG.png' preserveAspectRatio=3D'none' /&gt;<=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">&lt;image x=3D'177mm' y=3D'3.5mm' width=3D'18mm' height=3D'6=
mm' xlink:href=3D'LATAM-logo-BP-BIG.png' preserveAspectRatio=3D'none' /&gt;=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">&lt;!-- one world logo --&gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">&lt;image x=3D'149mm' y=3D'4mm' width=3D'6mm' height=3D'6mm'=
 xlink:href=3D'oneworld.png' preserveAspectRatio=3D'none' /&gt;<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">&lt;!-- Barcode --&gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">&lt;image x=3D'2mm' y=3D'10mm' width=3D'25mm' height=3D'55mm=
' xlink:href=3D'http://epaxbeta.lanchile.cl/cusskiosk/dynamicQueries.do?act=
ionName=3Dbarcode&amp;amp;logStream=3DM1PEREZ%2FJUAN&#43;&#43;&#43;&#43;&#4=
3;&#43;&#43;&#43;&#43;&#43;ECKBATE&#43;SCLIQQLA&#43;0162&#43;048Y038A0001&#=
43;048%3E2180&#43;&#43;&#43;&#43;&#43;&#43;B&#43;&#43;&#43;&#43;&#43;&#43;&=
#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;2A045&#43;&#43;&#43;&#43;&=
#43;&#43;&#43;&#43;&#43;&#43;0&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;=
&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;=
&#43;&#43;&#43;8&amp;amp;orientation=3D90&amp;amp;moduleWitdh=3D0.4&amp;amp=
;resolution=3D300&amp;amp;columnCount=3D6'/&gt;&lt;!--
 Left part --&gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Rockwell&quot;,&quo=
t;serif&quot;">Thanks Al Harper<o:p></o:p></span></p>
</div>
</body>
</html>

--_000_1DA3D940F4439D478616D1E7C6B126A76BA0147FEXANPMB1arincco_--


--===============7214101761233547034==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============7214101761233547034==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Librsvg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/librsvg-devel

--===============7214101761233547034==--