5

I'm looking for some information/references/examples and how to use javascript in Bluebeam.

Bluebeam said that you can refer to the following AcroForm documentation :

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.

I've looked at all the examples from Bluebeam as this one : https://support.bluebeam.com/articles/how-can-i-create-interactive-stamps/

But this is very basic. Even while looking in details there is no much information.

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.

Obviously, the js-file is in a folder with security rights. But most of those functions seems not to exist in Bluebeam.

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) => How to Save a .pdf document using Javascript

Thanks.

Auredor
  • 51
  • 1
  • 6

2 Answers2

3

The javascript engine closely resembles that of acrobat, but there are some differences. Bluebeam desperately needs to release their own API reference.

That being said, I do have an unofficial Bluebeam API reference file that was given to me during the conference last year. Unfortunately I can't attach excel files to these posts, but I have added a link to a .jpeg file where I have compiled all of the data for you:

Bluebeam API I have found some success in using this as a guide to first check to see what operations are available in Bluebeam, and then using the Acrobat API reference to find the syntax.

I hope this is helpful. Please post if you come across a better reference guide for the Bluebeam-specific API.

I have not had much success with requesting reference guides from the Bluebeam team, I think they try to refrain from distributing javascript references since their "eXtreme" software package has limited pre-built javascript code as a selling point. Maybe with some increased pressure they will realize the need to release a comprehensive guide for their API.

Best of luck! Again, the Bluebeam API file is below: Bluebeam API

Logan
  • 41
  • 1
  • 6
  • Thank you Logan. This a good start. However I don’t see any Save Method... Would you mind to share your script for files saving or to give me some tips ? Thanks. – Auredor Feb 01 '19 at 09:12
0

Bluebeam Revu 2019 includes two reference documents in their Help folder: C:\Program Files\Bluebeam Software\Bluebeam Revu\2019\Help

  • Bluebeam Revu eXtreme Script Reference.pdf

    • Applies to Bluebeam Revu eXtreme
    • Version 1.0.8, published February 27, 2019
  • Bluebeam Script Reference.pdf

    • Applies to Bluebeam Q and Bluebeam Revu eXtreme
    • Version 2.0.10, published February 27, 2019