Skip to main content
Participant
Dec 13, 2017 6:42 PM UTC
Answered

javascript identity.login not working

I have created an Adobe Acrobat form that has a textbox that retrieves the windows logged in user using JavaScript with identity.login. This works fine when the document is opened with the Adobe Reader. I have uploaded the document to our SharePoint Online. The document now opens in the browser in SharePoint Online, but, fails on retrieving the login of the user. How can I make this work?

This topic is closed to new replies. Start a new post to keep the conversation going.
Thom Parker
Thom ParkerCorrect answer
Community Expert
Dec 14, 2017 12:26 AM UTC

Did you read the reference entry for the "Identity" object?

Acrobat DC SDK Documentation

This object is protected and requires a privileged context.  There is no way it could have worked in Reader unless, it was in a stamp script.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often

3 replies

Legend
Dec 13, 2017 8:00 PM UTC

Perhaps you are no longer using Adobe technology. What browser is it? You say it "fails" - what is the failure?

Translate
Participant
Dec 13, 2017 8:45 PM UTC

The browser is IE 11. The text box returns Undefined instead of the login, (e.g., abc1). The Adobe PDF Reader plugin is Enabled.

Name:                   Adobe PDF Reader

Publisher:              Adobe Systems, Incorporated

Type:                   ActiveX Control

Architecture:           32-bit and 64-bit

Version:                17.12.20093.238000

File date:              ‎Monday, ‎July ‎31, ‎2017, ‏‎6:31 PM

Date last accessed:     ‎Today, ‎December ‎13, ‎2017, ‏‎5 hours ago

Class ID:               {CA8A9780-280D-11CF-A24D-444553540000}

Use count:              0

Block count:            94

File:                   AcroPDF64.dll

Folder:                 C:\Program Files (x86)\Common Files\Adobe\Acrobat\ActiveX

Translate
Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
Dec 14, 2017 12:26 AM UTC

Did you read the reference entry for the "Identity" object?

Acrobat DC SDK Documentation

This object is protected and requires a privileged context.  There is no way it could have worked in Reader unless, it was in a stamp script.

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often