Skip to main content
Known Participant
Jul 28, 2021 6:45 AM UTC
Question

Create a log file

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!

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Bernd Alheit
Community Expert
Community Expert
Jul 28, 2021 8:00 AM UTC

In Adobe Acrobat you can create a report with javascript.

Translate
JuankiAuthor
Known Participant
Jul 28, 2021 11:20 AM UTC

Thanks for the reply but how? How I create this log file in javascript? Best regards

Translate
Bernd Alheit
Community Expert
Community Expert
Jul 28, 2021 12:06 PM UTC

Info about creating a report is available in the Acrobat Javascript Reference.

Translate
Legend
Jul 28, 2021 7:58 AM UTC

Adobe devoted a lot of time and trouble to making sure Acrobat JavaScript can't write files. How about writing to the console?

Translate
JuankiAuthor
Known Participant
Jul 28, 2021 11:19 AM UTC

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?

Translate