title: JavaScript Library with Bluebeam
body: <p>I'm looking for some information/references/examples and how to use javascript in Bluebeam.</p>
  
  <p>Bluebeam said that you can refer to the following AcroForm documentation :</p>
  
  <ul>
  <li><a href="https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_developer_guide.pdf" rel="nofollow noreferrer">https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_developer_guide.pdf</a></li>
  <li><a href="https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf" rel="nofollow noreferrer">https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf</a></li>
  </ul>
  
  <p>But while trying to use some objects / properties / methods of those references, it seems than only some of them can be used. So, as there is no dedicated Bluebeam references, it's really tedious to figure out what can be done in JS within Bluebeam.</p>
  
  <p>I've looked at all the examples from Bluebeam as this one :
  <a href="https://support.bluebeam.com/articles/how-can-i-create-interactive-stamps/" rel="nofollow noreferrer">https://support.bluebeam.com/articles/how-can-i-create-interactive-stamps/</a></p>
  
  <p>But this is very basic. Even while looking in details there is no much information.</p>
  
  <p>Here is for example something that I'm trying to do :
  - Open a dialog just before saving with the "Doc/WillSave" event
  - Fill the different fields of the dialog
  - Use the fields content to save file or pre-fill the save field from the saveAs dialog
  - Save the file.</p>
  
  <p>Obviously, the js-file is in a folder with security rights. But most of those functions seems not to exist in Bluebeam.</p>
  
  <p>I've contacted the BB support but with not any feedback yet.
  Also, I found out other related post (@Logan) but there is not much follow-up about how it was solved (or not) => <a href="https://stackoverflow.com/questions/42683485/how-to-save-a-pdf-document-using-javascript/42691796#42691796?newreg=be99f80a08ad4abba38724cdf05a2a9c">How to Save a .pdf document using Javascript</a></p>
  
  <p>Thanks.</p>