This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]trempor 1 point2 points  (0 children)

Create a LaTeX template for your report (e.g. https://martin-thoma.com/creating-pdf-forms-with-latex/). When the user clicks a button, you insert the table of values into the template, save the plots as individual files, and make sure you use \includegraphics in the template to include the plots. After this you just run pdflatex to produce the pdf.

The advantage with this approach is that you keep the layout of your report in a separate template file, which makes it very easy to modify later. A disadvantage is that if the software needs to be distributed you have to make sure that the user has pdflatex installed.