changeset 72573 | a085a1a89388 |
parent 71601 | 97ccf48c2f0c |
child 73340 | 0ffcad1f6130 |
--- a/src/Tools/Graphview/graph_file.scala Wed Nov 11 20:55:25 2020 +0100 +++ b/src/Tools/Graphview/graph_file.scala Wed Nov 11 20:58:36 2020 +0100 @@ -44,4 +44,11 @@ write(file, graphview) } + + def make_pdf(options: Options, graph: Graph_Display.Graph): Bytes = + Isabelle_System.with_tmp_file("graph", ext = "pdf")(graph_file => + { + write(options, graph_file.file, graph) + Bytes.read(graph_file) + }) }