Hi, in order to give you a better support it would be good to get a sample PDF for discussion.
> Am 28.09.2016 um 16:14 schrieb [email protected]: > >> Because it hasn't been set. > How can it be set? How is it possible that Acroforms doesn't have a page > associated with it? Acroform should always be within some page, right? > an AcroForm is never inside a page but the widget annotations associated with the form fields are associated to a page. A page containing annotations has a /Annots entry specifiying an array of annotations. An annotation MAY have a /P entry entry specifying an indirect reference to the page it's associated with. Now getPage() return the value of that /P entry and null if that entry is not existent. That does not mean that the widget is not associated with a particular page as it is still contained in the pages /Annots entry. BR Maruan > On 2016-09-27 19:31 (+0300), Tilman Hausherr <[email protected]> wrote: >> Am 27.09.2016 um 13:47 schrieb Kirill Accusoft: >>> Inline image 1Hello. >>> My name is Kirill Dubinin, I am developer from Accsuoft. >>> >>> I have got a trouble with some pdf docs (in attach), here is the my steps: >>> >>> *acroform = doc.getDocumentCatalog().getAcroForm();* >>> *fields = acroform.getFields();* >>> *w = fields[0].getWidget();* >>> * >>> * >>> *???* >>> *w.getPage() // Return null * >>> *???* >>> * >>> * >>> Why widget.getPage return null ? >> >> Because it hasn't been set. >> >> >>> And looks like field object is not valid too. >> >> Why do you think that? >> >> Tilman >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

