Changed code to update image reference to use href instead of bname attribute name
Added header information to xml for image link Replace bname with xlink:href for image references Added RNOWidthAdj flag for Braidwood
This commit is contained in:
@@ -162,7 +162,7 @@ namespace fmtxml
|
||||
{
|
||||
sb.Append("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n");
|
||||
sb.Append("<!--Proprietary Information - Copyright 2012 - Volian Enterprises, Inc. All rights reserved.-->\r\n");
|
||||
sb.Append("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8in\" height=\"10in\" viewBox=\"0 0 576 720\">\r\n");
|
||||
sb.Append("<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\" width=\"8in\" height=\"10in\" viewBox=\"0 0 576 720\">\r\n");
|
||||
sb.Append(string.Format(" <desc>{0}</desc>\r\n", file.Name.ToLower().Replace(".rtf", "")));
|
||||
svg = true;
|
||||
return svg;
|
||||
@@ -234,7 +234,7 @@ namespace fmtxml
|
||||
string bmWidth = bmp.Width.ToString() + "px";
|
||||
string bmHeight = bmp.Height.ToString() + "px";
|
||||
//Console.WriteLine("'{0}'", bmFileName);
|
||||
sb.Append(string.Format(" <image x=\"{0}\" y=\"{1}\" width=\"{2}\" height=\"{3}\" bname=\"{4}\"/>\r\n",
|
||||
sb.Append(string.Format(" <image x=\"{0}\" y=\"{1}\" width=\"{2}\" height=\"{3}\" xlink:href=\"{4}\"/>\r\n",
|
||||
TwipsToPointsX(bitmapMatch.Groups[1].Value),
|
||||
TwipsToPointsY(bitmapMatch.Groups[2].Value),
|
||||
bmWidth,
|
||||
|
Reference in New Issue
Block a user