<p>I'm using the Enupal PDF plugin and am trying to pass a variable ID into my template that generates the PDF... I'm assuming the following documents how to pass the variable through to the template - (see image):</p>

<p><a href="https://i.sstatic.net/CQdTy.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CQdTy.png" alt="enter image description here"></a></p>

<p>But what I'm not told is how I should print this out in the pdf template. Outputting {{ foo }} doesn't work.</p>

<p>What am I doing wrong?</p>

CC BY-SA 4.0
2019-10-11T08:44:34.323Z
This probably won't help much, but {{ foo }} should work, i. e. it works in my usage of the plugin. So whatever the problem is, it's probably not your syntax as described above.
Udo
CC BY-SA 4.0
2019-11-19T13:46:51.083Z
Hi Dan, were you able to fix this issue? I'm unable to recreate this issue
Andre L.
CC BY-SA 4.0
2019-11-19T16:25:37.187Z
I believe this is due to an environment issue. Seems to work on local and production but not staging.
Dan Lee
<pdf><plugin-enupalpdf>
Enupal PDF plugin: Passing Variable to Template
# Enupal PDF plugin: Passing Variable to Template

(Asked by: username_0 on 2019-10-09)

I'm using the Enupal PDF plugin and am trying to pass a variable ID into my template that generates the PDF... I'm assuming the following documents how to pass the variable through to the template - (see image):

[![enter image description here](https://i.sstatic.net/CQdTy.png)](https://i.sstatic.net/CQdTy.png)

But what I'm not told is how I should print this out in the pdf template. Outputting {{ foo }} doesn't work.

What am I doing wrong?

**Tags:** pdf, plugin-enupalpdf
> **Comments:**
> **username_1**: This probably won't help much, but {{ foo }} should work, i. e. it works in my usage of the plugin. So whatever the problem is, it's probably not your syntax as described above.  
> **username_2**: Hi Dan, were you able to fix this issue? I'm unable to recreate this issue  
> **username_0**: I believe this is due to an environment issue. Seems to work on local and production but not staging.  

---

## 0 answers

