I'm sorry.
However, I don't consider this:
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfFormField.html
or this:
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/TextField.html
..to be documentation.
They are either an automatic listing of all the available methods or (at
best) a developer's tiny comments for each method taken right out of the
code.

And books, like "iText in Action", are not considered to be documetation
either.

That's documetation:
http://msdn.microsoft.com/en-us/library/system.io.stream.aspx

Even now that you have mentioned it, I don't really know where I should
have looked to learn that TextFields generate PdfFormFields. Should I
spend a whole month reading a book (that is not free and refers to Java,
by the way) before start using iTextSharp?

And why is it:
PdfFormField field = textfield.getTextField();
..and not :
PdfFormField field = textfield.getPdfFormField();
It doesn't even make sense...

Perhaps I should have searched more, indeed.
But I see no documetation and no obvious hint in the methods that suggest
what you've just said to me.
It makes me believe that iText is designed to be confusing and weird so
that people go and buy the book.

Anyway, thanks a lot. :)
I'm not nagging about the lack of documentation or anything.
I'm just nagging for you wondering why I haven't fugured it out yet.
iText has nothing obvious on it.
(If there is a documetation somewhere that I don't know of, let me know)

Best Regards.



> On Thu, 06 Jun 2013 16:40:41 +0200, _ <k...@dataverse.gr> wrote:
>
>> Can a TextField be locked the same way a PdfFormField can? As far as I
>> saw these two are not related in any way.
>
> Not related???
>
> Suppose that textfield is an instance of TextField, then you can do this:
> PdfFormField field = textfield.getTextField();
>
> TextField extends BaseField.
> BaseField and all its subclasses are CONVENIENCE OBJECTS.
> You can't do anything with them, but PREPARE the creation of a
> PdfFormField object.
>
> Your question reveals that you didn't read (or didn't understand) the
> documentation
> ;-)------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j_______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to