- There is always a 0.5in margin added to the list, see List Layout (XFA Spec 3.3) for more details
What you might have been after
- There is no option to add a leader (dots between the bullet/number and the text)
- When read by a screen reader like NVDA the bullet characters or numbers are not announced. In the example in the first dot point above, NVDA announces "What is your favourite fruit Apples Oranges Bananas" when what you probably wanted was "What is your favourite fruit bullet Apples bullet Oranges bullet Bananas"
This sample PDF Form makes to easy, just enter the text of your dot points, select the type of bullets or numbers, the spacing and if you want leaders or not and the Draw element (which implements the Text object) is output to the console.
You should see something like;
<draw name="Text1" w="196.85mm" minH="0in" xmlns="http://www.xfa.org/schema/xfa-template/3.6/">
<value>
<exData contentType="text/html">
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-indent:-10mm;xfa-tab-stops:left leader (dots page 3pt) 10mm"><span style="font-size:9pt">1.</span><span style="xfa-tab-count:1"/><span style="font-size:9pt">Oranges</span></p><p style="text-indent:-10mm;xfa-tab-stops:left leader (dots page 3pt) 10mm"><span style="font-size:9pt">2.</span><span style="xfa-tab-count:1"/><span style="font-size:9pt">Apples</span></p><p style="text-indent:-10mm;xfa-tab-stops:left leader (dots page 3pt) 10mm"><span style="font-size:9pt">3.</span><span style="xfa-tab-count:1"/><span style="font-size:9pt">Bananas</span></p></body>
</exData>
</value>
<ui>
<textEdit allowRichText="1"/>
</ui>
<font typeface="Myriad Pro"/>
</draw>
To add this to your form it might be easiest to add a Text object in the place you need, select it, then switch to the XML Source view. You should see a <draw>...</draw> element, which you can replace with the one copy and pasted from the JavaScript console.
The sample to generate the Draw element is Bullets.pdf.
A form containing samples of ES3 and customs bullet/number lists and how NVDA reads them is NVDA.Bullets.pdf.
No comments:
Post a Comment