Copy link to clipboard
Copied
Hi guys,
I'm trying to create a log file in AdobeJS but I can't. Anybody can help me? I need create a log file (similar to file.log) in my machine and I want to write in this file some sentences to audit my adobe javascript code (similar to log4j).
Best regards!
Copy link to clipboard
Copied
Adobe devoted a lot of time and trouble to making sure Acrobat JavaScript can't write files. How about writing to the console?
Copy link to clipboard
Copied
Thanks for the reply, the problem is I want create a log file to audit the process and have a file with some important information to validate if my adobe form opens ok, validates ok and save in the correct path. Is it possible?
Copy link to clipboard
Copied
In Adobe Acrobat you can create a report with javascript.
Copy link to clipboard
Copied
Thanks for the reply but how? How I create this log file in javascript? Best regards
Copy link to clipboard
Copied
Info about creating a report is available in the Acrobat Javascript Reference.
Copy link to clipboard
Copied
Thank you @Bernd Alheit , it works now!
Do you know if I can declare a global variable (myReport) and use it in some parts of my form?
Best regards
Copy link to clipboard
Copied
Yes.
E.g. at document open:
var rep = new Report();
Copy link to clipboard
Copied
Can you tell me how do it? Thanks