import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream; import org.apache.batik.transcoder.TranscoderException;
import org.apache.batik.transcoder.TranscoderInput;
import org.apache.batik.transcoder.TranscoderOutput;
import org.apache.batik.transcoder.image.PNGTranscoder; /**
* 将svg转换为png格式的图片
*
*
*/
public class testPDF { /**
* 将svg字符串转换为png
*
* @param svgCode svg代码
* @param pngFilePath 保存的路径
* @throws TranscoderException svg代码异常
* @throws IOException io错误
*/
public static void convertToPng(String svgCode, String pngFilePath) throws IOException,
TranscoderException { File file = new File(pngFilePath); FileOutputStream outputStream = null;
try {
file.createNewFile();
outputStream = new FileOutputStream(file);
convertToPng(svgCode, outputStream);
} finally {
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
} /**
* 将svgCode转换成png文件,直接输出到流中
*
* @param svgCode svg代码
* @param outputStream 输出流
* @throws TranscoderException 异常
* @throws IOException io异常
*/
public static void convertToPng(String svgCode, OutputStream outputStream)
throws TranscoderException, IOException {
try {
byte[] bytes = svgCode.getBytes("utf-8");
PNGTranscoder t = new PNGTranscoder();
TranscoderInput input = new TranscoderInput(new ByteArrayInputStream(bytes));
TranscoderOutput output = new TranscoderOutput(outputStream);
t.transcode(input, output);
outputStream.flush();
} finally {
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
} public static void main(String[] args) {
String outimgfilename = "d://svg.png";
// String tmp_str = "<svg version=\"1.1\" style=\"font-family:\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif;font-size:12px;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"1154\" height=\"400\"><desc>Created with Highcharts 4.1.7</desc><defs><clipPath id=\"highcharts-32\"><rect x=\"0\" y=\"0\" width=\"1055\" height=\"299\"></rect></clipPath></defs><rect x=\"0\" y=\"0\" width=\"1154\" height=\"400\" strokeWidth=\"0\" fill=\"#f8f8f8\" class=\" highcharts-background\"></rect><g class=\"highcharts-grid\" zIndex=\"1\"></g><g class=\"highcharts-grid\" zIndex=\"1\"><path fill=\"none\" d=\"M 79 309.5 L 1134 309.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" zIndex=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 249.5 L 1134 249.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" zIndex=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 189.5 L 1134 189.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" zIndex=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 130.5 L 1134 130.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" zIndex=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 70.5 L 1134 70.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" zIndex=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 9.5 L 1134 9.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" zIndex=\"1\" opacity=\"1\"></path></g><g class=\"highcharts-axis\" zIndex=\"2\"><path fill=\"none\" d=\"M 117.5 309 L 117.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 156.5 309 L 156.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 195.5 309 L 195.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 234.5 309 L 234.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 273.5 309 L 273.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 312.5 309 L 312.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 352.5 309 L 352.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 391.5 309 L 391.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 430.5 309 L 430.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 469.5 309 L 469.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 508.5 309 L 508.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 547.5 309 L 547.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 586.5 309 L 586.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 625.5 309 L 625.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 664.5 309 L 664.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 703.5 309 L 703.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 742.5 309 L 742.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 781.5 309 L 781.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 820.5 309 L 820.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 859.5 309 L 859.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 899.5 309 L 899.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 938.5 309 L 938.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 977.5 309 L 977.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 1016.5 309 L 1016.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 1055.5 309 L 1055.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 1094.5 309 L 1094.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 1134.5 309 L 1134.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 78.5 309 L 78.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 309.5 L 1134 309.5\" stroke=\"#C0D0E0\" stroke-width=\"1\" zIndex=\"7\" visibility=\"visible\"></path></g><g class=\"highcharts-axis\" zIndex=\"2\"><text x=\"26.359375\" zIndex=\"7\" text-anchor=\"middle\" transform=\"translate(0,0) rotate(270 26.359375 159.5)\" class=\" highcharts-yaxis-title\" style=\"color:#707070;fill:#707070;\" visibility=\"visible\" y=\"159.5\">时长(秒)</text></g><g class=\"highcharts-series-group\" zIndex=\"3\"><g class=\"highcharts-series highcharts-tracker\" visibility=\"visible\" zIndex=\"0.1\" transform=\"translate(79,10) scale(1 1)\" style=\"\" ><rect x=\"10.5\" y=\"60.5\" width=\"18\" height=\"239\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"49.5\" y=\"280.5\" width=\"18\" height=\"19\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"88.5\" y=\"285.5\" width=\"18\" height=\"14\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"127.5\" y=\"292.5\" width=\"18\" height=\"7\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"166.5\" y=\"293.5\" width=\"18\" height=\"6\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"205.5\" y=\"294.5\" width=\"18\" height=\"5\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"244.5\" y=\"295.5\" width=\"18\" height=\"4\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"283.5\" y=\"295.5\" width=\"18\" height=\"4\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"322.5\" y=\"295.5\" width=\"18\" height=\"4\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"361.5\" y=\"296.5\" width=\"18\" height=\"3\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"400.5\" y=\"296.5\" width=\"18\" height=\"3\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"439.5\" y=\"296.5\" width=\"18\" height=\"3\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"478.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"518.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"557.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"596.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"635.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"674.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"713.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"752.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"791.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"830.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"869.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"908.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"947.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"986.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"1025.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect></g><g class=\"highcharts-markers\" visibility=\"visible\" zIndex=\"0.1\" transform=\"translate(79,10) scale(1 1)\" clip-path=\"none\"></g></g><g class=\"highcharts-axis-labels highcharts-xaxis-labels\" zIndex=\"7\"><text x=\"101.813645214193\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 101.813645214193 324)\" y=\"324\" opacity=\"1\"><tspan>角标</tspan></text><text x=\"140.88771928826708\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 140.88771928826708 324)\" y=\"324\" opacity=\"1\"><tspan>互动支持</tspan></text><text x=\"179.96179336234115\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 179.96179336234115 324)\" y=\"324\" opacity=\"1\"><tspan>飞字</tspan></text><text x=\"219.03586743641523\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 219.03586743641523 324)\" y=\"324\" opacity=\"1\"><tspan>灯箱</tspan></text><text x=\"258.1099415104893\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 258.1099415104893 324)\" y=\"324\" opacity=\"1\"><tspan>实物摆放</tspan></text><text x=\"297.18401558456344\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 297.18401558456344 324)\" y=\"324\" opacity=\"1\"><tspan>口播</tspan></text><text x=\"336.25808965863746\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 336.25808965863746 324)\" y=\"324\" opacity=\"1\"><tspan>内容提示</tspan></text><text x=\"375.3321637327116\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 375.3321637327116 324)\" y=\"324\" opacity=\"1\"><tspan>压屏条</tspan></text><text x=\"414.4062378067857\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 414.4062378067857 324)\" y=\"324\" opacity=\"1\"><tspan>场景植入</tspan></text><text x=\"453.48031188085974\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 453.48031188085974 324)\" y=\"324\" opacity=\"1\"><tspan>麦标</tspan></text><text x=\"492.55438595493376\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 492.55438595493376 324)\" y=\"324\" opacity=\"1\"><tspan>大屏幕</tspan></text><text x=\"531.6284600290078\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 531.6284600290078 324)\" y=\"324\" opacity=\"1\"><tspan>片尾拉滚</tspan></text><text x=\"570.7025341030819\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 570.7025341030819 324)\" y=\"324\" opacity=\"1\"><tspan>人名提示条</tspan></text><text x=\"609.7766081771559\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 609.7766081771559 324)\" y=\"324\" opacity=\"1\"><tspan>协助播映</tspan></text><text x=\"648.8506822512301\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 648.8506822512301 324)\" y=\"324\" opacity=\"1\"><tspan>道具植入</tspan></text><text x=\"687.9247563253041\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 687.9247563253041 324)\" y=\"324\" opacity=\"1\"><tspan>产品使用</tspan></text><text x=\"726.9988303993782\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 726.9988303993782 324)\" y=\"324\" opacity=\"1\"><tspan>微信微博互动</tspan></text><text x=\"766.0729044734522\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 766.0729044734522 324)\" y=\"324\" opacity=\"1\"><tspan>PAD屏</tspan></text><text x=\"805.1469785475264\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 805.1469785475264 324)\" y=\"324\" opacity=\"1\"><tspan>片尾鸣谢</tspan></text><text x=\"844.2210526216004\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 844.2210526216004 324)\" y=\"324\" opacity=\"1\"><tspan>歌名条</tspan></text><text x=\"883.2951266956745\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 883.2951266956745 324)\" y=\"324\" opacity=\"1\"><tspan>广告关版</tspan></text><text x=\"922.3692007697485\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 922.3692007697485 324)\" y=\"324\" opacity=\"1\"><tspan>虚拟模型</tspan></text><text x=\"961.4432748438227\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 961.4432748438227 324)\" y=\"324\" opacity=\"1\"><tspan>过渡片</tspan></text><text x=\"1000.5173489178967\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 1000.5173489178967 324)\" y=\"324\" opacity=\"1\"><tspan>片头冠名</tspan></text><text x=\"1039.591422991971\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 1039.591422991971 324)\" y=\"324\" opacity=\"1\"><tspan>实物模型</tspan></text><text x=\"1078.6654970660452\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 1078.6654970660452 324)\" y=\"324\" opacity=\"1\"><tspan>广告开版</tspan></text><text x=\"1117.739571140119\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 1117.739571140119 324)\" y=\"324\" opacity=\"1\"><tspan>笔记本背贴</tspan></text></g><g class=\"highcharts-axis-labels highcharts-yaxis-labels\" zIndex=\"7\"><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:371px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"313\" opacity=\"1\">0k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:371px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"74\" opacity=\"1\">100k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:371px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"253\" opacity=\"1\">25k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:371px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"193\" opacity=\"1\">50k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:371px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"134\" opacity=\"1\">75k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:371px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"14\" opacity=\"1\">125k</text></g><g class=\"highcharts-tooltip\" zIndex=\"8\" style=\"cursor:default;padding:0;white-space:nowrap;\" transform=\"translate(0,-9999)\"><path fill=\"none\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\" isShadow=\"true\" stroke=\"black\" stroke-opacity=\"0.049999999999999996\" stroke-width=\"5\" transform=\"translate(1, 1)\"></path><path fill=\"none\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\" isShadow=\"true\" stroke=\"black\" stroke-opacity=\"0.09999999999999999\" stroke-width=\"3\" transform=\"translate(1, 1)\"></path><path fill=\"none\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\" isShadow=\"true\" stroke=\"black\" stroke-opacity=\"0.15\" stroke-width=\"1\" transform=\"translate(1, 1)\"></path><path fill=\"#FFFFFF\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\"></path></g></svg>";
String tmp_str = "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" style=\"font-family:'lucida grande', 'lucida sans unicode', arial, helvetica, sans-serif;font-size:12px;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"600\" height=\"400\"><desc>Created with Highcharts 4.1.7</desc><defs><clipPath id=\"highcharts-244\"><rect x=\"0\" y=\"0\" width=\"501\" height=\"299\"></rect></clipPath></defs><rect x=\"0\" y=\"0\" width=\"600\" height=\"400\" strokeWidth=\"0\" fill=\"#f8f8f8\" class=\" highcharts-background\"></rect><g class=\"highcharts-grid\" ></g><g class=\"highcharts-grid\" ><path fill=\"none\" d=\"M 79 309.5 L 580 309.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 249.5 L 580 249.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 189.5 L 580 189.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 130.5 L 580 130.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 70.5 L 580 70.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 9.5 L 580 9.5\" stroke=\"#D8D8D8\" stroke-width=\"1\" opacity=\"1\"></path></g><g class=\"highcharts-axis\" ><path fill=\"none\" d=\"M 97.5 309 L 97.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 115.5 309 L 115.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 134.5 309 L 134.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 152.5 309 L 152.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 171.5 309 L 171.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 189.5 309 L 189.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 208.5 309 L 208.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 226.5 309 L 226.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 245.5 309 L 245.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 264.5 309 L 264.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 282.5 309 L 282.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 301.5 309 L 301.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 319.5 309 L 319.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 338.5 309 L 338.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 356.5 309 L 356.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 375.5 309 L 375.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 393.5 309 L 393.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 412.5 309 L 412.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 431.5 309 L 431.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 449.5 309 L 449.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 468.5 309 L 468.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 486.5 309 L 486.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 505.5 309 L 505.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 523.5 309 L 523.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 542.5 309 L 542.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 560.5 309 L 560.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 580.5 309 L 580.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 78.5 309 L 78.5 319\" stroke=\"#C0D0E0\" stroke-width=\"1\" opacity=\"1\"></path><path fill=\"none\" d=\"M 79 309.5 L 580 309.5\" stroke=\"#C0D0E0\" stroke-width=\"1\" visibility=\"visible\"></path></g><g class=\"highcharts-axis\" ><text x=\"26.359375\" text-anchor=\"middle\" transform=\"translate(0,0) rotate(270 26.359375 159.5)\" class=\" highcharts-yaxis-title\" style=\"color:#707070;fill:#707070;\" visibility=\"visible\" y=\"159.5\">时长(秒)</text></g><g class=\"highcharts-series-group\" ><g class=\"highcharts-series\" visibility=\"visible\" transform=\"translate(79,10) scale(1 1)\" clip-path=\"url(#highcharts-244)\"><rect x=\"-0.5\" y=\"60.5\" width=\"18\" height=\"239\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"18.5\" y=\"280.5\" width=\"18\" height=\"19\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"36.5\" y=\"285.5\" width=\"18\" height=\"14\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"55.5\" y=\"292.5\" width=\"18\" height=\"7\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"74.5\" y=\"293.5\" width=\"18\" height=\"6\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"92.5\" y=\"294.5\" width=\"18\" height=\"5\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"111.5\" y=\"295.5\" width=\"18\" height=\"4\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"129.5\" y=\"295.5\" width=\"18\" height=\"4\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"148.5\" y=\"295.5\" width=\"18\" height=\"4\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"166.5\" y=\"296.5\" width=\"18\" height=\"3\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"185.5\" y=\"296.5\" width=\"18\" height=\"3\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"203.5\" y=\"296.5\" width=\"18\" height=\"3\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"222.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"241.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"259.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"278.5\" y=\"297.5\" width=\"18\" height=\"2\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"296.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"315.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"333.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"352.5\" y=\"298.5\" width=\"18\" height=\"1\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"370.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"389.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"408.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"426.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"445.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"463.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect><rect x=\"482.5\" y=\"299.5\" width=\"18\" height=\"0\" stroke=\"#FFFFFF\" stroke-width=\"1\" fill=\"#1b9ade\" rx=\"0\" ry=\"0\"></rect></g><g class=\"highcharts-markers\" visibility=\"visible\" transform=\"translate(79,10) scale(1 1)\" clip-path=\"none\"></g></g><g class=\"highcharts-axis-labels highcharts-xaxis-labels\" ><text x=\"91.55438595493374\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 91.55438595493374 324)\" y=\"324\" opacity=\"1\"><tspan>角标</tspan></text><text x=\"110.1099415104893\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 110.1099415104893 324)\" y=\"324\" opacity=\"1\"><tspan>互动支持</tspan></text><text x=\"128.66549706604488\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 128.66549706604488 324)\" y=\"324\" opacity=\"1\"><tspan>飞字</tspan></text><text x=\"147.22105262160042\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 147.22105262160042 324)\" y=\"324\" opacity=\"1\"><tspan>灯箱</tspan></text><text x=\"165.77660817715596\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 165.77660817715596 324)\" y=\"324\" opacity=\"1\"><tspan>实物摆放</tspan></text><text x=\"184.33216373271154\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 184.33216373271154 324)\" y=\"324\" opacity=\"1\"><tspan>口播</tspan></text><text x=\"202.88771928826708\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 202.88771928826708 324)\" y=\"324\" opacity=\"1\"><tspan>内容提示</tspan></text><text x=\"221.44327484382265\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 221.44327484382265 324)\" y=\"324\" opacity=\"1\"><tspan>压屏条</tspan></text><text x=\"239.9988303993782\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 239.9988303993782 324)\" y=\"324\" opacity=\"1\"><tspan>场景植入</tspan></text><text x=\"258.55438595493376\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 258.55438595493376 324)\" y=\"324\" opacity=\"1\"><tspan>麦标</tspan></text><text x=\"277.1099415104893\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 277.1099415104893 324)\" y=\"324\" opacity=\"1\"><tspan>大屏幕</tspan></text><text x=\"295.6654970660449\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 295.6654970660449 324)\" y=\"324\" opacity=\"1\"><tspan>片尾拉滚</tspan></text><text x=\"314.22105262160045\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 314.22105262160045 324)\" y=\"324\" opacity=\"1\"><tspan>人名提示条</tspan></text><text x=\"332.77660817715605\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 332.77660817715605 324)\" y=\"324\" opacity=\"1\"><tspan>协助播映</tspan></text><text x=\"351.3321637327116\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 351.3321637327116 324)\" y=\"324\" opacity=\"1\"><tspan>道具植入</tspan></text><text x=\"369.88771928826714\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 369.88771928826714 324)\" y=\"324\" opacity=\"1\"><tspan>产品使用</tspan></text><text x=\"388.4432748438227\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 388.4432748438227 324)\" y=\"324\" opacity=\"1\"><tspan>微信微博互动</tspan></text><text x=\"406.9988303993782\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 406.9988303993782 324)\" y=\"324\" opacity=\"1\"><tspan>PAD屏</tspan></text><text x=\"425.5543859549338\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 425.5543859549338 324)\" y=\"324\" opacity=\"1\"><tspan>片尾鸣谢</tspan></text><text x=\"444.10994151048936\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 444.10994151048936 324)\" y=\"324\" opacity=\"1\"><tspan>歌名条</tspan></text><text x=\"462.6654970660449\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 462.6654970660449 324)\" y=\"324\" opacity=\"1\"><tspan>广告关版</tspan></text><text x=\"481.22105262160045\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 481.22105262160045 324)\" y=\"324\" opacity=\"1\"><tspan>虚拟模型</tspan></text><text x=\"499.77660817715605\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 499.77660817715605 324)\" y=\"324\" opacity=\"1\"><tspan>过渡片</tspan></text><text x=\"518.3321637327115\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 518.3321637327115 324)\" y=\"324\" opacity=\"1\"><tspan>片头冠名</tspan></text><text x=\"536.887719288267\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 536.887719288267 324)\" y=\"324\" opacity=\"1\"><tspan>实物模型</tspan></text><text x=\"555.4432748438226\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 555.4432748438226 324)\" y=\"324\" opacity=\"1\"><tspan>广告开版</tspan></text><text x=\"573.9988303993781\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:400px;text-overflow:ellipsis;\" text-anchor=\"end\" transform=\"translate(0,0) rotate(-55 573.9988303993781 324)\" y=\"324\" opacity=\"1\"><tspan>笔记本背贴</tspan></text></g><g class=\"highcharts-axis-labels highcharts-yaxis-labels\" ><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:188px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"313\" opacity=\"1\">0k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:188px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"74\" opacity=\"1\">100k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:188px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"253\" opacity=\"1\">25k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:188px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"193\" opacity=\"1\">50k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:188px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"134\" opacity=\"1\">75k</text><text x=\"64\" style=\"color:#606060;cursor:default;font-size:11px;fill:#606060;width:188px;text-overflow:clip;\" text-anchor=\"end\" transform=\"translate(0,0)\" y=\"14\" opacity=\"1\">125k</text></g><g class=\"highcharts-tooltip\" style=\"cursor:default;padding:0;white-space:nowrap;\" transform=\"translate(0,-9999)\"><path fill=\"none\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\" stroke=\"black\" stroke-opacity=\"0.049999999999999996\" stroke-width=\"5\" transform=\"translate(1, 1)\"></path><path fill=\"none\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\" stroke=\"black\" stroke-opacity=\"0.09999999999999999\" stroke-width=\"3\" transform=\"translate(1, 1)\"></path><path fill=\"none\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\" stroke=\"black\" stroke-opacity=\"0.15\" stroke-width=\"1\" transform=\"translate(1, 1)\"></path><path fill=\"#FFFFFF\" d=\"M 3.5 0.5 L 13.5 0.5 C 16.5 0.5 16.5 0.5 16.5 3.5 L 16.5 13.5 C 16.5 16.5 16.5 16.5 13.5 16.5 L 3.5 16.5 C 0.5 16.5 0.5 16.5 0.5 13.5 L 0.5 3.5 C 0.5 0.5 0.5 0.5 3.5 0.5\"></path><text x=\"8\" style=\"font-size:12px;color:#333333;fill:#333333;\" y=\"20\"></text></g></svg>";
try {
convertToPng(tmp_str, outimgfilename);
} catch (IOException e) {
e.printStackTrace();
} catch (TranscoderException e) {
e.printStackTrace();
}
}

java通过SVG导出图片的更多相关文章

  1. java用freemarker导出数据到word(含多图片)

    一.制作word模版 新建word文档,按照需要设置好字体等各种格式:这里为了显得整齐使用了无边框的表格. 将word文档另存为xml文件(注意不是word xml文档,我吃了这家伙的大亏了) 然后用 ...

  2. Highcharts 本地导出图片 Java

    下载的Highcharts-2.3.5.zip 解压后 有 E:\Highcharts\Highcharts-2.3.5\exporting-server\java 目录 提供了Java实现的导出应用 ...

  3. highchart本地化导出图片

    因为项目执行在内容,并且本身自带的功能是想highcharts  server写文件然后再下载的,所以 highchart本地化导出图片 就非常须要. 第一步改动export.js 里的URl 在在e ...

  4. .net 下新版highcharts本地导出图片bug处理

    最近公司要用到highcharts这个插件来生成图表,所以我花了点时间研究了下. 现在最新的版本是3.0.2,这js插件居多优点就不比多说了,demo官网上也很详细.但是优点不爽的地方是,导出图片这个 ...

  5. Highcharts 本地导出图片和PDF asp.net mvc版

    啰嗦: 现在大家利用Highcharts开发时,有时候会遇到导出的功能问题,但是highcharts默认是链接自己的服务器上进行处理,但是有时候我们会连不上他的服务器,所以我们要让他在我们的服务器上进 ...

  6. hightchart导出图片

    通常在使用highchart导出图片pdf等文件时,我们一般直接引入exporting.js即可 执行导出操作则会直接请求highchart服务器,执行生成图片等操作,然后下载到客户端: 但这一切的操 ...

  7. JXLS 2.4.0系列教程(六)番外篇——导出图片(完结)

    突然想起来有同学说过能不能导出图片,本来我是想说不懂的,后来我上官网查了查,还挺容易.我就简短的写一写怎么导出图片. 官方提供了导出图片标签: jx:image(lastCell="D10& ...

  8. Java 通过Xml导出Excel文件,Java Excel 导出工具类,Java导出Excel工具类

    Java 通过Xml导出Excel文件,Java Excel 导出工具类,Java导出Excel工具类 ============================== ©Copyright 蕃薯耀 20 ...

  9. Activiti开发案例之activiti-app工作流导出图片

    前言 自从 Activiti 和 JBPM4 分家以后,Activiti 目前已经发展到了版本7,本着稳定性原则我们最终选择了6,之前还有一个版本5. 问题 在开发使用的过程中发现 Activiti ...

随机推荐

  1. Action、Category、Data、Extras知识具体解释

    开头 Intent作为联系各Activity之间的纽带,其作用并不仅仅仅仅限于简单的数据传递.通过其自带的属性,事实上能够方便的完毕非常多较为复杂的操作.比如直接调用拨号功能.直接自己主动调用合适的程 ...

  2. Linux下find命令具体解释

    1. find命令 linux的find命令用来查找文件,功能非常强大, 能够通过时间, 用户组, 文件名称, 文件类型, 权限,大小等来查找对应文件. 2. find的使用方法 通过find --h ...

  3. Eclipse build launcher 3具体步骤

    1. 下载launcher 3源代码  (需要FQ) git clone https://android.googlesource.com/platform/packages/apps/Launche ...

  4. IT该忍者神龟Jquery小工具easyUI物业摘要召回

    找了个时间看了下EasyUI插件.对它的插件感觉是非常舒服,特地把Easy UI的大部分功能属性做了一下汇总. 此属性列表请对比jQuery EasyUI 1.0.5,关于它的很多其它资讯请猛击这里. ...

  5. Codeforces Round #107 (Div. 2)---A. Soft Drinking

    Soft Drinking time limit per test 2 seconds memory limit per test 256 megabytes input standard input ...

  6. 开玩笑html5(五岁以下儿童)---绕地球月球,地球绕太阳运动(canvas实现,同样可以移动哦)

    请珍惜劳动小编成果,这篇文章是原来小编,转载请注明出处. 速度的參数与真实速度有点差距.大家能够自行调整 <!DOCTYPE html> <html> <head> ...

  7. Windows Phone 启动器

    http://msdn.microsoft.com/zh-CN/library/gg278408(v=vs.92)#BKMK_Launchers using Microsoft.Phone.Contr ...

  8. android变化HOLO对话风格

    andriod风修改对话框格,通过设置theme实现.一些要素需要通过Java代码更改,下面的对话框更改的步骤的例子称号. 1.写文本样式. DIALOG标题是textview,在sytles.xml ...

  9. UVa 10190 - Divide, But Not Quite Conquer!

    称号:给你第一个任期的等比数列和倒数公比,最后一个条目假定1这一系列的输出,否则输出Boring!. 分析:数学.递减的.所以公比的倒数一定要大于1.即m > 1. 然后在附加一个条件n  &g ...

  10. synchronized和进程间通信(转)

    关于JAVA多线程同步 JAVA多线程同步主要依赖于若干方法和关键字 1  wait方法: 该方法属于Object的方法,wait方法的作用是使得当前调用wait方法所在部分(代码块)的线程停止执行, ...