# New Template - Blank PDF

**URL:** <https://forum.manager.io/t/new-template-blank-pdf/10276>\
**Category:** Uncategorized\
**Created:** [June 28, 2017, 3:38pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276 "2017-06-28T15:38:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![primewaydesign](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/primewaydesign/32/6528_2.png) [@primewaydesign](https://forum.manager.io/u/primewaydesign)\
**Post date:** [June 28, 2017, 3:38pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/1 "2017-06-28T15:38:15Z")

</div>

Hi everyone,

We are trying to create a new template for myself, which so far displays and prints alright.  
But PDF is generating only blank pages, same goes when sending via email.

Other templates work fine with PDF generation.

We are using Manager version 17.4.18 on Windows 10 (Build: 15063.413).

Here is the code for the template (currently unfinished):  
Link: [Manager New Invoice Template - Pastebin.com](https://pastebin.com/nNpZSVS9)

We need your help. Many thanks in advanced.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [June 28, 2017, 4:06pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/2 "2017-06-28T16:06:52Z")

</div>

First, you need to update your software. Current version is 17.6.60. Templates don’t work with the old version you have. They are only supported after version 17.6.0.

---

<div class="post-metadata">

**Author:** ![primewaydesign](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/primewaydesign/32/6528_2.png) [@primewaydesign](https://forum.manager.io/u/primewaydesign)\
**Post date:** [June 28, 2017, 4:45pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/3 "2017-06-28T16:45:15Z")

</div>

@Tut many thanks for the update. Now we are using 17.6.60 and the problem is not solved.

Any idea?

---

<div class="post-metadata">

**Author:** ![primewaydesign](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/primewaydesign/32/6528_2.png) [@primewaydesign](https://forum.manager.io/u/primewaydesign)\
**Post date:** [June 28, 2017, 7:55pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/4 "2017-06-28T19:55:49Z")

</div>

Just discovered that when you remove line 1-20 of the template you get an error message.  
You can check the screenshot here:

![](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/b/b587f4c72138a072969ff0ee7f8ffcca8e5bc92d.png)

Please help.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [June 28, 2017, 8:33pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/5 "2017-06-28T20:33:04Z")

</div>

Are you saying you removed the first 20 lines of code for the template, yet expected it to work? It sounds like you need professional software coding support, which is not the purpose of this forum. Hire someone locally who can program in Liquid.

---

<div class="post-metadata">

**Author:** ![primewaydesign](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/primewaydesign/32/6528_2.png) [@primewaydesign](https://forum.manager.io/u/primewaydesign)\
**Post date:** [June 28, 2017, 8:41pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/6 "2017-06-28T20:41:10Z")

</div>

No, I’m saying when I remove the first 20 of my template, I get this error.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [June 28, 2017, 8:47pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/7 "2017-06-28T20:47:39Z")

</div>

Your response does not clarify things. Exactly what “first 20” of your template did you remove, if not lines of code? And when you refer to “my template”, are you referring to something you adapted from one of the templates from the Manager web site or the unfinished one you posted on pastebin?

---

<div class="post-metadata">

**Author:** ![primewaydesign](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/primewaydesign/32/6528_2.png) [@primewaydesign](https://forum.manager.io/u/primewaydesign)\
**Post date:** [June 28, 2017, 9:06pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/8 "2017-06-28T21:06:28Z")

</div>

I’m about to create a new template from scratch.  
Printing works fine. PDF not.  
While debugging I discovered the error mentioned above after clicking on “PDF”.  
But only when I remove the first 20 lines of the code from my new template.  
When I add the first 20 lines of the code back to the template then the “PDF” generates blank page.

Hope that’s clear now.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [June 28, 2017, 9:50pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/9 "2017-06-28T21:50:55Z")

</div>

Not very clear. Apparently, you are using attributes or declarations or something in your code not supported by Manager. I’d start by leaving out the fonts.

---

<div class="post-metadata">

**Author:** ![DonnyMoskow](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@DonnyMoskow](https://forum.manager.io/u/DonnyMoskow)\
**Post date:** [January 7, 2019, 3:21am UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/10 "2019-01-07T03:21:26Z")

</div>

A bit late to the party but I had the same issue. I think you forgot to close a statement somewhere.  
In my case I put something in a table and forgot the -/tr- and -/table- somewhere and then the PDF or email will just spit out blanks.

---

<div class="post-metadata">

**Author:** ![primewaydesign](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/primewaydesign/32/6528_2.png) [@primewaydesign](https://forum.manager.io/u/primewaydesign)\
**Post date:** [January 8, 2019, 7:52pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/11 "2019-01-08T19:52:26Z")

</div>

Good to know. Thanks Donny!

---

<div class="post-metadata">

**Author:** ![DonnyMoskow](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@DonnyMoskow](https://forum.manager.io/u/DonnyMoskow)\
**Post date:** [January 9, 2019, 1:07am UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/12 "2019-01-09T01:07:45Z")

</div>

No problem. Just noticed that the HTML disappears When enclosed so I editted my message.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 18, 2023, 3:03pm UTC](https://forum.manager.io/t/new-template-blank-pdf/10276/13 "2023-01-18T15:03:26Z")

</div>

Closed on January 18, 2023, 3:03pm UTC


