Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

How to center chars inside of cells of the comb field (text field)?

$
0
0

Hello gurus,

 

[Intro]

I'm working on preparation of the legal form for tax return.  Due to sophisticated form structure and customer's demand to prepare return of enourmous size (more than thusand pages) I decided to remake obsolete form using "comb of" option in order to reduce size of the source and prevent memory allocation issues on customer side.

 

[Issue details]

Legal requirement is to have typeface Courier New 16pt-18pt and cells of the certain size.

This is how the form provided by tax authorities looks like:

adobe1.png

Here you can see that chars are somehow centered inside of the cells but when I create comb in my livecycle designer it is not the case and I have different layout:

adobe2.png

Look how letters are placed inside of the cells. After some research I've found out that there is a left margin which always exists in every cell of the comb, most probably triggered by the border. Tried to edit XML source but didn't achieve any significant success. The issue is not caused by the narrowness of the cells and reproductible even with extra wide ones.

 

Here is my current XML:            

          <field h="5.7mm" name="STR_230_TOT_TX" w="60mm" x="4.264278in" y="4.458417in" anchorType="middleCenter">               <ui>                  <textEdit hScrollPolicy="off">                     <border hand="right">                        <edge stroke="dotted"/>                        <corner stroke="dotted" thickness="0.176mm"/>                     </border>                     <margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>                     <para hAlign="left" vAlign="top"/>                     <comb numberOfCells="15"/>                  </textEdit>               </ui>               <font size="16pt" typeface="Courier New"/>               <margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>               <bind match="dataRef" ref="N140_TAX_AMOUNT"/>               <assist>                  <speak disable="1"/>               </assist>            </field>

 

This is how comb field is supposed to be rendered (screenshot from the documentation):

adobe3.png

Everything is centered and it is a behaviour I supposed to see.

 

Are there any possible solutions how to place chars at center of the cells?


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>