Adding PDF support #130

This commit is contained in:
Joel Pearson
2023-02-17 15:01:47 +11:00
committed by PlantUML
parent 8cb5ca0daf
commit 4a5e204e16
5 changed files with 67 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
String imgurl = request.getAttribute("imgurl").toString();
String svgurl = request.getAttribute("svgurl").toString();
String txturl = request.getAttribute("txturl").toString();
String pdfurl = request.getAttribute("pdfurl").toString();
String mapurl = request.getAttribute("mapurl").toString();
// map for diagram source if necessary
boolean hasMap = (boolean)request.getAttribute("hasMap");
@@ -79,6 +80,7 @@
<a href="<%= imgurl %>" title="View diagram as PNG">View as PNG</a>&nbsp;
<a href="<%= svgurl %>" title="View diagram as SVG">View as SVG</a>&nbsp;
<a href="<%= txturl %>" title="View diagram as ASCII Art">View as ASCII Art</a>&nbsp;
<a href="<%= pdfurl %>" title="View diagram as PDF">View as PDF</a>&nbsp;
<% if (hasMap) { %>
<a href="<%= mapurl %>">View Map Data</a>
<% } %>