Security message when get url

Avatar

Avatar

I_s_m_a

Avatar

I_s_m_a

I_s_m_a

04-10-2016

Hi,

I'm trying to read xml data from url with this formcalc code.

Form1.Page1::initialize - (FormCalc, client)

     var url = "http://xxx..." //return xml

     field1.rawValue = Get(url);

The problem is when opening the pdf displays the following security message:

"Some features have been disabled to avoid potencial security risks. Only enable these features if you trust this document"

I can select 'Options' then 'Trust always' after which it works fine, the xml result is copied to field1.

It would be possible that this message don't shows to users when they will download this pdf? i mean enable these features by default. I would like the user to be able to open the pdf without select option 'Trust always' or 'Trust one time'

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

I_s_m_a

Avatar

I_s_m_a

I_s_m_a

07-10-2016

Ok, so if not certified the PDF form will not be possible to read an external value.

My idea was to write the last version number of pdf form in an XML, and so get this value from the event initialize PDF form.

So could be compared the pdf version, saved in a hidden field, with the last version recorded in the XML, and if they do not match alert the user to download the latest version.

Thanks for your answer

Avatar

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

386

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

386

Correct Answer

485
radzmar
MVP

04-10-2016

The message is shown for security reasons implemented in Acrobat or Reader. To get rid of it you have to certify your forms.

1037149_pastedImage_3.png