使用HighCharts开发报表图形,最后碰到了如何将图形以图片和Pdf的形式导出,从dengsilinming的文章中获得了启示,非常感谢网上的各位大神,
http://blog.csdn.net/dengsilinming/article/details/7352054
因为工作的需要,工程使用了SpringMVC框架,以下发布index.jsp、highCharts.jsp和CommonControl.java的代码,所需要的jar包和配置文件可以从以下链接中下载。
http://download.csdn.net/detail/white_smile/6936623
index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
</head>
<body>
<ul>
<li><a href="highCharts.htm">HighCharts导出图片</a></li>
</ul>
</body>
</html>
highCharts.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!