Skip to main content
Known Participant
July 28, 2021
Question

Create a log file

  • July 28, 2021
  • 2 replies
  • 682 views

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 has been closed for replies.

2 replies

Bernd Alheit
Community Expert
Community Expert
July 28, 2021

In Adobe Acrobat you can create a report with javascript.

JuankiAuthor
Known Participant
July 28, 2021

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

Bernd Alheit
Community Expert
Community Expert
July 28, 2021

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

Legend
July 28, 2021

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

JuankiAuthor
Known Participant
July 28, 2021

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?