Advanced PDF Tips

It’s mind-blowing to think about the multitude of animals that exist in this world.


74

Declaring  Local Variable In Advanced PDF:

<#assign x=10>  // In advanced PDF assign keyword works as a local variable.
if you used above variable(x) in list then you can't get that value outside 
of list .For getting that value you should use global variable.
EX:

  <#list 1..3 as n>
 <#assign x=x+1>
</#list>

Declaring  Global Variable In Advanced PDF:
<#global x=10>//In Advanced PDF global keyword works as global variable.
EX:
 <#global x=10>
<#list 1..3 as n>
 <#assign x=x+1>
</#list>
${x}

Split Functionality:
We can use split keyword in Advanced PDF.
EX:
<#list "some,,test,text,"?split(",") as x>
  ${x}
</#list>


Note:Please refer below link to all supported methods on advanced Pdf
http://freemarker.org/docs/alphaidx.html

admin

0 Comments

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