adobe-javascript

Import image in Acrobat using JavaScript (preferred on document-level)

你离开我真会死。 提交于 2019-12-24 03:30:53
问题 I am going to implement a dynamic legend using JavaScript in Adobe Acrobat. The document contains a lot of layers. Every layer has an own legend. The origin idea is to implement the legend so, that it contains the images in a dialog box for the visible layers. I can only hide/show the layers by setting state to false or true (this.getOCGs()[i].state = false;) on document-level. Question 1: Can I extract data from layer somehow for legend establishing? I think no, as we only have these

PDF date of print

Deadly 提交于 2019-12-11 04:22:31
问题 Is it possible to show the date/time of viewing/printing of a PDF document? I guess it has to involve Adobe Java Script but I'm not entirely sure this is at all possible. I do have Acrobat X Pro and I can be sure the pdf will be opened with Acrobat Reader 9 or Acrobat reader X. Embedding some other information would definitively be a plus (like the path the document or the name of the author as it is stored in the PDF properties). Anyone already did something similar? 回答1: Yes, it is possible