diff --git a/ticdesk_org/util.py b/ticdesk_org/util.py
index 08f8285a0bc0a303e6e29a61c5dd761319404b15..865adf8d3cb7d46e7afa19ff6355576bd3d2335a 100644
--- a/ticdesk_org/util.py
+++ b/ticdesk_org/util.py
@@ -139,3 +139,5 @@ def tex_to_pdf(latex_str):
     with BytesIO(latex_str) as latex_file:
         # Build PDF
         pdf = build_pdf(latex_file, texinputs=texinputs)
+
+    return pdf