How to hide/show line of table in PDF file in PDF Maker

How to hide/show line of table in PDF file in PDF Maker

Have you ever met with this situation?
You have a great template for Invoice but if for example discount = 0 you need to edit template and remove line because it does not looks so great.

If your answer is Yes then this article certainly helps you.

So how to edit your template to hide/show line based on field?

First at all, I have to say that this manual is only for PDF Maker Professional because you need to use Custom Function.

Let’s start:

  1. Find in your template line in table that you want to hide/show and click into this line
  2. Go to Other information tab
  3. And click on Custom functions
  1. Find its4you_if or its4you_isnull function and add into line you want to hide/shows (I recommend to use is4you_isnull)
  1. Now add your field (for example: $TOTALDISCOUNT$) into function:
    • its4you_if: [CUSTOMFUNCTION|its4you_if|$TOTALDISCOUNT$|=|0,00|whatToReturn1|whatToReturn2|CUSTOMFUNCTION]​
      or
    • its4you_isnull: [CUSTOMFUNCTION|its4you_isnull|$TOTALDISCOUNT$|whatToReturn1|whatToReturn2|CUSTOMFUNCTION]
  1. Replace whatToReturn1 with #HIDETR# and delete whatToReturn2
  1. Save your template and enjoy your PDF file

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *


We use cookies to improve our website. By browsing this website, you agree to our use of cookies. More info

How to hide/show line of table in PDF file in PDF Maker - IT-Solutions4You