How to use Tabs in pargaraphs (textflow)
-----------------------------------------
1. In PDFLib plugin create a Block
2. Set it to be a textflow
3. In Textflow tab set hortabmethod to ruler
4. In Tabs tab add any number of tabs with alignment
5. Add the tab charcater in text as appropriate.
To add a tab in text use the following syntax: <escapesequence=true>\t<escapesequence=false>
NOTE: For some reason the tab info is not always saved in PDFLib!! So use the following:
How to define the Tabs in inline Code
--------------------------------------
Use the following syntax:
<hortabmethod=ruler ruler={50 100} tabalignment={right right}>
50 is the location of the first tab just use \t to reach it, next tab is at 100 (both are right aligned)
Code Example:
-------------
paragraph
<hortabmethod=ruler ruler={50} tabalignment={left}><avoidbreak>{Phone}{Ext}{Fax No}{Mobile}{Email}
for Phone block:
prefix
<escapesequence=true>\t<escapesequence=false>Tel.<space>
postfix:
<nextline><leading=116%>
status:
noptint
for Ext block:
prefix
<escapesequence=true>\t<escapesequence=false>Ext.<space>
postfix:
<nextline><leading=116%>
status:
noptint
for Fax block:
prefix
<escapesequence=true>\t<escapesequence=false>Fax.<space>
postfix:
<nextline><leading=116%>
status:
noptint
for Mobile block:
prefix
<escapesequence=true>\t<escapesequence=false>Cell.<space>
postfix:
<nextline><leading=116%>
status:
noptint
HOW TO GET THE TAB POSITION
<hortabmethod=ruler ruler={50 100%} tabalignment={Left right}>
In the above example 50 is in points: So to get it you need to figure out how many inches from the beginning of the paragraph block is the first starting position. When you get the inchse multiply by 72 and that will give you your first position.
For the second position normally you would do the same thing which is find out what the second position is from the beginning of the paragraph block and multiply that by 72. In this case the second position is going to go to the end of the block and then print the contents starting from the right going left.
Remember that you can get the position of the left side of the block by looking in the Rectangle Coordinates Section in the PDF Lib Wizard: 1.67 1.97 2.02 2.10.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article