Copy link to clipboard
Copied
Hello Community,
The following dialog is displayed when executing a program I made using Acrobat SDK.
The program does the following, terminates normally and security policies can be retrieved.
1. Open PDF file
2. Execute Javascript I made to get security policies
3. Close PDF file
This problem doesn't occurs on Acrobat Pro DC but Acrobat Pro 2020.
How can I do not to display this dialog?
Dialog
[Window Title]
Adobe Acrobat 2020
[Main Instruction]
Adobe Acrobat 2020 has stopped working
[Content]
A problem caused the program to stop working correctly.Please close the program.
[Debug]
Unhandled exception at 0x5B66A166(Acrobat.dll) in Acrobat.exe: 0xC0000005: Access violation reading location 0x00000002.
Program(C#)
using Acrobat;
using AFORMAUTLib;
・・・
AcroAVDoc avDoc = null;
CAcroPDDoc pdDoc = null;
Fields fields = null;
AFormApp formApp = null;
String filename = ConfigurationManager.AppSettings["DummyPdf"];
try {
avDoc = new AcroAVDoc();
avDoc.Open(filename, "");
formApp = new AFormApp();
fields = (Fields)formApp.Fields;
// Execute Javascript
string policyList = fields.ExecuteThisJavascript("getSecurityPolicy()");
Console.WriteLine(policyList);
}
catch (AcrobatException e)
{
_logger.Error(e);
throw e;
}
catch (Exception e)
{
_logger.Error(e);
throw new AcrobatException();
}
finally
{
if (fields != null)
{
Marshal.ReleaseComObject(fields);
}
if (formApp != null)
{
Marshal.ReleaseComObject(formApp);
}
if (avDoc != null)
{
avDoc.Close(1);
Marshal.ReleaseComObject(avDoc);
}
}
Environment
Windows Server 2016 Datacenter
Adobe Acrobat Pro 2020 : 2020 Release(Classic)|Version 2020.005.30418
Interop.Acrobat.dll File version : 1.1.0.0
Interop.AFORMAUTLib.dll File version : 1.0.0.0
Copy link to clipboard
Copied
Is your program interacting in any way with Windows 10 clients??
What licensing type was deployed with the Acrobat Pro 2020 Classic ?
Copy link to clipboard
Copied
This program does not interact with Windows 10 clients.
License is as follows:
TLP 5.0 LICENSE PROGRAM - CORPORATE
Acrobat Professional 2020 20.0 MLP AOO License JPL PI 2022