Skip to content
/ afpubs Public
forked from k-10-s/afpubs

Adobe Plugin to scrape AF E-Pubs Metadata

Notifications You must be signed in to change notification settings

kd8bny/afpubs

 
 

Repository files navigation

afpubs

Adobe Plugin to scrape AF E-Pubs Metadata

Workflow (Updated 5 Nov)

1. User opens AFI / AF Form

2. Button added to toolbar turns red indicating the currently open form has not been checked

3. User clicks button, javascript checks E-publishing.af.mil for latest form date

4. Alert user on new version available, if there is one (and potentially provide direct download link)

5. Button turns green (probably limited to next reopen of Adobe, if multiple docs are opend at same time not sure if we can "reset" it each time)

Scope

1. Only applies to AFNET boxes (Preloaded with Acobat Pro)

2. Will not (initially) apply to all forms / pubs (i.e. DD forms)

Starting reads:

Adobe DC (& X, XI) SDK Documentation

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/index.html#t=Acro12_MasterBook%2FIntroduction_Help_TitlePage%2FAbout_This_Help.htm&rhsyns=%20&rhsearch=net.http

Note this script will act like a "plugin" due to running out of the main application folder

https://acrobatusers.com/tutorials/folder_level_scripts

How we'll get the data from e-pubs

http://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_AcroJS%2FNet_HTTP_methods.htm

Net.HTTP requires higher priv...

https://acrobatusers.com/tutorials/using_trusted_functions

Extracting metadata from the form:

(note all metadata is only available once the user clicks "enable all features", which may or may not appear depending on the doc source)

this.info.Title
this.info.Author
this.info.Subject
this.info.creationdate

About

Adobe Plugin to scrape AF E-Pubs Metadata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.9%
  • C++ 15.1%