Reading tooltip text from acrofields
"Mukesh" <[email protected]> Wed, 4 May 2016 16:08:58 +0530
| Newsgroups | gmane.comp.java.lib.itext.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart message in MIME format.
--===============8927858728425314890==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0012_01D1A61F.45A91180"
Content-Language: en-in
This is a multipart message in MIME format.
------=_NextPart_000_0012_01D1A61F.45A91180
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi,
I'm working on a PDF form now. It has text fields and checkboxes in it. Now
I'm able to read the fields and its values using the following code
using (var reader = new PdfReader(FormLocation))
{
var fields = reader.AcroFields.Fields;
foreach (var key in fields.Keys)
{
var value = reader.AcroFields.GetField(key);
Response.Write(key + " : " + value);
}
}
Is there any way I can read the tooltip text of each fields?
Thanks,
Mukesh
------=_NextPart_000_0012_01D1A61F.45A91180
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 15 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-IN =
link=3D"#0563C1" vlink=3D"#954F72"><div class=3DWordSection1><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana",sans-serif;color:black;ba=
ckground:white'>Hi,<span =
class=3Dapple-converted-space> </span></span><span =
style=3D'font-size:10.0pt;font-family:"Verdana",sans-serif;color:black'><=
br><br><span style=3D'background:white'>I'm working on a PDF form now. =
It has text fields and checkboxes in it. Now I'm able to read the fields =
and its values using the following code<span =
class=3Dapple-converted-space> </span></span><br><br><span =
style=3D'background:white'> &nbs=
p; using (var reader =3D new =
PdfReader(FormLocation))<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'> =
{<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'> =
var fields =3D =
reader.AcroFields.Fields;<span =
class=3Dapple-converted-space> </span></span><br><br><span =
style=3D'background:white'> =
foreach (var key in fields.Keys)<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'> =
{<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'> =
var value =3D =
reader.AcroFields.GetField(key);<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'> =
Response.Write(key + " : =
" + value);<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'> =
}<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'> =
}<span =
class=3Dapple-converted-space> </span></span><br><br><span =
style=3D'background:white'>Is there any way I can read the tooltip text =
of each fields?<span =
class=3Dapple-converted-space> </span></span><br><br><span =
style=3D'background:white'>Thanks,<span =
class=3Dapple-converted-space> </span></span><br><span =
style=3D'background:white'>Mukesh</span></span><o:p></o:p></p></div></bod=
y></html>
------=_NextPart_000_0012_01D1A61F.45A91180--
--===============8927858728425314890==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
--===============8927858728425314890==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
--===============8927858728425314890==--